forked from adde88/SSHWebClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.html
More file actions
104 lines (97 loc) · 5.46 KB
/
module.html
File metadata and controls
104 lines (97 loc) · 5.46 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<script type="text/javascript">
function openwindow(url){ NewWindow=window.open(url,'newWin','width=900,height=600,left=20,top=20,toolbar=No,location=No,addressbar=no,scrollbars=no,status=No,resizable=no,fullscreen=No'); NewWindow.focus(); void(0); }
</script>
<div class="panel panel-default" ng-controller="SSHWebClient_Controller">
<div class="panel-heading">
<h4 class="panel-title pull-left">{{title}}</h4>
<span class="pull-right">{{version}}</span>
<div class="clearfix"></div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default" ng-controller="SSHWebClient_ControlsController">
<div class="panel-heading">
<h3 class="panel-title">Controls</h3>
</div>
<div class="panel-body">
<table style="width:100%">
<tr>
<td style="padding-bottom: .5em;" class="text-muted">Dependencies</td>
<td ng-hide="$root.status.installed" style="text-align:right;padding-bottom: .5em;"><button type="button" style="width: 90px;" class="btn btn-{{installLabel}} btn-xs" data-toggle="modal" data-target="#dependenciesInstallModal" ng-disabled="processing">{{install}}</button></td>
<td ng-show="$root.status.installed" style="text-align:right;padding-bottom: .5em;"><button type="button" style="width: 90px;" class="btn btn-{{installLabel}} btn-xs" data-toggle="modal" data-target="#dependenciesRemoveModal" ng-disabled="processing">{{install}}</button></td>
</tr>
</table>
</div>
<!---<form>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm">Interface</span>
<select class="form-control input-sm" ng-model="selectedInterface">
<option ng-repeat="interface in interfaces">{{ interface }}</option>
</select>
</div>
</div>
</form>-->
<div class="modal fade" id="dependenciesInstallModal" tabindex="-1" role="dialog" aria-labelledby="dependenciesModalLabel">
<div class="modal-dialog" 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="dependenciesInstallModalLabel">Install dependencies</h4>
</div>
<div class="modal-body">
All required dependencies have to be installed first. This may take a few minutes.<br /><br />
Please wait, do not leave or refresh this page. Once the install is complete, this page will refresh automatically.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" ng-click="handleDependencies('internal')" data-dismiss="modal">Internal</button>
<button type="button" class="btn btn-info" ng-hide="device == 'tetra' || sdAvailable == false" ng-click="handleDependencies('sd')" data-dismiss="modal">SD Card</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="dependenciesRemoveModal" tabindex="-1" role="dialog" aria-labelledby="dependenciesModalLabel">
<div class="modal-dialog" 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="dependenciesRemoveModalLabel">Remove dependencies</h4>
</div>
<div class="modal-body">
All required dependencies will be removed. This may take a few minutes.<br /><br />
Please wait, do not leave or refresh this page. Once the remove is complete, this page will refresh automatically.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-info" ng-click="handleDependencies()" data-dismiss="modal">Confirm</button>b
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" ng-controller="SSHWebClient_InterfaceController">
<div class="panel-heading">
<h4 class="panel-title">SSH Interface</h4>
</div>
<div class="row panel-body">
<div class="col-md-11">
<a href="http://{{ipaddress}}:4200" role="button" onclick="openwindow(this.href); return false;" class="btn btn-primary btn-xs">Term 1</a>
<a href="http://{{ipaddress}}:4200" role="button" onclick="openwindow(this.href); return false;" class="btn btn-primary btn-xs">Term 2</a>
<a href="http://{{ipaddress}}:4200" role="button" onclick="openwindow(this.href); return false;" class="btn btn-primary btn-xs">Term 3</a>
<a href="http://{{ipaddress}}:4200" role="button" onclick="openwindow(this.href); return false;" class="btn btn-primary btn-xs">Term 4</a>
<a href="http://{{ipaddress}}:4200" role="button" onclick="openwindow(this.href); return false;" class="btn btn-primary btn-xs">Term 5</a>
</div>
<div class="col-md-1">
<button type="button" onClick="history.go(0)" class="btn btn-success btn-xs round">Refresh</button>
</div>
</div>
<div class="container">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="http://172.16.42.1:4200/"></iframe>
</div>
</div>
</div>
</div>