correct haml and scss lints
This commit is contained in:
parent
a5a93260cf
commit
afcb811a8e
2 changed files with 30 additions and 26 deletions
|
@ -4,18 +4,22 @@
|
||||||
padding-inline-start: 0;
|
padding-inline-start: 0;
|
||||||
border-top: 1px solid var(--border-plain-grey);
|
border-top: 1px solid var(--border-plain-grey);
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
border-bottom: 1px solid var(--border-plain-grey);
|
border-bottom: 1px solid var(--border-plain-grey);
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reinit a {
|
.reinit a {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.fr-highlight.fr-mb-4w
|
.fr-highlight.fr-mb-4w
|
||||||
%p Ce tableau de bord permet de consulter les informations sur les démarches simplifiées pour toutes les zones. Filtrez par zone et statut. Consultez la liste des démarches et cliquez sur une démarche pour voir la zone et quels sont les administrateurs.
|
%p Ce tableau de bord permet de consulter les informations sur les démarches simplifiées pour toutes les zones. Filtrez par zone et statut. Consultez la liste des démarches et cliquez sur une démarche pour voir la zone et quels sont les administrateurs.
|
||||||
|
|
||||||
.fr-container--fluid{'data-turbo': 'true', 'data-controller': 'autosubmit' }
|
.fr-container--fluid{ 'data-turbo': 'true', 'data-controller': 'autosubmit' }
|
||||||
.fr-grid-row.fr-grid-row--gutters
|
.fr-grid-row.fr-grid-row--gutters
|
||||||
.fr-col-3
|
.fr-col-3
|
||||||
= form_with(url: all_admin_procedures_path, method: :get, html: {'data-autosubmit-target': 'form'}) do |f|
|
= form_with(url: all_admin_procedures_path, method: :get, html: {'data-autosubmit-target': 'form'}) do |f|
|
||||||
|
@ -16,38 +16,38 @@
|
||||||
%fieldset.sidebar-filter
|
%fieldset.sidebar-filter
|
||||||
%legend
|
%legend
|
||||||
.title.font-weight-bold.fr-pl-2w
|
.title.font-weight-bold.fr-pl-2w
|
||||||
%span.fr-icon-filter-fill.fr-icon--sm.fr-mr-1w{'aria-hidden': 'true'}
|
%span.fr-icon-filter-fill.fr-icon--sm.fr-mr-1w{ 'aria-hidden': 'true' }
|
||||||
Filtrer
|
Filtrer
|
||||||
.reinit
|
.reinit
|
||||||
= link_to all_admin_procedures_path(zone_ids: current_administrateur.zones) do
|
= link_to all_admin_procedures_path(zone_ids: current_administrateur.zones) do
|
||||||
%span.fr-icon-arrow-go-back-line Réinitialiser
|
%span.fr-icon-arrow-go-back-line Réinitialiser
|
||||||
%ul
|
%ul
|
||||||
%li.fr-py-2w.fr-pl-2w{'data-controller': "expand"}
|
%li.fr-py-2w.fr-pl-2w{ 'data-controller': "expand" }
|
||||||
.fr-mb-1w{'data-action': 'click->expand#toggle'}
|
.fr-mb-1w{ 'data-action': 'click->expand#toggle' }
|
||||||
%button
|
%button
|
||||||
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{'aria-hidden': 'true', 'data-expand-target': 'icon'}
|
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{ 'aria-hidden': 'true', 'data-expand-target': 'icon' }
|
||||||
Mes zones
|
Mes zones
|
||||||
.fr-ml-1w{'data-expand-target': 'content'}
|
.fr-ml-1w{ 'data-expand-target': 'content' }
|
||||||
= f.collection_check_boxes :zone_ids, @admin_zones, :id, :current_label, include_hidden: false do |b|
|
= f.collection_check_boxes :zone_ids, @admin_zones, :id, :current_label, include_hidden: false do |b|
|
||||||
.fr-checkbox-group.fr-ml-2w
|
.fr-checkbox-group.fr-ml-2w
|
||||||
= b.check_box(checked: @zone_ids&.map(&:to_i)&.include?(b.value), 'data-action': 'autosubmit#submit')
|
= b.check_box(checked: @zone_ids&.map(&:to_i)&.include?(b.value), 'data-action': 'autosubmit#submit')
|
||||||
= b.label(class: 'fr-label') { b.text }
|
= b.label(class: 'fr-label') { b.text }
|
||||||
%li.fr-py-2w.fr-pl-2w{'data-controller': "expand"}
|
%li.fr-py-2w.fr-pl-2w{ 'data-controller': "expand" }
|
||||||
.fr-mb-1w{'data-action': 'click->expand#toggle'}
|
.fr-mb-1w{ 'data-action': 'click->expand#toggle' }
|
||||||
%button
|
%button
|
||||||
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{'aria-hidden': 'true', 'data-expand-target': 'icon'}
|
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{ 'aria-hidden': 'true', 'data-expand-target': 'icon' }
|
||||||
Autres zones
|
Autres zones
|
||||||
.fr-ml-1w.hidden{'data-expand-target': 'content'}
|
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
||||||
= f.collection_check_boxes :zone_ids, @other_zones, :id, :current_label, include_hidden: false do |b|
|
= f.collection_check_boxes :zone_ids, @other_zones, :id, :current_label, include_hidden: false do |b|
|
||||||
.fr-checkbox-group.fr-ml-2w
|
.fr-checkbox-group.fr-ml-2w
|
||||||
= b.check_box(checked: @zone_ids&.map(&:to_i)&.include?(b.value), 'data-action': 'autosubmit#submit')
|
= b.check_box(checked: @zone_ids&.map(&:to_i)&.include?(b.value), 'data-action': 'autosubmit#submit')
|
||||||
= b.label(class: 'fr-label') { b.text }
|
= b.label(class: 'fr-label') { b.text }
|
||||||
%li.fr-py-2w.fr-pl-2w{'data-controller': "expand"}
|
%li.fr-py-2w.fr-pl-2w{ 'data-controller': "expand" }
|
||||||
.fr-mb-1w{'data-action': 'click->expand#toggle'}
|
.fr-mb-1w{ 'data-action': 'click->expand#toggle' }
|
||||||
%button
|
%button
|
||||||
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{'aria-hidden': 'true', 'data-expand-target': 'icon'}
|
%span.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-text-action-high--blue-france{ 'aria-hidden': 'true', 'data-expand-target': 'icon' }
|
||||||
Statut
|
Statut
|
||||||
.fr-ml-1w.hidden{'data-expand-target': 'content'}
|
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
||||||
= f.collection_check_boxes :statuses, ['publiee', 'close'], :to_s, :to_s, include_hidden: false do |b|
|
= f.collection_check_boxes :statuses, ['publiee', 'close'], :to_s, :to_s, include_hidden: false do |b|
|
||||||
.fr-checkbox-group.fr-ml-2w
|
.fr-checkbox-group.fr-ml-2w
|
||||||
= b.check_box(checked: @statuses&.include?(b.value), 'data-action': 'autosubmit#submit')
|
= b.check_box(checked: @statuses&.include?(b.value), 'data-action': 'autosubmit#submit')
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
%table#all-demarches
|
%table#all-demarches
|
||||||
%caption
|
%caption
|
||||||
= "#{@procedures.total_count} démarches"
|
= "#{@procedures.total_count} démarches"
|
||||||
%span.hidden.fr-icon-ball-pen-fill{'aria-hidden': 'true', 'data-autosubmit-target': 'spinner'}
|
%span.hidden.fr-icon-ball-pen-fill{ 'aria-hidden': 'true', 'data-autosubmit-target': 'spinner' }
|
||||||
- if @selected_zones
|
- if @selected_zones
|
||||||
.selected-zones.fr-mb-2w
|
.selected-zones.fr-mb-2w
|
||||||
- @selected_zones.each do |zone|
|
- @selected_zones.each do |zone|
|
||||||
|
@ -70,24 +70,24 @@
|
||||||
= paginate @procedures, views_prefix: 'administrateurs'
|
= paginate @procedures, views_prefix: 'administrateurs'
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{scope: 'col'}
|
%th{ scope: 'col' }
|
||||||
%th{scope: 'col'} Démarche
|
%th{ scope: 'col' } Démarche
|
||||||
%th{scope: 'col'} N°
|
%th{ scope: 'col' } N°
|
||||||
%th{scope: 'col'} Administrateurs
|
%th{ scope: 'col' } Administrateurs
|
||||||
%th{scope: 'col'} Statut
|
%th{ scope: 'col' } Statut
|
||||||
%th{scope: 'col'} Date
|
%th{ scope: 'col' } Date
|
||||||
- @procedures.each do |procedure|
|
- @procedures.each do |procedure|
|
||||||
%tbody{'data-controller': 'expand'}
|
%tbody{ 'data-controller': 'expand' }
|
||||||
%tr.procedure{'data-action': 'click->expand#toggle'}
|
%tr.procedure{ 'data-action': 'click->expand#toggle' }
|
||||||
%td
|
%td
|
||||||
%button.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-mb-1w.fr-text-action-high--blue-france{'aria-hidden': 'true', 'data-expand-target': 'icon'}
|
%button.fr-icon-add-line.fr-icon--sm.fr-mr-1w.fr-mb-1w.fr-text-action-high--blue-france{ 'aria-hidden': 'true', 'data-expand-target': 'icon' }
|
||||||
%td= procedure.libelle
|
%td= procedure.libelle
|
||||||
%td= procedure.id
|
%td= procedure.id
|
||||||
%td= procedure.administrateurs.count
|
%td= procedure.administrateurs.count
|
||||||
%td= t procedure.aasm_state, scope: 'activerecord.attributes.procedure.aasm_state'
|
%td= t procedure.aasm_state, scope: 'activerecord.attributes.procedure.aasm_state'
|
||||||
%td= l(procedure.published_at, format: :message_date_without_time)
|
%td= l(procedure.published_at, format: :message_date_without_time)
|
||||||
%tr.hidden{'data-expand-target': 'content'}
|
%tr.hidden{ 'data-expand-target': 'content' }
|
||||||
%td.fr-highlight--beige-gris-galet{colspan: '6'}
|
%td.fr-highlight--beige-gris-galet{ colspan: '6' }
|
||||||
.fr-container
|
.fr-container
|
||||||
.fr-grid-row
|
.fr-grid-row
|
||||||
.fr-col-6
|
.fr-col-6
|
||||||
|
|
Loading…
Add table
Reference in a new issue