From: Elrond Date: Fri, 18 Nov 2011 22:37:25 +0000 (+0100) Subject: 652: Don't show empty field labels. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4d4e5b435b54fcf0920786a40e190c1748cc2ed1;p=mediagoblin.git 652: Don't show empty field labels. If the label for a field is empty, don't show it at all. And don't translate it! --- diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html index 39dca7cc..cc30388f 100644 --- a/mediagoblin/templates/mediagoblin/utils/wtforms.html +++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html @@ -18,7 +18,9 @@ {# Generically render a field #} {% macro render_field_div(field) %} -

+ {% if field.label.text -%} +

+ {%- endif %}
{{ field }} {%- if field.errors -%}