summaryrefslogtreecommitdiffstats
path: root/templates/_formhelpers.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_formhelpers.html')
-rw-r--r--templates/_formhelpers.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/_formhelpers.html b/templates/_formhelpers.html
new file mode 100644
index 0000000..c78a09f
--- /dev/null
+++ b/templates/_formhelpers.html
@@ -0,0 +1,11 @@
+ {% macro render_field(field) %}
+ <p>
+ <label>{{ field.label }}</label>
+ {{ field(**kwargs)|safe }}
+ {% if field.errors %}
+ <span class="error">
+ {% for error in field.errors %}{{ error }}{% endfor %}
+ </span>
+ {% endif %}
+ </p>
+{% endmacro %}