summaryrefslogtreecommitdiffstats
path: root/templates/forms/_field.html
blob: 120724e55f6fa7116418f9e94beea111dfcbdeac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="field">
    <label for="{{ field.id_for_label }}">
        {{ field.label }}
        {% if field.field.required %}<small>(Required)</small>{% endif %}
    </label>
    {% if field.help_text %}
        <p class="help">
            {{ field.help_text }}
        </p>
    {% endif %}
    {{ field.errors }}
    {{ field }}
</div>