Skip to content

Commit

Permalink
chore: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru committed Dec 9, 2024
1 parent 4dd0498 commit eb8bfe3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
-# = form.submit 'Mettre à jour le dossier', class: 'fr-btn fr-btn--secondary'
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb8bfe3

Please sign in to comment.