2020-07-23 14:32:32 +02:00
|
|
|
|
- content_for(:root_class, 'scroll-margins-for-sticky-footer')
|
|
|
|
|
|
2021-11-25 16:26:55 +01:00
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-08-17 13:53:07 +02:00
|
|
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
2022-09-09 13:08:24 +02:00
|
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2022-08-17 13:53:07 +02:00
|
|
|
|
['Attestation']] }
|
2020-07-29 12:19:20 +02:00
|
|
|
|
|
|
|
|
|
.procedure-form#attestation-template-edit
|
|
|
|
|
.procedure-form__columns.container
|
2023-02-21 15:49:13 +01:00
|
|
|
|
= render Attachment::DeleteFormComponent.new
|
2020-07-29 12:19:20 +02:00
|
|
|
|
= form_for @attestation_template,
|
2022-11-09 12:09:24 +01:00
|
|
|
|
url: admin_procedure_attestation_template_path(@procedure),
|
2022-12-16 14:56:46 +01:00
|
|
|
|
html: { multipart: true, class: 'form form-ds-fr-white procedure-form__column--form' } do |f|
|
2020-07-29 12:19:20 +02:00
|
|
|
|
|
|
|
|
|
%h1.page-title
|
2021-05-26 15:09:23 +02:00
|
|
|
|
Délivrance d’attestation
|
2020-07-29 12:19:20 +02:00
|
|
|
|
- if @attestation_template.activated?
|
|
|
|
|
%span.text-active activée
|
|
|
|
|
- else
|
|
|
|
|
%span.text-inactive désactivée
|
|
|
|
|
|
|
|
|
|
%p.notice
|
|
|
|
|
L’attestation, si elle est activée, est émise au moment où un dossier est accepté.
|
|
|
|
|
%br
|
|
|
|
|
L’email d’accusé d’acceptation envoyé à l’usager comporte alors un lien vers l’attestation ;
|
|
|
|
|
celle-ci est également disponible au téléchargement depuis l’espace personnel de l’usager.
|
|
|
|
|
|
2021-11-25 16:26:55 +01:00
|
|
|
|
= render partial: 'administrateurs/attestation_templates/informations', locals: { f: f }
|
2020-07-29 12:19:20 +02:00
|
|
|
|
|
|
|
|
|
.procedure-form__actions.sticky--bottom
|
|
|
|
|
.actions-left
|
2022-01-04 14:44:17 +01:00
|
|
|
|
%label.toggle-switch
|
|
|
|
|
= f.check_box :activated, class: 'toggle-switch-checkbox'
|
|
|
|
|
%span.toggle-switch-control.round
|
|
|
|
|
%span.toggle-switch-label.on Attestation activée
|
|
|
|
|
%span.toggle-switch-label.off Attestation désactivée
|
2020-07-29 12:19:20 +02:00
|
|
|
|
|
|
|
|
|
.actions-right
|
2022-10-06 15:10:20 +02:00
|
|
|
|
= link_to 'Annuler', edit_admin_procedure_attestation_template_path(id: @procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'}
|
|
|
|
|
= f.button 'Enregistrer', class: 'fr-btn'
|
2020-07-29 12:19:20 +02:00
|
|
|
|
|
|
|
|
|
.procedure-form__column--preview
|
|
|
|
|
.procedure-form__preview.sticky--top
|
|
|
|
|
%h3
|
|
|
|
|
.procedure-form__preview-title
|
|
|
|
|
Aperçu
|
|
|
|
|
.notice
|
|
|
|
|
Cet aperçu est mis à jour après chaque sauvegarde.
|
|
|
|
|
.procedure-preview
|
2021-11-25 16:26:55 +01:00
|
|
|
|
= render partial: 'administrateurs/attestation_templates/apercu', locals: { procedure: @procedure }
|