demarches-normaliennes/app/views/administrateurs/attestation_template_v2s/show.html.haml

24 lines
990 B
Text
Raw Normal View History

.a4-container{ class: class_names("french-state-layout": @attestation_template.french_state_layout?) }
.content
%header.first-header
.left
- if @attestation_template.label_logo.present?
= image_tag('centered_marianne.svg', alt: '', class: 'marianne')
.bloc-marque
= simple_format @attestation_template.label_logo, class: "intitule"
= image_tag('liberte2.svg', alt: '', class: 'devise')
2023-11-14 17:46:52 +01:00
.right
- if @attestation_template.label_direction.present?
= simple_format @attestation_template.label_direction, class: "direction"
2023-11-14 17:46:52 +01:00
.main
= sanitize(@body, attributes: %w[class style], tags: Rails.configuration.action_view.sanitized_allowed_tags + %w[header])
2023-11-14 17:46:52 +01:00
2023-12-22 14:23:10 +01:00
- if @attestation_template.signature.present?
.signature
= image_tag(@attestation_template.signature_url)
- if @attestation_template.footer.present?
= simple_format @attestation_template.footer, class: "footer"