From a528a9056d315870ad61ffe8c14864a03f299d37 Mon Sep 17 00:00:00 2001 From: ciastektk Date: Wed, 10 May 2023 11:28:47 +0200 Subject: [PATCH] IBX-5702: Fixed ezselection rendering (#784) https://issues.ibexa.co/browse/IBX-5702 --- .../themes/admin/ui/field_type/edit/ezselection.html.twig | 3 ++- .../themes/admin/ui/form_fields/dropdown_widget.html.twig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig index e7279c330e..8b155a8bda 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig @@ -1,6 +1,7 @@ {% use '@ibexadesign/ui/form_fields/dropdown_widget.html.twig' %} {%- block ezplatform_fieldtype_ezselection_widget -%} - {% set attr = attr|merge({'class': 'ibexa-data-source__input ibexa-data-source__input--selection', disabled: attr.readonly|default(false) }) %} + {% set attr = attr|merge({'class': 'ibexa-data-source__input ibexa-data-source__input--selection' }) %} + {% set dropdown_disabled = attr.readonly|default(false) %} {{ block('choice_widget') }} {%- endblock -%} diff --git a/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig b/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig index edbe2fa645..c803e8dad1 100644 --- a/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig @@ -20,7 +20,7 @@ translation_domain: choice_translation_domain|default(false), custom_form: false, class: attr.dropdown_class|default(''), - is_disabled: attr.disabled|default(false) or disabled|default(false), + is_disabled: attr.disabled|default(false) or disabled|default(false) or dropdown_disabled|default(false), is_hidden: attr.dropdown_hidden|default(false), is_small: attr.is_small|default(false), is_ghost: attr.is_ghost|default(false),