2023-12-22 14:24:39 +01:00
|
|
|
.a4-container{ class: class_names("official-layout": @attestation_template.official_layout?) }
|
2023-12-20 22:11:43 +01:00
|
|
|
.content
|
|
|
|
%header.first-header
|
|
|
|
.left
|
2023-12-22 14:24:39 +01:00
|
|
|
- if @attestation_template.official_layout?
|
2023-12-20 22:11:43 +01:00
|
|
|
= image_tag('centered_marianne.svg', alt: '', class: 'marianne')
|
|
|
|
.bloc-marque
|
2023-12-22 14:24:39 +01:00
|
|
|
= simple_format @attestation_template.label_logo.presence || "VOTRE INTITULE\ndu LOGO MARIANNE", class: "intitule"
|
2023-12-20 22:11:43 +01:00
|
|
|
= image_tag('liberte2.svg', alt: '', class: 'devise')
|
2023-12-22 14:24:39 +01:00
|
|
|
- elsif @attestation_template.logo.present?
|
2024-01-10 11:25:20 +01:00
|
|
|
.bloc-marque.logo-free-layout
|
2023-12-22 14:24:39 +01:00
|
|
|
= image_tag(@attestation_template.logo_url)
|
2023-11-14 17:46:52 +01:00
|
|
|
|
2023-12-20 22:11:43 +01:00
|
|
|
.right
|
2023-12-22 14:24:39 +01:00
|
|
|
- if @attestation_template.official_layout? && @attestation_template.logo.present?
|
|
|
|
.logo-co-emetteur
|
|
|
|
= image_tag(@attestation_template.logo_url)
|
|
|
|
|
2023-12-20 22:11:43 +01:00
|
|
|
- if @attestation_template.label_direction.present?
|
|
|
|
= simple_format @attestation_template.label_direction, class: "direction"
|
2023-11-14 17:46:52 +01:00
|
|
|
|
2023-12-20 22:11:43 +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)
|
|
|
|
|
2023-12-20 22:11:43 +01:00
|
|
|
- if @attestation_template.footer.present?
|
|
|
|
= simple_format @attestation_template.footer, class: "footer"
|