refacto(dossier list): use model method en_construction_ou_instruction?
This commit is contained in:
parent
5754d01242
commit
bfd4ae9d50
1 changed files with 4 additions and 4 deletions
|
@ -58,13 +58,13 @@
|
|||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe
|
||||
- elsif dossier.brouillon? && dossier.procedure.closing_reason_other?
|
||||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.other', link: closing_details_path(dossier.procedure.path)).html_safe
|
||||
- elsif (dossier.en_construction? || dossier.en_instruction?) && dossier.procedure.closing_reason_internal_procedure?
|
||||
- elsif dossier.en_construction_ou_instruction? && dossier.procedure.closing_reason_internal_procedure?
|
||||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.internal_procedure')
|
||||
- elsif (dossier.en_construction? || dossier.en_instruction?) && dossier.procedure.closing_reason_other?
|
||||
- elsif dossier.en_construction_ou_instruction? && dossier.procedure.closing_reason_other?
|
||||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.other', link: closing_details_path(dossier.procedure.path)).html_safe
|
||||
- elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:internal_procedure))
|
||||
- elsif dossier.termine? && dossier.procedure.closing_reason_internal_procedure?
|
||||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe
|
||||
- elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:other))
|
||||
- elsif dossier.termine? && dossier.procedure.closing_reason_other?
|
||||
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.other', link: closing_details_path(dossier.procedure.path)).html_safe
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue