symposion_app/pinaxcon/templates/_form_snippet.html

32 lines
798 B
HTML
Raw Normal View History

{% load lca2017_tags %}
{% if form.non_field_errors %}
{{ form.non_field_errors }}
<br/>
{% endif %}
{% for field in form %}
{% if not field.is_hidden %}
<div class="fieldWrapper">
<div>
{% classname field.field.widget as widget %}
{% if widget != "CheckboxInput" %}
<h4><label for="{{ field.id_for_label }}">{{ field.label }}</label></h4>
{{ field.errors }}
{{ field }}
{% else %}
<label for="{{ field.id_for_label }}"><strong>{{ field.label }}</strong></label>
{{ field }}
{{ field.errors }}
{% endif %}
</div>
{% if field.help_text %}
<span class="help_text">{{ field.help_text|safe }}</span>
{% endif %}
<p></p>
</div>
{% endif %}
{% endfor %}