summaryrefslogtreecommitdiff
path: root/templates/pages/add.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pages/add.jinja')
-rw-r--r--templates/pages/add.jinja8
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/pages/add.jinja b/templates/pages/add.jinja
index 3e3caa2..4728e99 100644
--- a/templates/pages/add.jinja
+++ b/templates/pages/add.jinja
@@ -17,13 +17,7 @@
{% block content %}
<form name="add_expense" method="post">
- <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() }}
+ {{ render_form(form) }}
{% block form_buttons %}
<input type="submit" name="changeB">
{% endblock %}