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:
parent
2c51407196
commit
a5cd12ad87
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user