changeset 1735:86c2c69421ef

Fix issue143.
author Cheer Xiao <xiaqqaix@gmail.com>
date Sat, 25 Aug 2012 17:07:45 +0800
parents e79b4f4df123
children af5b4eab796c
files MoinMoin/templates/forms.html
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/forms.html	Thu Aug 23 08:02:36 2012 +0200
+++ b/MoinMoin/templates/forms.html	Sat Aug 25 17:07:45 2012 +0800
@@ -72,8 +72,13 @@
 {% 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) }}