|
- {% extends ea.templatePath('layout') %}
- {% form_theme form with ea.crud.formThemes only %}
-
- {% trans_default_domain ea.i18n.translationDomain %}
-
-
- {% block configured_head_contents %}
- {{ parent() }}
- {% for htmlContent in form.vars.ea_crud_form.assets.headContents %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
-
- {% block configured_stylesheets %}
- {{ parent() }}
- {% for css_asset in form.vars.ea_crud_form.assets.cssFiles %}
- <link rel="stylesheet" href="{{ asset(css_asset) }}">
- {% endfor %}
-
- {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreEntries %}
- {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
-
- {% block configured_javascripts %}
- {{ parent() }}
- {% for js_asset in form.vars.ea_crud_form.assets.jsFiles %}
- <script src="{{ asset(js_asset) }}"></script>
- {% endfor %}
-
- {% for webpack_encore_entry in form.vars.ea_crud_form.assets.webpackEncoreEntries %}
- {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
- {% block page_actions_wrapper %}
- {% endblock page_actions_wrapper %}
-
- {% block main %}
-
- <div class="col-8">
- <div class="card">
- <div class="card-status-top bg-primary"></div>
- <div class="card-header ">
- {% set default_title = ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle') %}
-
- <h2 class="card-title">{{ ea.crud.customPageTitle is null ? default_title|raw : ea.crud.customPageTitle('new')|trans(ea.i18n.translationParameters)|raw }}</h2>
- </div>
- <div class="card-body">
- {% block form %}
- {{ form(form) }}
- {% endblock form %}
- </div>
- </div>
- <div class="clearfix"></div>
- </div>
-
- {% block form_footer %}
- <div class="form-footer">
- <div class="row">
- <div class="col-sm-8">
- <div class="btn-list">
- {% block page_actions %}
- {% for action in entity.actions %}
-
- {{ include(action.templatePath, { action: action }, with_context = false) }}
- {% endfor %}
- {% endblock %}
- </div>
- </div>
- </div>
- </div>
- {% endblock form_footer %}
-
- {% block delete_form %}{% endblock delete_form %}
-
- {% endblock %}
|