diff options
author | Andrew Godwin | 2022-11-17 17:43:00 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 14:13:55 -0700 |
commit | 2154e6f02252576d8652e66f26fa4ae635d0f8ee (patch) | |
tree | a65a4e051c0cb9e99c77a083bf5b011b79f75cb8 /templates/forms | |
parent | f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d (diff) | |
download | takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.tar.gz takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.tar.bz2 takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.zip |
Rework UI to have vertical menus
Diffstat (limited to 'templates/forms')
-rw-r--r-- | templates/forms/_field.html | 25 |
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> |