diff options
Diffstat (limited to 'templates/forms')
-rw-r--r-- | templates/forms/_field.html | 13 |
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> |