- {% set has_search = ea.crud is not null and ea.crud.isSearchEnabled %} + {% set has_search = ea().crud is not null and ea().crud.isSearchEnabled %}
{% block content %}
{% block content_header_wrapper %} - {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %} + {% set has_help_message = (ea().crud.helpMessage ?? '') is not empty %}
{% block content_header %}
@@ -193,7 +193,7 @@ {% block content_help %} {% if has_help_message %} - + {% endif %} @@ -231,7 +231,7 @@ {% block body_javascript %}{% endblock body_javascript %} {% block configured_body_contents %} - {% for htmlContent in ea.assets.bodyContents ?? [] %} + {% for htmlContent in ea().assets.bodyContents ?? [] %} {{ htmlContent|raw }} {% endfor %} {% endblock %} diff --git a/apps/templates/admin/pararaphs.html.twig b/apps/templates/admin/pararaphs.html.twig index 3976fc01f..faccf8b22 100644 --- a/apps/templates/admin/pararaphs.html.twig +++ b/apps/templates/admin/pararaphs.html.twig @@ -48,23 +48,26 @@ {% else %} - {% for i in 1..6 %} - - - - - - - + {% block table_body_empty %} + {% for i in 1..14 %} + + + + + + + + - {% if 3 == loop.index %} - - - {{ t('datagrid.no_results', ea.i18n.translationParameters, 'EasyAdminBundle')|trans }} - - - {% endif %} - {% endfor %} + {% if 3 == loop.index %} + + + {{ t('datagrid.no_results', ea().i18n.translationParameters, 'EasyAdminBundle')|trans }} + + + {% endif %} + {% endfor %} + {% endblock table_body_empty %} {% endfor %} diff --git a/apps/templates/admin/permission.html.twig b/apps/templates/admin/permission.html.twig index 5ce05b25e..9c50031b6 100644 --- a/apps/templates/admin/permission.html.twig +++ b/apps/templates/admin/permission.html.twig @@ -5,18 +5,20 @@ {% extends '@EasyAdmin/page/content.html.twig' %} {% block head_javascript %} {{ parent() }} - + {% endblock %} {% block main %} - - - - - {% for group in groups %} - - {% endfor %} - - +
Permission{{ group.title }}
+ {% if data|length != 0 %} + + + + {% for group in groups %} + + {% endfor %} + + + {% endif %} {% for group, permissions in data %} @@ -45,6 +47,26 @@ {% endfor %} + {% else %} + + {% for i in 1..6 %} + + + + + + + + + {% if 3 == loop.index %} + + + + {% endif %} + {% endfor %} + {% endfor %}
Permission{{ group.title }}
+ {{ t('datagrid.no_results', ea().i18n.translationParameters, 'EasyAdminBundle')|trans }} +
{% endblock %} diff --git a/apps/templates/admin/platform/new.html.twig b/apps/templates/admin/platform/new.html.twig new file mode 100644 index 000000000..e24b96f4c --- /dev/null +++ b/apps/templates/admin/platform/new.html.twig @@ -0,0 +1,24 @@ +{% form_theme form with '@EasyAdmin/crud/form_theme.html.twig' only %} + +