This commit is contained in:
Christophe Robillard 2020-03-24 13:53:15 +01:00
parent fcfa19a4aa
commit 78fcdd42a6
2 changed files with 5 additions and 3 deletions

View file

@ -115,8 +115,10 @@ 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]
@deleted_dossiers = @procedure
.deleted_dossiers.where.not(state: :brouillon)
.order(:dossier_id)
.page params[:page]
end
def update_displayed_fields

View file

@ -84,7 +84,7 @@ module DossierHelper
end
def status_badge(state)
status_text = state.tr('_', ' ')
status_text = dossier_display_state(state, lower: true)
status_class = state.tr('_', '-')
content_tag(:span, status_text, class: "label #{status_class} ")
end