From eb8bfe36111742c714b79d26bb8b7f2e8cb70336 Mon Sep 17 00:00:00 2001 From: "maxim.joseau" Date: Mon, 9 Dec 2024 17:36:56 +0100 Subject: [PATCH] chore: rubocop --- .../lexpol_component/lexpol_component.html.haml | 2 +- .../champ_component/champ_component.html.haml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/editable_champ/lexpol_component/lexpol_component.html.haml b/app/components/editable_champ/lexpol_component/lexpol_component.html.haml index 1f715862643..1d67e1e3db8 100644 --- a/app/components/editable_champ/lexpol_component/lexpol_component.html.haml +++ b/app/components/editable_champ/lexpol_component/lexpol_component.html.haml @@ -12,4 +12,4 @@ -# - if @champ.lexpol_dossier_url.present? -# = link_to 'Aller sur LexPol', @champ.lexpol_dossier_url, target: '_blank', class: 'fr-btn fr-btn--secondary' -# = form_with url: lexpol_update_dossier_instructeur_dossier_path(@champ.dossier.revision.procedure.id, @champ.dossier.id, champ_id: @champ.id), method: :post do |form| --# = form.submit 'Mettre à jour le dossier', class: 'fr-btn fr-btn--secondary' \ No newline at end of file +-# = form.submit 'Mettre à jour le dossier', class: 'fr-btn fr-btn--secondary' diff --git a/app/components/types_de_champ_editor/champ_component/champ_component.html.haml b/app/components/types_de_champ_editor/champ_component/champ_component.html.haml index 3dac1466e71..4f3c0336d3b 100644 --- a/app/components/types_de_champ_editor/champ_component/champ_component.html.haml +++ b/app/components/types_de_champ_editor/champ_component/champ_component.html.haml @@ -69,18 +69,18 @@ .cell.fr-mt-1w = form.label :modele_lexpol, "Sélectionner un modèle Lexpol", class: 'flex-grow', for: dom_id(type_de_champ, :modele_lexpol) - if lexpol_models.any? - = form.select :modele_lexpol, - lexpol_models.map { |model| [model.first, model.last] }, - { prompt: 'Sélectionnez un modèle' }, + = form.select :modele_lexpol, + lexpol_models.map { |model| [model.first, model.last] }, + { prompt: 'Sélectionnez un modèle' }, { class: 'fr-select small-margin small width-100', id: dom_id(type_de_champ, :modele_lexpol) } - else .fr-message.fr-message--error %p Aucune modèle disponible ou erreur lors de la récupération des modèles. .cell.fr-mt-1w = form.label :lexpol_mapping, "Mapping des variables", class: 'flex-grow', for: dom_id(type_de_champ, :lexpol_mapping) - = form.text_area :lexpol_mapping, - value: type_de_champ.lexpol_mapping, - class: 'fr-input small-margin small width-100 resize-y', + = form.text_area :lexpol_mapping, + value: type_de_champ.lexpol_mapping, + class: 'fr-input small-margin small width-100 resize-y', rows: 3, placeholder: "numero_demande=numero.demande\n...", id: dom_id(type_de_champ, :lexpol_mapping)