[Fix #1979] Admins can delete the attestation template's signature
This commit is contained in:
parent
370cb2e05e
commit
d649e29bb0
3 changed files with 14 additions and 0 deletions
|
@ -52,6 +52,8 @@
|
|||
= image_tag @attestation_template.signature.url, class: 'thumbnail'
|
||||
.form-group
|
||||
= f.label :signature, "Tampon de l'attestation"
|
||||
- if @attestation_template.signature.present?
|
||||
= link_to 'Supprimer le tampon', admin_procedure_attestation_template_signature_path(@procedure), method: :delete
|
||||
= f.file_field :signature, accept: 'image/png, image/jpg, image/jpeg'
|
||||
%p.help-block
|
||||
Fichier accepté : JPG / JPEG / PNG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue