From cfeef3bf5ff7704f32201ff5d6903574dd4d0c37 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 28 Apr 2022 15:07:46 +0200 Subject: [PATCH] refactor(champ): fix drop_down_list champ --- .../shared/dossiers/editable_champs/_drop_down_list.html.haml | 2 +- .../{ => editable_champs}/_drop_down_other_input.html.haml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename app/views/shared/dossiers/{ => editable_champs}/_drop_down_other_input.html.haml (100%) diff --git a/app/views/shared/dossiers/editable_champs/_drop_down_list.html.haml b/app/views/shared/dossiers/editable_champs/_drop_down_list.html.haml index d374cd0cb..18b47c2df 100644 --- a/app/views/shared/dossiers/editable_champs/_drop_down_list.html.haml +++ b/app/views/shared/dossiers/editable_champs/_drop_down_list.html.haml @@ -19,4 +19,4 @@ = form.select :value, champ.options, { selected: champ.selected}, required: champ.mandatory?, id: champ.input_id, aria: { describedby: champ.describedby_id } - if champ.drop_down_other? - = render partial: "shared/dossiers/drop_down_other_input", locals: { form: form, champ: champ } + = render partial: "shared/dossiers/editable_champs/drop_down_other_input", locals: { form: form, champ: champ } diff --git a/app/views/shared/dossiers/_drop_down_other_input.html.haml b/app/views/shared/dossiers/editable_champs/_drop_down_other_input.html.haml similarity index 100% rename from app/views/shared/dossiers/_drop_down_other_input.html.haml rename to app/views/shared/dossiers/editable_champs/_drop_down_other_input.html.haml