|
|
@@ -38,59 +38,65 @@ |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block content_title %} |
|
|
|
{# {%- apply spaceless -%} |
|
|
|
{# {%- apply spaceless -%} |
|
|
|
{% set default_title = ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle') %} |
|
|
|
{{ ea.crud.customPageTitle is null ? default_title|raw : ea.crud.customPageTitle('new')|trans(ea.i18n.translationParameters)|raw }} |
|
|
|
{%- endapply -%}#} |
|
|
|
{%- endapply -%} #} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block content_header_wrapper %} |
|
|
|
{# {% for action in entity.actions %} |
|
|
|
{# {% for action in entity.actions %} |
|
|
|
{{ include(action.templatePath, { action: action }, with_context = false) }} |
|
|
|
{% endfor %}#} |
|
|
|
{% endfor %} #} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% 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') %} |
|
|
|
<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> |
|
|
|
<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 new_form %} |
|
|
|
{{ form(new_form) }} |
|
|
|
{% endblock new_form %} #} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="card-body"> |
|
|
|
<button type="button" data-bs-toggle="modal" data-bs-target="#niche">Launch modal</button> |
|
|
|
</div> |
|
|
|
<button type="button" data-bs-toggle="modal" data-bs-target="#niche">Launch modal</button> |
|
|
|
|
|
|
|
|
|
|
|
<div class="modal-dialog" role="document" id="niche"> |
|
|
|
<div class="modal" tabindex="-1" role="dialog" id="test22"> |
|
|
|
<div class="modal-dialog" role="document"> |
|
|
|
<div class="modal-content"> |
|
|
|
<div class="modal-header"> |
|
|
|
<h5 class="modal-title">Modal title</h5> |
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
|
|
<span aria-hidden="true">×</span> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
<div class="modal-body"> |
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci animi beatae delectus deleniti dolorem eveniet facere fuga iste nemo nesciunt nihil odio perspiciatis, quia quis reprehenderit sit tempora totam unde. |
|
|
|
<p>Modal body text goes here.</p> |
|
|
|
</div> |
|
|
|
<div class="modal-footer"> |
|
|
|
<button type="button" class="btn me-auto" data-bs-dismiss="modal">Close</button> |
|
|
|
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Save changes</button> |
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> |
|
|
|
<button type="button" class="btn btn-primary">Save changes</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% block new_form %} |
|
|
|
{{ form(new_form) }} |
|
|
|
{% endblock new_form %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block body_javascript %} |
|
|
|
{{ parent() }} |
|
|
|
|
|
|
|
{# <script type="text/javascript"> |
|
|
|
{# <script type="text/javascript"> |
|
|
|
$(function () { |
|
|
|
$('.ea-new-form').areYouSure({'message': '{{ 'form.are_you_sure'|trans({}, 'EasyAdminBundle')|e('js') }}'}); |
|
|
|
|
|
|
@@ -185,5 +191,5 @@ |
|
|
|
}); |
|
|
|
</script> |
|
|
|
|
|
|
|
{{ include('@EasyAdmin/crud/includes/_select2_widget.html.twig') }}#} |
|
|
|
{{ include('@EasyAdmin/crud/includes/_select2_widget.html.twig') }} #} |
|
|
|
{% endblock %} |