From 25ffd902ff20cf223f580b87dd0186b0857f8492 Mon Sep 17 00:00:00 2001 From: mfo Date: Thu, 20 Jun 2024 14:42:55 +0200 Subject: [PATCH] feat(admin/annotations): add link to show annotations history --- app/views/administrateurs/procedures/annotations.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/administrateurs/procedures/annotations.html.haml b/app/views/administrateurs/procedures/annotations.html.haml index b9a1c24a0..efd7199d7 100644 --- a/app/views/administrateurs/procedures/annotations.html.haml +++ b/app/views/administrateurs/procedures/annotations.html.haml @@ -4,7 +4,11 @@ ['Annotations privées']], preview: true } .fr-container - %h1.fr-h2 Annotations privées + .flex.justify-between.align-center.fr-mb-3w + %h1.fr-h2 Annotations privées + - if @procedure.revised? + = link_to "Voir l'historique des modifications des annotations", modifications_admin_procedure_path(@procedure), class: 'fr-link' + = render NestedForms::FormOwnerComponent.new .fr-grid-row = render partial: 'champs_summary', locals: { header_sections: @procedure.draft_revision_header_sections_private }