-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodule.html
More file actions
executable file
·66 lines (60 loc) · 5.54 KB
/
module.html
File metadata and controls
executable file
·66 lines (60 loc) · 5.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="col-md-12" ng-controller="SSIDPoolController">
<div class="jumbotron" style="border-radius: 7px;">
<div class="container">
<h1>SSID pool manager</h1>
<p>Current SSID pool: {{ ssidCount }} entries</p>
</div>
</div>
<div class="panel-body">
<div class="btn-group">
<button class="btn btn-default btn-sm" ng-click="backupCurrent()">Backup current pool</button>
<button class="btn btn-default btn-sm" ng-click="mergeAllSSID()">Merge all and restore</button>
</div>
{{ backupSuccess }}
</div>
<div>
<div class="table-responsive">
<button class="btn btn-primary btn-sm pull-right" ng-click="refreshSSIDPool()">Refresh SSIDPool</button>
<table class="table table-striped table-bordered table-hover" ng-hide="(SSIDPool.length == 0)">
<thead>
<tr>
<th>Date</th>
<th>SSID</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="entry in SSIDPool" ng-if="entry != ''">
<td>{{entry[0]}}</td>
<td>{{entry[1]}}</td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-fixed-length btn-sm btn-default" data-toggle="modal" data-target="#SSIDModal" ng-click="viewSSIDFile(entry[2])">View</button>
<button type="button" class="btn btn-sm btn-default" ng-click="downloadSSIDFile(entry[2])">Download</button>
<button type="button" class="btn btn-sm btn-default" ng-click="restoreSSIDFile(entry[2])">Restore</button>
<button type="button" class="btn btn-fixed-length btn-sm btn-danger" ng-click="deleteSSIDFile(entry[2])">Delete</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- SSID view -->
<div class="modal fade" id="SSIDModal" tabindex="-1" role="dialog" aria-labelledby="SSIDModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="SSIDModalLabel">View SSID file</h4>
</div>
<div class="modal-body">
<pre class="scrollable-pre log-pre">{{SSIDFile}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>