paginate deleted dossiers
This commit is contained in:
parent
b4b92accf1
commit
459153978d
2 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,7 @@ module Instructeurs
|
|||
def deleted_dossiers
|
||||
@procedure = procedure
|
||||
@deleted_dossiers = @procedure.deleted_dossiers.where.not(state: :brouillon)
|
||||
@deleted_dossiers = @deleted_dossiers.order(:dossier_id).page params[:page]
|
||||
end
|
||||
|
||||
def update_displayed_fields
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
.container
|
||||
%p.explication-onglet Les dossiers ont été supprimés. Vous ne pouvez plus les récupérer depuis Démarches Simplifiées.
|
||||
- if @deleted_dossiers.any?
|
||||
= paginate @deleted_dossiers
|
||||
%table.table.dossiers-table.hoverable
|
||||
%thead
|
||||
%tr
|
||||
|
@ -56,6 +57,7 @@
|
|||
%td.status-col
|
||||
= status_badge(deleted_dossier.state)
|
||||
%td.date-col= l(deleted_dossier.deleted_at, format: '%d/%m/%y')
|
||||
= paginate @deleted_dossiers
|
||||
- else
|
||||
Aucun dossier supprimé
|
||||
|
||||
|
|
Loading…
Reference in a new issue