Fabien Normand 3 years ago
parent
commit
90d6cfc09e
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      Resources/views/adminlte/crud/form_theme.html.twig

+ 0
- 5
Resources/views/adminlte/crud/form_theme.html.twig View File

{% use '@EasyAdmin/crud/form_theme.html.twig' %} {% use '@EasyAdmin/crud/form_theme.html.twig' %}


{% block form_start %} {% block form_start %}

{% if form.vars.errors|length > 0 and 'ea_crud' in form.vars.block_prefixes|default([]) %} {% if form.vars.errors|length > 0 and 'ea_crud' in form.vars.block_prefixes|default([]) %}
{{ form_errors(form) }} {{ form_errors(form) }}
{% endif %} {% endif %}
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}



{% set entityNameOrObject = form.parent.vars.data %} {% set entityNameOrObject = form.parent.vars.data %}


{% if form.parent.vars.translation_entity_name is defined %} {% if form.parent.vars.translation_entity_name is defined %}
{% endif %} {% endif %}
#} #}


{% if translation_domain == null %}
{% set translation_domain = 'admin' %}
{% endif %}
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %} <{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}
>{{ (label is not empty and '.' in label) ? label|trans({}, translation_domain) : name|sov_trans_admin_field(entityNameOrObject) }} >{{ (label is not empty and '.' in label) ? label|trans({}, translation_domain) : name|sov_trans_admin_field(entityNameOrObject) }}
</{{ element|default('label') }}> </{{ element|default('label') }}>

Loading…
Cancel
Save