refactor
This commit is contained in:
parent
fcfa19a4aa
commit
78fcdd42a6
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue