Commits

xiaq committed 86c2c69

Fix issue143.

Comments (0)

Files changed (1)

MoinMoin/templates/forms.html

 {% endmacro %}
 
 {% macro annotated_input(field, type=none) %}
+  {% set type = type or field.properties.widget %}
   <dt>
-    {{ gen.label(field) }}
+    {% if type == 'checkbox' %}
+      {{ _checkbox_label(field) }}
+    {% else %}
+      {{ gen.label(field) }}
+    {% endif %}
   </dt>
   <dd>
     {{ raw_input(field, type) }}