From 3b70b36d2df4ae2e4f214b41cae7744efe531429 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Fri, 22 Dec 2023 14:14:41 +0100 Subject: [PATCH] feat(attestation): footer save, preview --- .../attestation_template_v2s/edit.html.haml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/views/administrateurs/attestation_template_v2s/edit.html.haml b/app/views/administrateurs/attestation_template_v2s/edit.html.haml index 3b78a3125..58c0336db 100644 --- a/app/views/administrateurs/attestation_template_v2s/edit.html.haml +++ b/app/views/administrateurs/attestation_template_v2s/edit.html.haml @@ -69,3 +69,20 @@ .fr-col-12.fr-col-md-4.fr-background-alt--blue-france Image d'exemple ici + + .padded-fixed-footer + .fixed-footer + .fr-container + .fr-grid-row + .fr-col-11 + %ul.fr-btns-group.fr-btns-group--inline-md + %li + = f.button 'Enregistrer', class: 'fr-btn' + %li + = link_to 'Prévisualiser l’attestation PDF', admin_procedure_attestation_template_v2_path(@procedure), class: 'fr-btn fr-btn--secondary', target: '_blank', rel: 'noopener' + %li + = link_to 'Annuler', admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--tertiary-no-outline', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'} + .fr-col-1 + .fr-toggle + = f.check_box :activated, class: "fr-toggle-input", id: dom_id(@attestation_template, :activated) + %label.fr-toggle__label{ for: dom_id(@attestation_template, :activated), data: { fr_checked_label: "Activé", fr_unchecked_label: "Désactivé" } }