mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
113db4ab3a
Also did a new table style for admin pages
23 lines
882 B
HTML
23 lines
882 B
HTML
<div class="field">
|
|
<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|safe|linebreaksbr }}
|
|
</p>
|
|
{% endif %}
|
|
{{ field.errors }}
|
|
{% if field.field.widget.input_type == "file" and field.value and not hide_existing %}
|
|
<div class="clear">
|
|
<input type="checkbox" class="clear" name="{{ field.name }}__clear"> Clear current value</input>
|
|
</div>
|
|
{% endif %}
|
|
{{ field }}
|
|
</div>
|
|
{% if field.field.widget.input_type == "file" and field.value and not hide_existing %}
|
|
<img class="preview" src="{{ field.value }}">
|
|
{% endif %}
|
|
</div>
|