|
|
|
@ -8,19 +8,17 @@ For the full copyright and license information, please view the LICENSE |
|
|
|
file that was distributed with this source code. |
|
|
|
file that was distributed with this source code. |
|
|
|
|
|
|
|
|
|
|
|
#} |
|
|
|
#} |
|
|
|
{% set _preview = block('preview') %} |
|
|
|
{% set _preview = block('preview') %} |
|
|
|
{% set _form = block('form') %} |
|
|
|
{% set _form = block('form') %} |
|
|
|
{% set _show = block('show') %} |
|
|
|
{% set _show = block('show') %} |
|
|
|
{% set _list_table = block('list_table') %} |
|
|
|
{% set _list_table = block('list_table') %} |
|
|
|
{% set _list_filters = block('list_filters') %} |
|
|
|
{% set _list_filters = block('list_filters') %} |
|
|
|
{% set _tab_menu = block('tab_menu') %} |
|
|
|
{% set _tab_menu = block('tab_menu') %} |
|
|
|
{% set _content = block('content') %} |
|
|
|
{% set _content = block('content') %} |
|
|
|
{% set _title = block('title') %} |
|
|
|
{% set _title = block('title') %} |
|
|
|
{% set _breadcrumb = block('breadcrumb') %} |
|
|
|
{% set _breadcrumb = block('breadcrumb') %} |
|
|
|
{% set _actions = block('actions') %} |
|
|
|
{% set _actions = block('actions') %} |
|
|
|
{% set _navbar_title = block('navbar_title') %} |
|
|
|
{% set _navbar_title = block('navbar_title') %} |
|
|
|
{% set _list_filters_actions = block('list_filters_actions') %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
<!DOCTYPE html> |
|
|
|
<html {% block html_attributes %}class="no-js"{% endblock %}> |
|
|
|
<html {% block html_attributes %}class="no-js"{% endblock %}> |
|
|
|
<head> |
|
|
|
<head> |
|
|
|
@ -30,11 +28,11 @@ file that was distributed with this source code. |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% block stylesheets %} |
|
|
|
{% block stylesheets %} |
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
|
|
|
{% for stylesheet in admin_pool.getOption('stylesheets', []) %} |
|
|
|
{% for stylesheet in admin_pool.getOption('stylesheets', []) %} |
|
|
|
<link rel="stylesheet" href="{{ asset(stylesheet) }}"> |
|
|
|
<link rel="stylesheet" href="{{ asset(stylesheet) }}"> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% block javascripts %} |
|
|
|
{% block javascripts %} |
|
|
|
@ -49,11 +47,9 @@ file that was distributed with this source code. |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
{% if admin_pool is defined %} |
|
|
|
|
|
|
|
{% for javascript in admin_pool.getOption('javascripts', []) %} |
|
|
|
{% for javascript in admin_pool.getOption('javascripts', []) %} |
|
|
|
<script src="{{ asset(javascript) }}"></script> |
|
|
|
<script src="{{ asset(javascript) }}"></script> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# localize select2 #} |
|
|
|
{# localize select2 #} |
|
|
|
{% if admin_pool is defined and admin_pool.getOption('use_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 #} |
|
|
|
{# omit default EN locale #} |
|
|
|
{% if locale[:2] != 'en' %} |
|
|
|
{% 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 %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
@ -102,18 +98,16 @@ file that was distributed with this source code. |
|
|
|
</noscript> |
|
|
|
</noscript> |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
{% block logo %} |
|
|
|
{% block logo %} |
|
|
|
{% if admin_pool is defined %} |
|
|
|
{% spaceless %} |
|
|
|
{% spaceless %} |
|
|
|
<a class="logo" href="{{ url('sonata_admin_dashboard') }}"> |
|
|
|
<a class="logo" href="{{ path('sonata_admin_dashboard') }}"> |
|
|
|
{% if 'single_image' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %} |
|
|
|
{% 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 }}"> |
|
|
|
<img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}"> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %} |
|
|
|
{% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %} |
|
|
|
<span>{{ admin_pool.title }}</span> |
|
|
|
<span>{{ admin_pool.title }}</span> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{% endspaceless %} |
|
|
|
{% endspaceless %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
{% block sonata_nav %} |
|
|
|
{% block sonata_nav %} |
|
|
|
{% if admin_pool is defined %} |
|
|
|
{% if admin_pool is defined %} |
|
|
|
@ -127,31 +121,29 @@ file that was distributed with this source code. |
|
|
|
|
|
|
|
|
|
|
|
<div class="navbar-left"> |
|
|
|
<div class="navbar-left"> |
|
|
|
{% block sonata_breadcrumb %} |
|
|
|
{% block sonata_breadcrumb %} |
|
|
|
<div class="hidden-xs"> |
|
|
|
{% if _breadcrumb is not empty or action is defined %} |
|
|
|
{% if _breadcrumb is not empty or action is defined %} |
|
|
|
<ol class="nav navbar-top-links breadcrumb"> |
|
|
|
<ol class="nav navbar-top-links breadcrumb"> |
|
|
|
{% if _breadcrumb is empty %} |
|
|
|
{% if _breadcrumb is empty %} |
|
|
|
{% if action is defined %} |
|
|
|
{% if action is defined %} |
|
|
|
{% for menu in admin.breadcrumbs(action) %} |
|
|
|
{% for menu in admin.breadcrumbs(action) %} |
|
|
|
{% if not loop.last %} |
|
|
|
{% if not loop.last %} |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
{% if menu.uri is not empty %} |
|
|
|
{% if menu.uri is not empty %} |
|
|
|
<a href="{{ menu.uri }}">{{ menu.label|raw }}</a> |
|
|
|
<a href="{{ menu.uri }}">{{ menu.label|raw }}</a> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
{{ menu.label }} |
|
|
|
{{ menu.label }} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<li class="active"><span>{{ menu.label }}</span></li> |
|
|
|
<li class="active"><span>{{ menu.label }}</span></li> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
{{ _breadcrumb|raw }} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</ol> |
|
|
|
{% else %} |
|
|
|
{% endif %} |
|
|
|
{{ _breadcrumb|raw }} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</ol> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endblock sonata_breadcrumb %} |
|
|
|
{% endblock sonata_breadcrumb %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
@ -261,7 +253,7 @@ file that was distributed with this source code. |
|
|
|
<section class="content-header"> |
|
|
|
<section class="content-header"> |
|
|
|
{% block sonata_page_content_header %} |
|
|
|
{% block sonata_page_content_header %} |
|
|
|
{% block sonata_page_content_nav %} |
|
|
|
{% 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"> |
|
|
|
<nav class="navbar navbar-default" role="navigation"> |
|
|
|
{% block tab_menu_navbar_header %} |
|
|
|
{% block tab_menu_navbar_header %} |
|
|
|
{% if _navbar_title is not empty %} |
|
|
|
{% if _navbar_title is not empty %} |
|
|
|
@ -277,14 +269,6 @@ file that was distributed with this source code. |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</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 %} |
|
|
|
{% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %} |
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
<li class="dropdown sonata-actions"> |
|
|
|
<li class="dropdown sonata-actions"> |
|
|
|
@ -295,10 +279,6 @@ file that was distributed with this source code. |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if _list_filters_actions is not empty %} |
|
|
|
|
|
|
|
{{ _list_filters_actions|raw }} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</nav> |
|
|
|
</nav> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
@ -331,16 +311,17 @@ file that was distributed with this source code. |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if _list_table is not empty or _list_filters is not empty %} |
|
|
|
{% if _list_table is not empty or _list_filters is not empty %} |
|
|
|
{% if _list_filters|trim %} |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="sonata-ba-list {% if _list_filters|trim %}col-md-10{% else %}col-md-12{% endif %}"> |
|
|
|
{{ _list_filters|raw }} |
|
|
|
{{ _list_table|raw }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
{% if _list_filters|trim %} |
|
|
|
{{ _list_table|raw }} |
|
|
|
<div class="sonata-ba-filter col-md-2"> |
|
|
|
|
|
|
|
{{ _list_filters|raw }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endblock sonata_admin_content %} |
|
|
|
{% endblock sonata_admin_content %} |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|