summaryrefslogtreecommitdiff
path: root/templates/page.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.jinja')
-rw-r--r--templates/page.jinja10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/page.jinja b/templates/page.jinja
index 671f3b2..c09dcde 100644
--- a/templates/page.jinja
+++ b/templates/page.jinja
@@ -25,3 +25,13 @@
<{{tag}} style="{{style}}">{{caller()}}</{{tag}}>
{% endif %}
{% endmacro %}
+
+{% macro render_form(form) %}
+ <table>
+ {% for field in form if not field is hidden %}
+ <tr><th>{{ field.label }}</th><td>{{ field }}</td><td>{{ field.description }}</td>
+ <td>{% if field.errors %}<span class="error">{{ field.errors[0] }}</span>{% endif %}</td></tr>
+ {% endfor %}
+ </table>
+ {{ form.hidden_tag() }}
+{% endmacro %}