Merge pull request #10393 from demarches-simplifiees/fix-page-listing-titles

Amélioration de la hiérarchie de titres sur les pages de listing et suppression d'un lien vide
This commit is contained in:
mfo 2024-05-13 14:31:30 +00:00 committed by GitHub
commit ef4fb441e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 20 additions and 23 deletions

View file

@ -13,14 +13,7 @@
}
.procedure-admin-listing-container {
display: flex;
justify-content: flex-end;
padding-left: 16px;
padding-right: 16px;
max-width: 1072px;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
}
.container {

View file

@ -1,4 +1,4 @@
.fr-h6
%h2.fr-h6
= page_entries_info procedures
- procedures.each do |procedure|
@ -10,7 +10,7 @@
= image_tag procedure.logo, alt: procedure.libelle, class: 'logo'
%div
.card-title
%h3.card-title
= link_to procedure.libelle, admin_procedure_path(procedure)
= link_to commencer_url(procedure.path), commencer_url(procedure.path), class: 'fr-link fr-mb-1w'

View file

@ -1,6 +1,8 @@
.sub-header
.procedure-admin-listing-container
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
.flex.fr-container
%h1.fr-h3 Mes démarches
.procedure-admin-listing-container.fr-mt-1v
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
.fr-container
%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }

View file

@ -1,8 +1,10 @@
- content_for(:title, "Avis")
.container
%h1.page-title Avis
.sub-header
.fr-container
%h1.fr-h3 Avis
.fr-container
%ul.procedure-list.fr-pl-0
- @avis_by_procedure.each do |p, procedure_avis|
%li.flex.align-start.fr-my-3w.fr-p-2w{ id: dom_id(p) }

View file

@ -1,13 +1,13 @@
%li.flex.align-start.fr-mb-5w
.flex
= link_to instructeur_procedure_path(p), class: 'procedure-logo-link' do
.procedure-logo{ style: "background-image: url(#{p.logo_url})" }
.procedure-logo{ style: "background-image: url(#{p.logo_url})" }
.procedure-details
.flex.clipboard-container
%p.fr-mb-2w
.fr-mb-2w
= procedure_badge(p)
= link_to("#{p.libelle} - n°#{p.id}", instructeur_procedure_path(p), class: "fr-link fr-ml-1w")
%h3.font-weight-normal.fr-link.fr-ml-1w
= link_to("#{p.libelle} - n°#{p.id}", instructeur_procedure_path(p))
= render Dsfr::CopyButtonComponent.new(title: t('instructeurs.procedures.index.copy_link_button'), text: commencer_url(p.path))
%ul.procedure-stats.flex

View file

@ -1,6 +1,6 @@
- if procedures.length > 1
.flex.align-center.fr-mb-2w
%h2.fr-text--sm.fr-mb-1w= t('views.instructeurs.dossiers.dossier_synthesis')
%p.font-weight-bold.fr-text--sm.fr-mb-1w= t('views.instructeurs.dossiers.dossier_synthesis')
- all_dossiers_counts.each_with_index do |(label, dossier_count)|
- if dossier_count != 0
%span.fr-badge.fr-ml-1w.fr-mb-1w= number_with_html_delimiter(dossier_count) + ' ' + label

View file

@ -30,7 +30,7 @@
- if collection.present?
.fr-h6
%h2.fr-h6
= page_entries_info collection
%ul.procedure-list.fr-pl-0
= render partial: 'instructeurs/procedures/list',

View file

@ -1,12 +1,12 @@
- if deleted_dossiers.present?
.fr-h6.fr-mb-2w
%h2.fr-h6.fr-mb-2w
= page_entries_info deleted_dossiers
- deleted_dossiers.each do |dossier|
.card
.flex.justify-between
%div
%h2.card-title
%h3.card-title
= dossier.procedure.libelle
%p.fr-icon--sm.fr-icon-delete-line.fr-mb-0

View file

@ -1,12 +1,12 @@
- if dossiers.present?
.fr-h6.fr-mb-2w
%h2.fr-h6.fr-mb-2w
= page_entries_info dossiers
- dossiers.each do |dossier|
.card
.flex.justify-between
%div
%h2.card-title
%h3.card-title
- if ["dossiers-transferes", "dossiers-supprimes-recemment"].exclude?(@statut)
= link_to(url_for_dossier(dossier), class: 'cell-link') do
= dossier.procedure.libelle