{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% use '@EasyAdmin/crud/form_theme.html.twig' %} {% block form_label -%} {% if label is not same as(false) -%} {%- if compound is defined and compound -%} {%- set element = 'legend' -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label')|trim}) -%} {%- else -%} {%- set label_attr = label_attr|merge({for: id, class: (label_attr.class|default('') ~ ' form-label')|trim}) -%} {%- endif -%} {{ parent() }} {%- endif -%} {%- endblock form_label %} {% block gallery_manager_row %} {{ block('collection_row') }} {% endblock gallery_manager_row %} {% block gallery_manager_widget %} {{ block('collection_widget') }} {% endblock gallery_manager_widget %} {% block collection_row %} {% if prototype is defined and not prototype.rendered %} {% set row_attr = row_attr|merge({ 'data-prototype': form_row(prototype) }) %} {% endif %} {% set row_attr = row_attr|merge({ 'data-entry-is-complex': form.vars.ea_crud_form.ea_field and form.vars.ea_crud_form.ea_field.customOptions.get('entryIsComplex') ? 'true' : 'false', 'data-allow-add': allow_add ? 'true' : 'false', 'data-allow-delete': allow_delete ? 'true' : 'false', 'data-num-items': form.children|length, 'data-form-type-name-placeholder': prototype is defined ? prototype.vars.name : '', }) %} {{ block('form_row') }} {% endblock collection_row %} {% block collection_widget %} {{ block('form_widget') }} {% if allow_add|default(false) %} {% endif %} {% endblock collection_widget %} {% block collection_entry_widget %} {% set is_complex = form_parent(form).vars.ea_crud_form.ea_field.customOptions.get('entryIsComplex') ?? false %}
{{ form_widget(form) }} {% if form_parent(form).vars.allow_delete|default(false) %} {% endif %}
{% endblock collection_entry_widget %} {% block file_manager_image_row %} {{ form_widget(form) }} {% endblock file_manager_image_row %} {% block file_manager_legend_row %} {{ form_widget(form) }} {% endblock file_manager_legend_row %} {% block file_manager_position_row %} {{ form_widget(form) }} {% endblock file_manager_position_row %} {% block file_manager_widget %}
{{ form_widget(form) }}
{% if value %} {% endif %} {% if form.parent.vars['row_attr']['data-sortable'] is defined %} {% endif %}
{% endblock file_manager_widget %}