add pagination title and add missing DSFR style on table

This commit is contained in:
Lisa Durand 2023-04-21 12:50:09 +02:00
parent 88f680a265
commit 1b02857662
3 changed files with 58 additions and 45 deletions

View file

@ -1,5 +1,10 @@
- if deleted_dossiers.present?
%table.table.dossiers-table.hoverable
%span.fr-h6.fr-mr-2w
= page_entries_info hidden_dossiers
.fr-table.fr-table--bordered.fr-table--no-caption.fr-mt-2w
%table.table.dossiers-table.hoverable.display-table
%caption= t('views.users.dossiers.dossiers_list.caption')
%thead
%tr
%th.number-col Nº dossier

View file

@ -1,5 +1,7 @@
- if dossiers.present?
.fr-table.fr-table--bordered
%span.fr-h6.fr-mr-2w
= page_entries_info dossiers
.fr-table.fr-table--bordered.fr-table--no-caption.fr-mt-2w
%table.table.dossiers-table.hoverable
%caption= t('views.users.dossiers.dossiers_list.caption')
%thead

View file

@ -1,11 +1,17 @@
- if hidden_dossiers.present?
%span.fr-h6.fr-mr-2w
= page_entries_info hidden_dossiers
.fr-table.fr-table--bordered.fr-table--no-caption.fr-mt-2w
%table.table.dossiers-table.hoverable
%caption= t('views.users.dossiers.dossiers_list.caption')
%thead
%tr
%th.number-col Nº dossier
%th Démarche
%th Raison de suppression
%th Date de suppression
%th.action-col.follow-col Actions
%tbody
- hidden_dossiers.each do |dossier|
- libelle_demarche = dossier.procedure.libelle
@ -21,8 +27,8 @@
= deletion_reason_badge("user_request")
%td
= dossier.updated_at.strftime('%d/%m/%Y')
%td
= link_to restore_dossier_path(dossier.id), method: :patch, class: "button primary" do
%td.action-col.follow-col
= link_to restore_dossier_path(dossier.id), method: :patch, class: "fr-btn" do
Restaurer
= paginate(hidden_dossiers)