committing before scrapping; i came to realize just how much of a bad idea it is to have this as a website app instead of a local one.
This commit is contained in:
12
app/templates/_formhelper.html
Normal file
12
app/templates/_formhelper.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% macro render_field(field) %}
|
||||
<dt>{{ field.label }}
|
||||
<dd>{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user