{% set delete_btn %} {% endset %} {#{{ form_row(form.master_picture_attachment) }} #} {% for attachment in form.attachments %} {% endfor %}
{{ form_widget(attachment) }}
{{ delete_btn }} {% set attach = attachment.vars.value %} {# @var attach \App\Entity\Attachments\Attachment #} {% if attachment_manager.fileExisting(attach) %} {% if not attach.external %}

{{ attach.filename }}
{{ attachment_manager.humanFileSize(attach) }}
{% else %}

{% trans %}attachment.external{% endtrans %}
{% endif %} {% if attach.secure and not is_granted('show_private', attach) %} {# Leave blank #} {% elseif attach.picture %} {% trans %}attachment.preview.alt{% endtrans %} {% else %} {% trans %}attachment.view{% endtrans %} {% endif %} {% else %}

{% trans %}attachment.file_not_found{% endtrans %}
{% endif %} {% if attach.secure %}
{% trans %}attachment.secure{% endtrans %}
{% endif %}