More or less copy and paste to get mvp
This commit is contained in:
parent
871a2f97b3
commit
b86ebd63c2
9 changed files with 606 additions and 31 deletions
12
app/templates/_formhelpers.html
Normal file
12
app/templates/_formhelpers.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{% macro render_field(field) %}
|
||||
{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue