2022-05-11 08:57:25 +02:00
|
|
|
|
.attachment
|
|
|
|
|
- if template&.attached?
|
|
|
|
|
%p.mb-1
|
|
|
|
|
Veuillez télécharger, remplir et joindre
|
2022-10-10 19:04:57 +02:00
|
|
|
|
= link_to(url_for(template), download: "", class: "fr-link fr-link--icon-right fr-icon-download-line") do
|
2022-10-04 13:17:25 +02:00
|
|
|
|
le modèle suivant
|
2022-05-11 08:57:25 +02:00
|
|
|
|
|
2022-09-19 18:27:50 +02:00
|
|
|
|
- if helpers.administrateur_signed_in?
|
2022-10-04 13:17:25 +02:00
|
|
|
|
%span.ml-2.fr-text--xs.fr-text-mention--grey.visible-on-previous-hover
|
|
|
|
|
%span.fr-text-action-high--blue-france.fr-icon-questionnaire-line{ "aria-hidden": "true" }
|
2022-09-19 18:27:50 +02:00
|
|
|
|
= t('shared.ephemeral_link')
|
|
|
|
|
|
2022-05-11 08:57:25 +02:00
|
|
|
|
- if persisted?
|
|
|
|
|
.attachment-actions{ id: dom_id(attachment, :actions) }
|
|
|
|
|
.attachment-action
|
|
|
|
|
= render Attachment::ShowComponent.new(attachment: attachment, user_can_upload: true)
|
|
|
|
|
- if user_can_destroy?
|
|
|
|
|
.attachment-action{ "data-turbo": "true" }
|
|
|
|
|
= link_to('Supprimer', attachment_path, **remove_button_options)
|
|
|
|
|
.attachment-action
|
|
|
|
|
= button_tag('Remplacer', **replace_button_options)
|
|
|
|
|
|
|
|
|
|
.attachment-error.hidden
|
|
|
|
|
.attachment-error-message
|
|
|
|
|
%p.attachment-error-title
|
|
|
|
|
Une erreur s’est produite pendant l’envoi du fichier.
|
|
|
|
|
%p.attachment-error-description
|
|
|
|
|
Une erreur inconnue s'est produite pendant l'envoi du fichier
|
|
|
|
|
= button_tag(**retry_button_options) do
|
|
|
|
|
%span.icon.retry
|
|
|
|
|
Ré-essayer
|
|
|
|
|
|
2022-06-16 15:51:45 +02:00
|
|
|
|
|
|
|
|
|
%label.text-sm.font-weight-normal{ for: file_field_options[:id] }
|
|
|
|
|
= t('.max_file_size', max_file_size: number_to_human_size(max_file_size))
|
|
|
|
|
|
2022-05-11 08:57:25 +02:00
|
|
|
|
= form.file_field(file_field_name, **file_field_options)
|