demarches-normaliennes/app/views/administrateurs/attestation_template_v2s/update.turbo_stream.haml
2024-01-31 17:03:51 +01:00

7 lines
506 B
Text

- if @attestation_template.logo_blob&.previously_new_record?
= turbo_stream.update dom_id(@attestation_template, :logo_attachment) do
= render(Attachment::EditComponent.new(attached_file: @attestation_template.logo, direct_upload: false))
- if @attestation_template.signature_blob&.previously_new_record?
= turbo_stream.update dom_id(@attestation_template, :signature_attachment) do
= render(Attachment::EditComponent.new(attached_file: @attestation_template.signature, direct_upload: false))