Don't duplicate hidden fields

main
Alexander Graf 2 years ago
parent ea636a1835
commit defd533319
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

@ -60,9 +60,7 @@
<form class="form" method="post" role="form"> <form class="form" method="post" role="form">
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
{%- for field in form %} {%- for field in form %}
{%- if bootstrap_is_hidden_field(field) %} {%- if not bootstrap_is_hidden_field(field) %}
{{ field() }}
{%- else %}
{{ form_field(field) }} {{ form_field(field) }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}

Loading…
Cancel
Save