From 9c2e8d266c234cee5172ee990400c0bd2df78d63 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 13 Oct 2023 12:43:59 +0200 Subject: [PATCH] fixup! amelioration(procedure.chorus): ajoute la tuile chorus quand cette fonction est active sur la procedure --- .../procedure/card/chorus_component/chorus_component.html.haml | 2 +- .../chorus_form_component/chorus_form_component.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/procedure/card/chorus_component/chorus_component.html.haml b/app/components/procedure/card/chorus_component/chorus_component.html.haml index 7f85ec850..209591865 100644 --- a/app/components/procedure/card/chorus_component/chorus_component.html.haml +++ b/app/components/procedure/card/chorus_component/chorus_component.html.haml @@ -1,5 +1,5 @@ .fr-col-6.fr-col-md-4.fr-col-lg-3.chorus-component - = link_to edit_admin_procedure_chorus_path(@procedure), class: 'fr-tile fr-enlarge-link', title: error_messages do + = link_to edit_admin_procedure_chorus_path(@procedure), class: 'fr-tile fr-enlarge-link', title: 'Configurer le cadre budgetaire Chorus' do .fr-tile__body.flex.column.align-center.justify-between - if error_messages.present? %div diff --git a/app/components/procedure/chorus_form_component/chorus_form_component.html.haml b/app/components/procedure/chorus_form_component/chorus_form_component.html.haml index b6c875d9a..e3d8e2e96 100644 --- a/app/components/procedure/chorus_form_component/chorus_form_component.html.haml +++ b/app/components/procedure/chorus_form_component/chorus_form_component.html.haml @@ -5,7 +5,7 @@ - label_class_name = "#{chorus_configuration_attribute}-label" .fr-select-group = f.label chorus_configuration_attribute, class: 'fr-label', id: label_class_name - = render Dsfr::ComboboxComponent.new form: f, name: :chorus_configuration_attribute, url: datasource_endpoint, value: procedure.chorus_configuration.format_displayed_value(chorus_configuration_attribute), id: chorus_configuration_attribute, class: 'fr-select', describedby: label_class_name do + = render Dsfr::ComboboxComponent.new form: f, name: :chorus_configuration_attribute, url: datasource_endpoint, selected: procedure.chorus_configuration.format_displayed_value(chorus_configuration_attribute), id: chorus_configuration_attribute, class: 'fr-select', describedby: label_class_name do = f.hidden_field chorus_configuration_attribute, data: { value_slot: 'data' }, value: procedure.chorus_configuration.format_hidden_value(chorus_configuration_attribute) = f.submit "Enregister", class: 'fr-btn'