summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/ajax-opening-location.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locations/templates/ajax-opening-location.html')
-rw-r--r--modules-available/locations/templates/ajax-opening-location.html28
1 files changed, 18 insertions, 10 deletions
diff --git a/modules-available/locations/templates/ajax-opening-location.html b/modules-available/locations/templates/ajax-opening-location.html
index 9d4e6f98..c3a32fd1 100644
--- a/modules-available/locations/templates/ajax-opening-location.html
+++ b/modules-available/locations/templates/ajax-opening-location.html
@@ -95,7 +95,7 @@
</div>
</div>
-<div class="hidden" class="expert-template">
+<div class="hidden expert-template">
<div class="row expert-row">
<hr>
<div class="col-xs-12 days-box">
@@ -133,9 +133,13 @@
</div>
</div>
<div class="col-sm-8">
- <input disabled type="number" id="wol-offset-{{id}}" name="wol-offset"
- value="{{wol-options.wol-offset}}" placeholder="0" min="0" max="15">
- <label for="wol-offset-{{id}}">{{lang_offsetEarly}}</label>
+ <div class="input-group">
+ <input disabled type="number" id="wol-offset-{{id}}" name="wol-offset" class="form-control"
+ value="{{wol-options.wol-offset}}" placeholder="0" min="0" max="15">
+ <span class="input-group-addon slx-ga2">
+ <label for="wol-offset-{{id}}">{{lang_offsetEarly}}</label>
+ </span>
+ </div>
</div>
</div>
<div class="row shutdown">
@@ -146,9 +150,13 @@
</div>
</div>
<div class="col-sm-8">
- <input disabled type="number" id="sd-offset-{{id}}" name="sd-offset"
- value="{{sd-options.sd-offset}}" placeholder="0" min="0" max="15">
- <label for="sd-offset-{{id}}">{{lang_offsetLate}}</label>
+ <div class="input-group">
+ <input disabled type="number" id="sd-offset-{{id}}" name="sd-offset" class="form-control"
+ value="{{sd-options.sd-offset}}" placeholder="0" min="0" max="15">
+ <span class="input-group-addon slx-ga2">
+ <label for="sd-offset-{{id}}">{{lang_offsetLate}}</label>
+ </span>
+ </div>
</div>
</div>
{{/rebootcontrol}}
@@ -173,7 +181,7 @@
{{#expertMode}}
for (var i = 0; i < scheduleData.length; ++i) {
- newOpeningTime(scheduleData[i]);
+ newOpeningTime($loc, scheduleData[i]);
}
{{/expertMode}}
{{^expertMode}}
@@ -195,14 +203,14 @@
$loc.find('.new-openingtime').click(function (e) {
e.preventDefault();
- setTimepicker(newOpeningTime({}).find('.timepicker2'));
+ setTimepicker(newOpeningTime($loc, {}).find('.timepicker2'));
});
$loc.find('.btn-show-expert').click(function (e) {
e.preventDefault();
scheduleData = simpleToExpert($loc);
for (var i = 0; i < scheduleData.length; ++i) {
- setTimepicker(newOpeningTime(scheduleData[i]).find('.timepicker2'));
+ setTimepicker(newOpeningTime($loc, scheduleData[i]).find('.timepicker2'));
}
$loc.find('.simple-mode').remove();
$loc.find('.expert-mode').show();