{% from "tungsten/forms/macros.html" import wrapper, ui_action %} {% call wrapper(field, v) %}
{% for f in v.files %}{% endfor %} {% if v.image %}
{% for f in v.files %}
{{ f.name }} {% if not v.disabled %} {{ ui_action(form, 'file.remove:' ~ v.path ~ ':' ~ loop.index0, __('Remove'), 'absolute right-1 top-1 hidden rounded-full bg-gray-950/70 p-1 text-white group-hover:block', 'x') }} {% endif %}
{% endfor %} {% if not v.disabled and (v.multiple or not v.files) %} {% endif %}
{% else %} {% if v.files %} {% endif %} {% if not v.disabled and (v.multiple or not v.files) %} {% endif %} {% endif %} {% if v.disabled and not v.files %}

{{ __('No file.') }}

{% endif %}
{% endcall %}