|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
- {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
-
- {% extends ea.templatePath('layout') %}
-
- {% if ea.crud.currentAction == 'new' %}
-
- {% set form = new_form %}
-
- {% set body_id = 'ea-new-' ~ entity.name ~ '-' ~ entity.primaryKeyValue %}
- {% set body_class = 'ea-new ea-new-' ~ entity.name %}
- {% set content_title = 'new'|sov_trans_admin_title(ea.getEntity().getFqcn()) %}
-
- {% elseif ea.crud.currentAction == 'edit' %}
- {% set form = edit_form %}
-
- {% set body_id = 'ea-edit-' ~ entity.name ~ '-' ~ entity.primaryKeyValue %}
- {% set body_class = 'ea-edit ea-edit-' ~ entity.name %}
- {% set content_title = 'edit'|sov_trans_admin_title(ea.getEntity().getFqcn(), {id: ea.getEntity().getInstance().getId()}) %}
- {% endif %}
-
-
-
- {% form_theme form with ea.crud.formThemes only %}
-
- {% trans_default_domain ea.i18n.translationDomain %}
-
-
- {% block body_id body_id %}
- {% block body_class body_class %}
-
- {% block content_title %}
- {{ content_title }}
- {% endblock %}
-
- {% block configured_head_contents %}
- {{ parent() }}
- {% for htmlContent in form.vars.ea_crud_form.assets.headContents %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
-
- {% block configured_stylesheets %}
- {{ parent() }}
-
- {% for css_asset in form.vars.ea_crud_form.assets.cssAssets %}
- <link rel="stylesheet" href="{{ asset(css_asset) }}">
- {% endfor %}
-
- {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreAssets %}
- {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
-
- {% block configured_javascripts %}
- {{ parent() }}
-
- {% for js_asset in form.vars.ea_crud_form.assets.jsAssets %}
- <script src="{{ asset(js_asset) }}"></script>
- {% endfor %}
-
- {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreAssets %}
- {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
- {% block page_actions_wrapper %}
- {% endblock page_actions_wrapper %}
-
-
-
-
- {% block main %}
- <div class="col-8">
- {% block form %}
- {{ form(form) }}
- {% endblock form %}
- </div>
-
- <div class="col-4">
- {% block aside %}
- {% endblock aside %}
- </div>
-
-
- {% block form_footer %}
- {% embed '@LcSov/adminlte/embed/form_footer.html.twig' %}
- {% block width %}8{% endblock %}
- {% block content %}
- {% for action in entity.actions %}
- {{ include(action.templatePath, { action: action }, with_context = false) }}
- {% endfor %}
- {% endblock %}
- {% endembed %}
- {% endblock form_footer %}
-
- {% block delete_form %}
- {% if ea.crud.currentAction == 'edit' %}
- {{ include('@EasyAdmin/crud/includes/_delete_form.html.twig', { entity_id: entity.primaryKeyValue }, with_context = false) }}
- {% endif %}
- {% endblock delete_form %}
- {% endblock %}
-
-
-
-
-
-
|