aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/field_checkbox.tpl
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-01 10:08:20 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-01 10:08:20 +0100
commit70f0019905f8c44ed875379a9af65988e536b4f4 (patch)
tree7470fc4ee3199c585be3e9e023a135eda8e34b02 /view/tpl/field_checkbox.tpl
parent26069e6ca189533152c825a96755f7ef31cb28a8 (diff)
downloadvolse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.tar.gz
volse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.tar.bz2
volse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.zip
Checkboxify yesno-fields, but use CSS to show them as switches in Redbasic
Diffstat (limited to 'view/tpl/field_checkbox.tpl')
-rwxr-xr-xview/tpl/field_checkbox.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/view/tpl/field_checkbox.tpl b/view/tpl/field_checkbox.tpl
index 51d56f69c..7e4f00a2d 100755
--- a/view/tpl/field_checkbox.tpl
+++ b/view/tpl/field_checkbox.tpl
@@ -1,5 +1,4 @@
<div class='field checkbox'>
<label for='id_{{$field.0}}'>{{$field.1}}</label>
- <input type="checkbox" name='{{$field.0}}' id='id_{{$field.0}}' value="1" {{if $field.2}}checked="checked"{{/if}}>
- <span class='field_help'>{{$field.3}}</span>
+ <input type="checkbox" name='{{$field.0}}' id='id_{{$field.0}}' value="1" {{if $field.2}}checked="checked"{{/if}}><label for='id_{{$field.0}}'></label><span class='field_help'>{{$field.3}}</span>
</div>