add pagination title and add missing DSFR style on table
This commit is contained in:
parent
88f680a265
commit
1b02857662
3 changed files with 58 additions and 45 deletions
|
@ -1,26 +1,31 @@
|
|||
- if deleted_dossiers.present?
|
||||
%table.table.dossiers-table.hoverable
|
||||
%thead
|
||||
%tr
|
||||
%th.number-col Nº dossier
|
||||
%th Démarche
|
||||
%th Raison de suppression
|
||||
%th Date de suppression
|
||||
%tbody
|
||||
- deleted_dossiers.each do |dossier|
|
||||
- libelle_demarche = Procedure.find(dossier.procedure_id).libelle
|
||||
%span.fr-h6.fr-mr-2w
|
||||
= page_entries_info hidden_dossiers
|
||||
|
||||
%tr{ data: { 'dossier-id': dossier.dossier_id } }
|
||||
%td.number-col
|
||||
%span.icon.folder
|
||||
= dossier.dossier_id
|
||||
%td
|
||||
= libelle_demarche
|
||||
.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
|
||||
%th Démarche
|
||||
%th Raison de suppression
|
||||
%th Date de suppression
|
||||
%tbody
|
||||
- deleted_dossiers.each do |dossier|
|
||||
- libelle_demarche = Procedure.find(dossier.procedure_id).libelle
|
||||
|
||||
%td.cell-link
|
||||
= deletion_reason_badge(dossier.reason)
|
||||
%td
|
||||
= dossier.updated_at.strftime('%d/%m/%Y')
|
||||
%tr{ data: { 'dossier-id': dossier.dossier_id } }
|
||||
%td.number-col
|
||||
%span.icon.folder
|
||||
= dossier.dossier_id
|
||||
%td
|
||||
= libelle_demarche
|
||||
|
||||
%td.cell-link
|
||||
= deletion_reason_badge(dossier.reason)
|
||||
%td
|
||||
= dossier.updated_at.strftime('%d/%m/%Y')
|
||||
|
||||
= paginate(deleted_dossiers)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,31 +1,37 @@
|
|||
- if hidden_dossiers.present?
|
||||
%table.table.dossiers-table.hoverable
|
||||
%thead
|
||||
%tr
|
||||
%th.number-col Nº dossier
|
||||
%th Démarche
|
||||
%th Raison de suppression
|
||||
%th Date de suppression
|
||||
%tbody
|
||||
- hidden_dossiers.each do |dossier|
|
||||
- libelle_demarche = dossier.procedure.libelle
|
||||
%span.fr-h6.fr-mr-2w
|
||||
= page_entries_info hidden_dossiers
|
||||
|
||||
%tr{ data: { 'dossier-id': dossier.id } }
|
||||
%td.number-col
|
||||
%span.icon.folder
|
||||
= dossier.id
|
||||
%td
|
||||
= libelle_demarche
|
||||
.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
|
||||
|
||||
%td.cell-link
|
||||
= 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
|
||||
Restaurer
|
||||
%tr{ data: { 'dossier-id': dossier.id } }
|
||||
%td.number-col
|
||||
%span.icon.folder
|
||||
= dossier.id
|
||||
%td
|
||||
= libelle_demarche
|
||||
|
||||
= paginate(hidden_dossiers)
|
||||
%td.cell-link
|
||||
= deletion_reason_badge("user_request")
|
||||
%td
|
||||
= dossier.updated_at.strftime('%d/%m/%Y')
|
||||
%td.action-col.follow-col
|
||||
= link_to restore_dossier_path(dossier.id), method: :patch, class: "fr-btn" do
|
||||
Restaurer
|
||||
|
||||
= paginate(hidden_dossiers)
|
||||
|
||||
- else
|
||||
.blank-tab
|
||||
|
|
Loading…
Reference in a new issue