{%- import "apostrophe-schemas:macros.html" as schemas -%} {%- import "apostrophe-ui:components/buttons.html" as buttons -%} {% macro attachment(field) %}
{{ __("View file") }} {% if field.crop %} {{ __("Crop image") }} {% endif %} {% if field.focalPoint %} {{ __("Focal point") }} {% endif %} {% if field.trash %} {{ buttons.danger('Delete File', { action: 'trash' }) }} {% endif %}
{% if not field.readOnly %}{{ buttons.action('Upload File', { action: 'uploader-target' }) }}{% endif %} {% endmacro %} {{ schemas.fieldset(data, attachment) }}