summaryrefslogtreecommitdiff
path: root/templates/macros.jinja
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-10-19 11:35:05 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-10-19 11:35:05 +0200
commit86b7f84df91e23750c51c9c04f9bbec69cd0d06c (patch)
tree43451238a4fc5a26d1248a9a43d540dbd9257b9a /templates/macros.jinja
parentc9112dce1074669041fcc3d950101119b9d18569 (diff)
downloadkosten-86b7f84df91e23750c51c9c04f9bbec69cd0d06c.tar.gz
kosten-86b7f84df91e23750c51c9c04f9bbec69cd0d06c.tar.bz2
kosten-86b7f84df91e23750c51c9c04f9bbec69cd0d06c.zip
Autofocus for some forms
Diffstat (limited to '')
-rw-r--r--templates/macros.jinja2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/macros.jinja b/templates/macros.jinja
index 454251d..d7cd2fc 100644
--- a/templates/macros.jinja
+++ b/templates/macros.jinja
@@ -31,7 +31,7 @@
{% 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>
+ <tr><th>{{ field.label }}</th><td>{{ field(**kwargs.get(field.short_name, {})) }}</td><td>{{ field.description }}</td>
<td>{% if field.errors %}<span class="error">{{ field.errors[0] }}</span>{% endif %}</td></tr>
{% endfor %}
</table>