From bc410b02e778da6899ebb36a11af0d5c055a2bfe Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 25 May 2022 11:45:25 +0200 Subject: [PATCH] admin: do not use disabled for form widget with collections, see https://github.com/symfony/symfony/issues/18998 --- .../views/SocialWork/SocialAction/edit.html.twig | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig index 49d6635df..9ea984903 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig @@ -8,9 +8,20 @@ {% embed '@ChillMain/CRUD/_edit_content.html.twig' %} {% block crud_content_form_rows %} + +
+ +
{{ entity.parent|chill_entity_render_box }}
+
+ +
+ +
{{ entity.issue|chill_entity_render_box }}
+
+ {% for f in form %} {% if f.vars.name == 'parent' or f.vars.name == 'issue' %} - {{ form_row(f, { 'attr':{'disabled':'disabled'}}) }} + {{ form_widget(f, { 'attr':{'hidden':'hidden'}}) }} {% else %} {{ form_row(f) }} {% endif %}