2024-01-25 14:17:01 +01:00
|
|
|
= turbo_stream.show 'autosave-notice'
|
|
|
|
= turbo_stream.replace 'autosave-notice', render(partial: 'administrateurs/autosave_notice')
|
|
|
|
= turbo_stream.hide 'autosave-notice', delay: 15000
|
|
|
|
|
2023-12-22 14:13:20 +01:00
|
|
|
- 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))
|