8000 minor #841 Improved Bootstrap form theme for hidden fields (javieregu… · EasyCorp/EasyAdminBundle@e44da21 · GitHub
[go: up one dir, main page]

Skip to content

Commit e44da21

Browse files
committed
minor #841 Improved Bootstrap form theme for hidden fields (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Improved Bootstrap form theme for hidden fields Needed to stay in sync with Symfony's Bootstrap form theme. See symfony/symfony#17568 Commits ------- b2a1ca7 Improved Bootstrap form theme for hidden fields
2 parents a677fee + b2a1ca7 commit e44da21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/form/bootstrap_3_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% endblock form_widget %}
4040

4141
{% block form_widget_simple -%}
42-
{% if type is not defined or 'file' != type %}
42+
{% if type is not defined or type not in ['file', 'hidden'] %}
4343
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
4444
{% endif %}
4545
{{- parent() -}}

0 commit comments

Comments
 (0)
0