-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfirm.page
42 lines (33 loc) · 1.2 KB
/
Confirm.page
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
Icon="icons/confirmation.png"
Menu="Preferences"
Title="Confirmation Preferences"
---
<script>
function resetConfirm(form) {
form.down.selectedIndex = 1;
form.stop.selectedIndex = 1;
form.warn.selectedIndex = 0;
}
</script>
<form markdown="1" name="confirm_settings" method="POST" action="/plugins/webGui/update_cfg.php" target="progressFrame">
<input type="hidden" name="#file" value="/boot/config/plugins/webGui/webGui.cfg" />
<input type="hidden" name="#section" value="confirm" />
Confirm reboot & powerdown commands:
: <select name="down" size="1">
<?=mk_option($confirm['down'], "0", "No")?>
<?=mk_option($confirm['down'], "1", "Yes")?>
</select>
Confirm array stop command:
: <select name="stop" size="1">
<?=mk_option($confirm['stop'], "0", "No")?>
<?=mk_option($confirm['stop'], "1", "Yes")?>
</select>
Uncommitted changes warning:
: <select name="warn" size="1">
<?=mk_option($confirm['warn'], "0", "No")?>
<?=mk_option($confirm['warn'], "1", "Yes")?>
</select>
<button type="button" onclick="resetConfirm(this.form);">Default</button>
: <input type="submit" name="#apply" value="Apply" />
<button type="button" onclick="done();">Done</button>
</form>