Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

54 Zeilen
2.0KB

  1. {% form_theme form with easyadmin_config('design.form_theme') only %}
  2. {% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %}
  3. {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %}
  4. {% trans_default_domain _entity_config.translation_domain %}
  5. {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %}
  6. {% extends _entity_config.templates.layout %}
  7. {% block body_id 'easyadmin-edit-' ~ _entity_config.name ~ '-' ~ _entity_id %}
  8. {% block content_title %}
  9. {% apply spaceless %}
  10. {% set _default_title = 'edit.page_title'|trans(_trans_parameters, 'EasyAdminBundle') %}
  11. {{ _entity_config.edit.title is defined ? _entity_config.edit.title|trans(_trans_parameters) : _default_title }}
  12. {% endapply %}
  13. {% endblock %}
  14. {% block content_footer_wrapper '' %}
  15. {% block main %}
  16. {% block entity_form %}
  17. {{ form(form) }}
  18. {% endblock entity_form %}
  19. {% block delete_form %}
  20. {{ include('@EasyAdmin/default/includes/_delete_form.html.twig', {
  21. view: 'edit',
  22. referer: app.request.query.get('referer', ''),
  23. delete_form: delete_form,
  24. _translation_domain: _entity_config.translation_domain,
  25. _trans_parameters: _trans_parameters,
  26. _entity_config: _entity_config,
  27. }, with_context = false) }}
  28. {% endblock delete_form %}
  29. {% endblock %}
  30. {% block head_stylesheets %}
  31. {{ parent() }}
  32. <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/jquery-ui/jquery-ui.min.css') }}">
  33. {% endblock %}
  34. {% block plugin_javascript %}
  35. {{ parent() }}
  36. <script src="{{ asset('bundles/lcshop/js/backend/plugin/jquery-ui/jquery-ui.min.js') }}"></script>
  37. {% endblock %}
  38. {% block script_javascript %}
  39. {{ parent() }}
  40. <script src="{{ asset('bundles/lcshop/js/backend/script/default/init-edit.js') }}"></script>
  41. {% endblock %}