diff options
-rw-r--r-- | mediagoblin/templates/mediagoblin/utils/wtforms.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html index fe5883a0..e079274e 100644 --- a/mediagoblin/templates/mediagoblin/utils/wtforms.html +++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html @@ -90,10 +90,15 @@ {# 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 %} |