This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/templates/forms/_field.html

19 lines
524 B
HTML
Raw Normal View History

2022-11-14 00:14:38 +01:00
<div class="field">
2022-11-18 01:43:00 +01:00
<div class="label-input">
<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|linebreaksbr }}
</p>
{% endif %}
{{ field.errors }}
{{ field }}
</div>
{% if preview %}
<img class="preview" src="{{ preview }}">
2022-11-14 00:14:38 +01:00
{% endif %}
</div>