blob: 388bdafb53ef65a8d0a0a81b523b83d4053fda3f (
plain) (
blame)
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
|
<h2>{{lang_editExternalDevice}}</h2>
<form method="post" action="?do=locationinfo">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="writeExternalDeviceConfig">
<input type="hidden" name="deviceid" value="{{device.deviceuuid}}">
<div class="form-group">
<label for="deviceuuid">{{lang_deviceUuid}}</label>
<input type="text" class="form-control" id="deviceuuid" value="{{device.deviceuuid}}" readonly>
</div>
<div class="form-group">
<label for="title">{{lang_deviceTitle}}</label>
<input type="text" class="form-control" name="title" id="title" value="{{device.title}}">
</div>
<div class="form-group">
<label for="paneluuid">{{lang_panel}}</label>
<select name="paneluuid" id="paneluuid" class="form-control">
<option value="">{{lang_pleaseSelect}}</option>
{{#panels}}
<option value="{{paneluuid}}" {{selected}}>{{panelname}}</option>
{{/panels}}
</select>
</div>
<div class="form-group">
<label for="reboot_hour">{{lang_rebootHour}}</label>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="{{lang_rebootHourTooltip}}"></span>
<input type="number" name="reboot_hour" id="reboot_hour" class="form-control" min="-1" max="23" value="{{device.reboot_hour}}">
</div>
<div class="form-group">
<label for="brightness_pct">{{lang_brightness}}</label>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="{{lang_brightnessTooltip}}"></span>
<div class="input-group">
<input type="number" name="brightness_pct" id="brightness_pct" class="form-control" min="1" max="100" value="{{device.brightness_pct}}">
<span class="input-group-addon">%</span>
</div>
</div>
<div class="buttonbar">
<a href="?do=locationinfo&show=external-devices" class="btn btn-default">{{lang_cancel}}</a>
{{#perms.external-device.edit}}
<button type="submit" class="btn btn-primary">
{{#device.isregistered}}{{lang_save}}{{/device.isregistered}}
{{^device.isregistered}}{{lang_register}}{{/device.isregistered}}
</button>
{{/perms.external-device.edit}}
</div>
</form>
{{#perms.external-device.edit}}
<form method="post" action="?do=locationinfo" class="pull-right">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="deleteExternalDevice">
<input type="hidden" name="deviceid" value="{{device.deviceuuid}}">
<button type="submit" class="btn btn-danger" data-confirm="#confirm-delete-device">
<span class="glyphicon glyphicon-trash"></span>
{{lang_delete}}
</button>
</form>
{{/perms.external-device.edit}}
<div class="hidden" id="confirm-delete-device">{{lang_deleteConfirmation}}</div>
|