summaryrefslogtreecommitdiffstats
path: root/templates/forms
diff options
context:
space:
mode:
Diffstat (limited to 'templates/forms')
-rw-r--r--templates/forms/_field.html25
1 files changed, 15 insertions, 10 deletions
diff --git a/templates/forms/_field.html b/templates/forms/_field.html
index 740432d..595546d 100644
--- a/templates/forms/_field.html
+++ b/templates/forms/_field.html
@@ -1,13 +1,18 @@
<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|linebreaksbr }}
- </p>
+ <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 }}">
{% endif %}
- {{ field.errors }}
- {{ field }}
</div>