demarches-normaliennes/app/views/administrateurs/procedures/apercu.html.haml
2024-03-04 10:59:11 +01:00

18 lines
783 B
Text

.dossiers-headers.sub-header
.fr-container
%h1.page-title Prévisualisation de la démarche « #{@dossier.procedure.libelle} »
%nav.fr-tabs
%ul.fr-tabs__list{ role: 'tablist' }
= tab_item('le dossier',
apercu_admin_procedure_path(@dossier.procedure, tab: 'dossier'),
active: @tab == 'dossier')
- if @dossier.has_annotations?
= tab_item('les annotations privées',
apercu_admin_procedure_path(@dossier.procedure, tab: 'annotations-privees'),
active: @tab == 'annotations-privees')
- if @tab == 'dossier'
= render partial: "shared/dossiers/edit", locals: { dossier: @dossier }
- else
= render partial: "shared/dossiers/edit_annotations", locals: { dossier: @dossier, seen_at: nil }