Commits

Italo Maia  committed c735053

form.html now accepts the parameter no_label where labels are not printed, if true. Useful for the reply.html forum.

  • Participants
  • Parent commits cafb0e7

Comments (0)

Files changed (1)

File forum/templates/forum/form.html

 {% if field.errors %}
 <div class="error">{{ field.errors }}</div>
 {% endif %}
+
+{% if no_label %}{% else %}
 <div class="clear">{{ field.label_tag }}</div>
+{% endif %}
+
 {% if field.help_text %}
-<div class="clear small quiet">
-    {{ field.help_text }}
-</div>
+<div class="clear small quiet">{{ field.help_text }}</div>
 {% endif %}
 <div class="clear">{{ field }}</div>
 {% endfor %}