|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {% form_theme form with easyadmin_config('design.form_theme') only %}
-
- {% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %}
- {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %}
- {% trans_default_domain _entity_config.translation_domain %}
-
- {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %}
-
- {% extends _entity_config.templates.layout %}
-
- {% block body_id 'easyadmin-edit-' ~ _entity_config.name ~ '-' ~ _entity_id %}
-
- {% block content_title %}
- {% apply spaceless %}
- {% set _default_title = 'edit.page_title'|trans(_trans_parameters, 'EasyAdminBundle') %}
- {{ _entity_config.edit.title is defined ? _entity_config.edit.title|trans(_trans_parameters) : _default_title }}
- {% endapply %}
- {% endblock %}
-
- {% block content_footer_wrapper '' %}
-
- {% block main %}
- {% block entity_form %}
- {{ form(form) }}
- {% endblock entity_form %}
-
- {% block delete_form %}
- {{ include('@EasyAdmin/default/includes/_delete_form.html.twig', {
- view: 'edit',
- referer: app.request.query.get('referer', ''),
- delete_form: delete_form,
- _translation_domain: _entity_config.translation_domain,
- _trans_parameters: _trans_parameters,
- _entity_config: _entity_config,
- }, with_context = false) }}
- {% endblock delete_form %}
- {% endblock %}
-
- {% block head_stylesheets %}
- {{ parent() }}
- <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/jquery-ui/jquery-ui.min.css') }}">
- {% endblock %}
-
-
- {% block plugin_javascript %}
- {{ parent() }}
- <script src="{{ asset('bundles/lcshop/js/backend/plugin/jquery-ui/jquery-ui.min.js') }}"></script>
- {% endblock %}
-
- {% block script_javascript %}
- {{ parent() }}
- <script src="{{ asset('bundles/lcshop/js/backend/script/default/init-edit.js') }}"></script>
- {% endblock %}
|