forgot to render errors
authorRodney Ewing <ewing.rj@gmail.com>
Thu, 11 Jul 2013 23:21:35 +0000 (16:21 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 11 Jul 2013 23:29:16 +0000 (16:29 -0700)
mediagoblin/templates/mediagoblin/utils/wtforms.html

index fe5883a0a68784aea6d1aef5cfc9fc4a4c153bff..e079274edb74af400299bf982b570d3bacef5ebb 100644 (file)
 {# Render a boolean field #}
 {% macro render_bool(field) %}
   <div class="boolean">
-  <label for="{{ field.label.field_id }}">
-    {{ field }}</input>
-    {{ field.description|safe }}
-  </label>
-</div>
+    <label for="{{ field.label.field_id }}">
+      {{ field }}</input>
+      {{ field.description|safe }}
+    </label>
+    {%- if field.errors -%}
+      {% for error in field.errors %}
+        <p class="form_field_error">{{ error }}</p>
+      {% endfor %}
+    {% endif %}
+  </div>
 {% endmacro %}