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.

68 lines
1.9KB

  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.cssFiles %}
  13. <link rel="stylesheet" href="{{ asset(css_asset) }}">
  14. {% endfor %}
  15. {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreEntries %}
  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.jsFiles %}
  22. <script src="{{ asset(js_asset) }}"></script>
  23. {% endfor %}
  24. {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreEntries %}
  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. <div class="form-footer">
  38. <div class="row">
  39. <div class="col-sm-8">
  40. <div class="btn-list">
  41. {% block page_actions %}
  42. {% for action in entity.actions %}
  43. {{ include(action.templatePath, { action: action }, with_context = false) }}&nbsp;
  44. {% endfor %}
  45. {% endblock %}
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. {% endblock form_footer %}
  51. {% block delete_form %}{% endblock delete_form %}
  52. {% endblock %}