{%- block vich_file_row -%} {%- set force_error = true -%} {{- block('form_row') -}} {%- endblock -%} {%- block vich_file_widget -%}
{%- if errors|length > 0 -%} {%- set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%} {%- endif -%} {{- form_widget(form.file, {attr: attr}) -}} {%- if form.delete is defined -%} {{- form_row(form.delete) -}} {%- endif -%} {%- if download_uri -%} {{ translation_domain is same as(false) ? download_label : download_label|trans({}, translation_domain) }} {%- endif -%}
{%- endblock -%} {%- block vich_image_row -%} {%- set force_error = true -%} {{- block('form_row') -}} {%- endblock -%} {%- block vich_image_widget -%}
{%- if errors|length > 0 -%} {%- set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%} {%- endif -%} {{- form_widget(form.file, {attr: attr}) -}} {%- if form.delete is defined -%} {{- form_row(form.delete) -}} {%- endif -%} {%- if image_uri -%} {%- endif -%} {%- if download_uri -%} {{ translation_domain is same as(false) ? download_label : download_label|trans({}, translation_domain) }} {%- endif -%}
{%- endblock -%}