|
|
|
|
@ -19,8 +19,6 @@ file that was distributed with this source code. |
|
|
|
|
{% set _breadcrumb = block('breadcrumb') %} |
|
|
|
|
{% set _actions = block('actions') %} |
|
|
|
|
{% set _navbar_title = block('navbar_title') %} |
|
|
|
|
{% set _list_filters_actions = block('list_filters_actions') %} |
|
|
|
|
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
|
<html {% block html_attributes %}class="no-js"{% endblock %}> |
|
|
|
|
<head> |
|
|
|
|
@ -30,11 +28,11 @@ file that was distributed with this source code. |
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block stylesheets %} |
|
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
|
|
|
|
|
{% for stylesheet in admin_pool.getOption('stylesheets', []) %} |
|
|
|
|
<link rel="stylesheet" href="{{ asset(stylesheet) }}"> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block javascripts %} |
|
|
|
|
@ -49,11 +47,9 @@ file that was distributed with this source code. |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
{% for javascript in admin_pool.getOption('javascripts', []) %} |
|
|
|
|
<script src="{{ asset(javascript) }}"></script> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{# localize select2 #} |
|
|
|
|
{% if admin_pool is defined and admin_pool.getOption('use_select2') %} |
|
|
|
|
@ -62,7 +58,7 @@ file that was distributed with this source code. |
|
|
|
|
|
|
|
|
|
{# omit default EN locale #} |
|
|
|
|
{% if locale[:2] != 'en' %} |
|
|
|
|
<script src="{{ asset('bundles/sonatacore/vendor/select2/select2_locale_' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script> |
|
|
|
|
<script src="{{ asset('bundles/sonataadmin/vendor/select2/select2_locale_' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
@ -102,9 +98,8 @@ file that was distributed with this source code. |
|
|
|
|
</noscript> |
|
|
|
|
{% endblock %} |
|
|
|
|
{% block logo %} |
|
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
{% spaceless %} |
|
|
|
|
<a class="logo" href="{{ path('sonata_admin_dashboard') }}"> |
|
|
|
|
<a class="logo" href="{{ url('sonata_admin_dashboard') }}"> |
|
|
|
|
{% if 'single_image' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %} |
|
|
|
|
<img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}"> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -113,7 +108,6 @@ file that was distributed with this source code. |
|
|
|
|
{% endif %} |
|
|
|
|
</a> |
|
|
|
|
{% endspaceless %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endblock %} |
|
|
|
|
{% block sonata_nav %} |
|
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
@ -127,7 +121,6 @@ file that was distributed with this source code. |
|
|
|
|
|
|
|
|
|
<div class="navbar-left"> |
|
|
|
|
{% block sonata_breadcrumb %} |
|
|
|
|
<div class="hidden-xs"> |
|
|
|
|
{% if _breadcrumb is not empty or action is defined %} |
|
|
|
|
<ol class="nav navbar-top-links breadcrumb"> |
|
|
|
|
{% if _breadcrumb is empty %} |
|
|
|
|
@ -151,7 +144,6 @@ file that was distributed with this source code. |
|
|
|
|
{% endif %} |
|
|
|
|
</ol> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
{% endblock sonata_breadcrumb %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
@ -261,7 +253,7 @@ file that was distributed with this source code. |
|
|
|
|
<section class="content-header"> |
|
|
|
|
{% block sonata_page_content_header %} |
|
|
|
|
{% block sonata_page_content_nav %} |
|
|
|
|
{% if _tab_menu is not empty or _actions is not empty or _list_filters_actions is not empty %} |
|
|
|
|
{% if _tab_menu is not empty or _actions is not empty %} |
|
|
|
|
<nav class="navbar navbar-default" role="navigation"> |
|
|
|
|
{% block tab_menu_navbar_header %} |
|
|
|
|
{% if _navbar_title is not empty %} |
|
|
|
|
@ -277,14 +269,6 @@ file that was distributed with this source code. |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% if admin is defined and action is defined and action == 'list' and admin.listModes|length > 1 %} |
|
|
|
|
<div class="nav navbar-right btn-group"> |
|
|
|
|
{% for mode, settings in admin.listModes %} |
|
|
|
|
<a href="{{ admin.generateUrl('list', app.request.query.all|merge({_list_mode: mode})) }}" class="btn btn-default navbar-btn btn-sm{% if admin.getListMode() == mode %} active{% endif %}"><i class="{{ settings.class }}"></i></a> |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %} |
|
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
|
<li class="dropdown sonata-actions"> |
|
|
|
|
@ -295,10 +279,6 @@ file that was distributed with this source code. |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if _list_filters_actions is not empty %} |
|
|
|
|
{{ _list_filters_actions|raw }} |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</nav> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -331,16 +311,17 @@ file that was distributed with this source code. |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if _list_table is not empty or _list_filters is not empty %} |
|
|
|
|
{% if _list_filters|trim %} |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="sonata-ba-list {% if _list_filters|trim %}col-md-10{% else %}col-md-12{% endif %}"> |
|
|
|
|
{{ _list_table|raw }} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% if _list_filters|trim %} |
|
|
|
|
<div class="sonata-ba-filter col-md-2"> |
|
|
|
|
{{ _list_filters|raw }} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
{{ _list_table|raw }} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
{% endblock sonata_admin_content %} |
|
|
|
|
</section> |
|
|
|
|
|