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.

78 lines
2.5KB

  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. <div class="card">
  33. <div class="card-status-top bg-primary"></div>
  34. <div class="card-header ">
  35. {% set default_title = ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle') %}
  36. <h2 class="card-title">{{ ea.crud.customPageTitle is null ? default_title|raw : ea.crud.customPageTitle('new')|trans(ea.i18n.translationParameters)|raw }}</h2>
  37. </div>
  38. <div class="card-body">
  39. {% block form %}
  40. {{ form(form) }}
  41. {% endblock form %}
  42. </div>
  43. </div>
  44. <div class="clearfix"></div>
  45. </div>
  46. {% block form_footer %}
  47. <div class="form-footer">
  48. <div class="row">
  49. <div class="col-sm-8">
  50. <div class="btn-list">
  51. {% block page_actions %}
  52. {% for action in entity.actions %}
  53. {{ include(action.templatePath, { action: action }, with_context = false) }}&nbsp;
  54. {% endfor %}
  55. {% endblock %}
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {% endblock form_footer %}
  61. {% block delete_form %}{% endblock delete_form %}
  62. {% endblock %}