You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8KB

  1. {% extends ea.templatePath('layout') %}
  2. {% form_theme form with ea.crud.formThemes only %}
  3. {% trans_default_domain ea.i18n.translationDomain %}
  4. {% block configured_head_contents %}
  5. {{ parent() }}
  6. {% for htmlContent in form.vars.ea_crud_form.assets.headContents %}
  7. {{ htmlContent|raw }}
  8. {% endfor %}
  9. {% endblock %}
  10. {% block configured_stylesheets %}
  11. {{ parent() }}
  12. {% for css_asset in form.vars.ea_crud_form.assets.cssAssets %}
  13. <link rel="stylesheet" href="{{ asset(css_asset) }}">
  14. {% endfor %}
  15. {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreAssets %}
  16. {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
  17. {% endfor %}
  18. {% endblock %}
  19. {% block configured_javascripts %}
  20. {{ parent() }}
  21. {% for js_asset in form.vars.ea_crud_form.assets.jsAssets %}
  22. <script src="{{ asset(js_asset) }}"></script>
  23. {% endfor %}
  24. {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreAssets %}
  25. {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }}
  26. {% endfor %}
  27. {% endblock %}
  28. {% block page_actions_wrapper %}
  29. {% endblock page_actions_wrapper %}
  30. {% block main %}
  31. <div class="col-8">
  32. {% block form %}
  33. {{ form(form) }}
  34. {% endblock form %}
  35. </div>
  36. {% block form_footer %}
  37. {% embed '@LcSov/adminlte/embed/form_footer.html.twig' %}
  38. {% block width %}8{% endblock %}
  39. {% block content %}
  40. {% for action in entity.actions %}
  41. {{ include(action.templatePath, { action: action }, with_context = false) }}&nbsp;
  42. {% endfor %}
  43. {% endblock %}
  44. {% endembed %}
  45. {% endblock form_footer %}
  46. {% block delete_form %}{% endblock delete_form %}
  47. {% endblock %}