Remove unneeded if statement

When rendering this template we do not provide the hidden_fields
list (this code was partially copied from project edit.pug).
This commit is contained in:
Francesco Siddi 2019-04-19 10:43:16 +02:00
parent 2c51407196
commit a5cd12ad87

View File

@ -12,8 +12,6 @@
| {{ field }}
| {% else %}
| {% if field.name not in hidden_fields %}
.form-group(class="{{field.name}}{% if field.errors %} error{% endif %}")
| {{ field.label }}
| {% if field.name == 'picture' %}
@ -31,10 +29,6 @@
| {% endfor %}
| {% endif %}
| {% else %}
| {{ field(class='d-none') }}
| {% endif %}
| {% endif %}
| {% endif %}