takahe/templates/forms/_field.html

14 lines
352 B
HTML
Raw Normal View History

2022-11-13 15:14:38 -08:00
<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">
2022-11-16 20:12:28 -08:00
{{ field.help_text|linebreaksbr }}
2022-11-13 15:14:38 -08:00
</p>
{% endif %}
{{ field.errors }}
{{ field }}
</div>