refactor(procedure): add a prefix to closing_reason enum

This commit is contained in:
Eric Leroy-Terquem 2024-03-20 13:53:15 +01:00
parent 579fe2c933
commit 280f1ac3c7
4 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
.fr-grid-row
.fr-col-12.fr-col-offset-md-2.fr-col-md-8
%h1= t('administrateurs.procedures.closing_notification.page_title')
- if @procedure.closing_reason == Procedure.closing_reasons.fetch(:other)
- if @procedure.closing_reason_other?
%h2.fr-h5= I18n.t('administrateurs.procedures.closing_notification.page_subtitle', closing_path: closing_details_path(@procedure.path)).html_safe
- else
%h2.fr-h5= I18n.t('administrateurs.procedures.closing_notification.page_subtitle_with_redirection', redirection_path: commencer_path(@procedure.replaced_by_procedure.path)).html_safe