-
-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathsystem_update.html
66 lines (59 loc) · 2.19 KB
/
system_update.html
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
$def with(m_vals)
$var title: SIP Update from GitHub
$var page: system_update
<script>
// Initialize behaviors
jQuery(document).ready(function(){
jQuery("button#cUpdate").click(function(){
window.location= "/UPu";
});
jQuery("button#cCancel").click(function(){
window.location= "/";
});
jQuery("button#docButton").click(function(){
window.open("/static/docs/plugins/system_update-docs.html", "_blank");
});
});
</script>
<div id="plugin">
<div class="title">$_(u'SIP Software Updater')
<button class="execute" id="docButton" type="button" >$_(u'Help')</button>
</div>
<!--<p>$_(u'This plugin compares the local SIP version with the GitHub repository and can update the local software.')</p>-->
<form id="pluginForm" action="${app_path('/UPsr')}" method="get">
<table class="optionList">
<tr>
<td style='text-transform: none;'><b>$_(u'Remote repository'):</b></td>
<td>
$m_vals["remote"]
</td>
</tr>
<tr>
<td style='text-transform: none;'><b>$_(u'Local SIP version'):</b></td>
<td>
$m_vals["ver_str"]
</td>
</tr>
<tr>
<td style='text-transform: none;'><b>$_(u'Local SIP date'):</b></td>
<td>
$m_vals["ver_date"]
</td>
</tr>
<tr>
<td style='text-transform: none;'>$_(u'Status'):</td>
<td>
<textarea style="font-family: monospace;" rows="7" cols="100" readonly>$m_vals['status']</textarea><br/>
<!--<button id="cRefresh" class="refresh">$_(u'Refresh Status')</button>-->
</td>
</tr>
</table>
</form>
</div>
<div class="controls">
$if m_vals['can_update']:
<button id="cUpdate" class="options"><b>$_(u'Update SIP')</b></button>
$else:
<button id="cUpToDate" class="cancel"><b>$_(u'Up-to-date')</b></button>
<button id="cCancel" class="cancel danger">$_(u'Cancel')</button>
</div>