chore(lint): fix haml linting issues on view components

This commit is contained in:
Colin Darie 2022-11-21 15:41:45 +01:00
parent 2c1e9a4fa2
commit 15717c5b2f
6 changed files with 9 additions and 9 deletions

View file

@ -12,11 +12,11 @@
%ul.fr-tags-group
- tags.each do |tag|
%li
%p.fr-tag=tag
%p.fr-tag= tag
.fr-card__end
- if error
.fr-card__detail.fr-alert.fr-alert--error
%p=error
%p= error
- if footer_buttons?
.fr-card__footer

View file

@ -6,6 +6,6 @@
- if @champ.collapsible_explanation_enabled? && @champ.collapsible_explanation_text.present?
%div
%p.fr-my-2w
%button{type: "button", "aria-controls": dom_id(@champ, :explanation), "aria-expanded": "false", href: dom_id(@champ, :explanation)} Lire plus
%p.fr-collapse{ id: dom_id(@champ, :explanation)}
%button{ type: "button", "aria-controls": dom_id(@champ, :explanation), "aria-expanded": "false", href: dom_id(@champ, :explanation) } Lire plus
%p.fr-collapse{ id: dom_id(@champ, :explanation) }
= @champ.collapsible_explanation_text

View file

@ -1,5 +1,5 @@
%li.type-de-champ.flex.column.justify-start{ html_options }
.flex.justify-start.section.head{ class: type_de_champ.header_section? ? '' : 'hr'}
.flex.justify-start.section.head{ class: type_de_champ.header_section? ? '' : 'hr' }
.handle.small.icon-only.icon.move-handle{ title: "Déplacer le champ vers le haut ou vers le bas" }
.flex.justify-start.delete
= button_to type_de_champ_path, class: 'button small icon-only danger', method: :delete, form: { data: { turbo_confirm: 'Êtes vous sûr de vouloir supprimer ce champ ?' } } do

View file

@ -1,5 +1,5 @@
%span.fill-duration{ id: dom_id(@revision, :estimated_fill_duration) }
- if show?
= t('.estimated_fill_duration')
= link_to "https://doc.demarches-simplifiees.fr/tutoriels/tutoriel-administrateur#g.-estimation-de-la-duree-de-remplissage", target: "_blank", rel: "noopener noreferrer" do
= link_to "#{DOC_URL}/tutoriels/tutoriel-administrateur#g.-estimation-de-la-duree-de-remplissage", target: "_blank", rel: "noopener noreferrer" do
= t('.estimated_fill_minutes', estimated_minutes: estimated_fill_duration_minutes)