hacking
This commit is contained in:
parent
abf6da60a8
commit
c62c1b2c1b
6 changed files with 131 additions and 5 deletions
17
froide_govplan/templates/helper/forms/bootstrap_form.html
Normal file
17
froide_govplan/templates/helper/forms/bootstrap_form.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% load form_helper %}
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-danger">
|
||||
{% for error in form.non_field_errors %}
|
||||
{{ error }}
|
||||
{% if not forloop.last %}<br />{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% for field in form.hidden_fields %}
|
||||
{% include "helper/forms/errors.html" with errors=field.errors %}
|
||||
{% endfor %}
|
||||
{% for field in form.visible_fields %}
|
||||
{% render_field field horizontal %}
|
||||
{% endfor %}
|
||||
{% for field in form.hidden_fields %}{{ field }}{% endfor %}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue