symposion_app/pinaxcon/templates/_form_snippet.html

27 lines
716 B
HTML
Raw Normal View History

{% load lca2017_tags %}
{% 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 %}