]> git.ipfire.org Git - people/ms/westferry.git/blobdiff - src/templates/modules/forms/inputs/checkbox.html
Refactor forms
[people/ms/westferry.git] / src / templates / modules / forms / inputs / checkbox.html
index a4e56ab141bfa43e51a4a76e3bf912360834f3d2..23e21ad625c2e92f9111898ae4d9633a6a50d60a 100644 (file)
@@ -1,6 +1,6 @@
-<div class="checkbox">
-       <label>
-               <input type="checkbox" name="{{ input.name }}" {% if input.value %}checked{% end %}>
-               {% if input.description %}{{ input.description }}{% end %}
-       </label>
-</div>
+<input id="checkbox1" type="checkbox"
+       name="{{ input.name }}" {% if input.value %}checked{% end %}>
+
+{% if input.description %}
+       <label for="checkbox1">{{ input.description }}</label>
+{% end %}