aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_events.js2
-rwxr-xr-xview/tpl/event_form.tpl10
2 files changed, 8 insertions, 4 deletions
diff --git a/view/js/mod_events.js b/view/js/mod_events.js
index 0ce128fcc..d4dc9b585 100644
--- a/view/js/mod_events.js
+++ b/view/js/mod_events.js
@@ -2,7 +2,7 @@
$(document).ready( function() { showHideFinishDate(); });
function showHideFinishDate() {
- if( $('#event-nofinish-checkbox').is(':checked'))
+ if( $('#id_nofinish').is(':checked'))
$('#event-finish-wrapper').hide();
else
$('#event-finish-wrapper').show();
diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl
index 1cea156dd..444e77df7 100755
--- a/view/tpl/event_form.tpl
+++ b/view/tpl/event_form.tpl
@@ -24,7 +24,12 @@
<div class="clear"></div><br />
-<input type="checkbox" name="nofinish" value="1" id="event-nofinish-checkbox" {{$n_checked}} onclick="showHideFinishDate(); return true;" /> <div id="event-nofinish-text">{{$n_text}}</div>
+ <div class='field checkbox'>
+ <label class="mainlabel" for='id_nofinish'>{{$n_text}}</label>
+ <div><input type="checkbox" name='nofinish' id='id_nofinish' value="1" {{$n_checked}} onclick="showHideFinishDate(); return true;" >
+ <label class="switchlabel" for='id_nofinish'> <span class="onoffswitch-inner" data-on='' data-off='' ></span>
+ <span class="onoffswitch-switch"></span> </label></div><span class='field_help'></span>
+ </div>
<div id="event-nofinish-break"></div>
@@ -35,8 +40,7 @@
<div id="event-datetime-break"></div>
-
-<input type="checkbox" name="adjust" value="1" id="event-adjust-checkbox" {{$a_checked}} /> <div id="event-adjust-text">{{$a_text}}</div>
+{{include file="field_checkbox.tpl" field=$adjust}}
<div id="event-adjust-break"></div>