summaryrefslogtreecommitdiffstats
path: root/templates/forms
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-13 16:14:38 -0700
committerAndrew Godwin2022-11-13 16:15:14 -0700
commit34b24a0dcb044cb755e201ad1a83253d0690e78e (patch)
tree51e6842d9e1392fafcd617cf4de0fa7e28397c87 /templates/forms
parent5a8b6bb3d022a532562ad5fa6d629cfc48c51b46 (diff)
downloadtakahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.tar.gz
takahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.tar.bz2
takahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.zip
More UI!
Diffstat (limited to 'templates/forms')
-rw-r--r--templates/forms/_field.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/forms/_field.html b/templates/forms/_field.html
new file mode 100644
index 0000000..120724e
--- /dev/null
+++ b/templates/forms/_field.html
@@ -0,0 +1,13 @@
+<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 }}
+ </p>
+ {% endif %}
+ {{ field.errors }}
+ {{ field }}
+</div>