|
@@ -13,102 +13,29 @@ file that was distributed with this source code.
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
|
- {% block stylesheets %}
|
|
|
- <!-- jQuery code -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonatajquery/themes/flick/jquery-ui-1.8.6.custom.css') }}" type="text/css" media="all" />
|
|
|
-
|
|
|
- <!-- blueprint code -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonatablueprint/screen.css') }}" type="text/css" media="screen, projection">
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonatablueprint/print.css') }}" type="text/css" media="print">
|
|
|
- <!--[if lt IE 8]><link rel="stylesheet" href="{{ asset('bundles/sonatablueprint/ie.css') }}" type="text/css" media="screen, projection"><![endif]-->
|
|
|
-
|
|
|
- <!-- base application asset -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/layout.css') }}" type="text/css" media="all">
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/colors.css') }}" type="text/css" media="all">
|
|
|
- {% endblock %}
|
|
|
-
|
|
|
- {% block stylesheets_extension %}{% endblock %}
|
|
|
-
|
|
|
- {% block javascripts %}
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-1.4.4.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-ui-1.8.6.custom.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-ui-i18n.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonataadmin/qtip/jquery.qtip-1.0.0-rc3.min.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonataadmin/base.js') }}" type="text/javascript"></script>
|
|
|
- {% endblock %}
|
|
|
-
|
|
|
- {% block javascripts_extension %}{% endblock %}
|
|
|
-
|
|
|
- <title>
|
|
|
- {% block title %} {% trans from 'SonataAdminBundle' %}Admin{% endtrans %}
|
|
|
- {% if action is defined %}
|
|
|
- -
|
|
|
- {% for label, uri in admin.breadcrumbs(action) %}
|
|
|
- {% if not loop.first %}
|
|
|
- >
|
|
|
- {% endif %}
|
|
|
- {{ label }}
|
|
|
- {% endfor %}
|
|
|
- {% endif %}
|
|
|
- {% endblock %}
|
|
|
- </title>
|
|
|
+ {% include 'SonataAdminBundle:Core:head_stylesheets.html.twig' %}
|
|
|
+ {% include 'SonataAdminBundle:Core:head_javascripts.html.twig' %}
|
|
|
+ {% include 'SonataAdminBundle:Core:head_title.html.twig' %}
|
|
|
</head>
|
|
|
<body>
|
|
|
-
|
|
|
{# initialize block value #}
|
|
|
- {% set _preview = block('preview') %}
|
|
|
- {% set _form = block('form') %}
|
|
|
- {% set _show = block('show') %}
|
|
|
- {% set _list_table = block('list_table') %}
|
|
|
- {% set _list_filters = block('list_filters') %}
|
|
|
- {% set _side_menu = block('side_menu') %}
|
|
|
- {% set _content = block('content') %}
|
|
|
-
|
|
|
|
|
|
<div class="container">
|
|
|
- <div class="span-24 last header">
|
|
|
- <div class="span-20">
|
|
|
- <a href="{{ url('sonata_admin_dashboard') }}" class="home">{% trans from 'SonataAdminBundle' %}Admin{% endtrans %}</a>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="span-4 last">
|
|
|
- {% block user_panel %}{#Add here logout option / user options#}{% endblock %}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ {% set _preview = block('preview') %}
|
|
|
+ {% set _form = block('form') %}
|
|
|
+ {% set _show = block('show') %}
|
|
|
+ {% set _list_table = block('list_table') %}
|
|
|
+ {% set _list_filters = block('list_filters') %}
|
|
|
+ {% set _side_menu = block('side_menu') %}
|
|
|
+ {% set _content = block('content') %}
|
|
|
|
|
|
- <div class="span-24 last content clear">
|
|
|
- <div class="right">
|
|
|
- {% block actions %}{% endblock %}
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="sonata-ba-breadcrumbs">
|
|
|
- <h1>
|
|
|
- {% block breadcrumb %}
|
|
|
- {% if action is defined %}
|
|
|
- {% for label, uri in admin.breadcrumbs(action) %}
|
|
|
- {% if not loop.first %}
|
|
|
- >
|
|
|
- {% endif %}
|
|
|
- <a href="{{ uri }}">{{ label }}</a>
|
|
|
- {% endfor %}
|
|
|
- {% endif %}
|
|
|
- {% endblock %}
|
|
|
- </h1>
|
|
|
- </div>
|
|
|
-
|
|
|
- {# flash notice defined in CRUDController after actions- 3 levels #}
|
|
|
- {% for notice_level in ['success','error','notice'] %}
|
|
|
-
|
|
|
- {% set session_var = 'sonata_flash_' ~ notice_level %}
|
|
|
- {% if app.session.hasFlash(session_var) %}
|
|
|
- <div class="{{notice_level}}">
|
|
|
- {{ app.session.flash(session_var) | trans([],'SonataAdminBundle') }}
|
|
|
- </div>
|
|
|
- {% endif %}
|
|
|
-
|
|
|
- {% endfor %}
|
|
|
+ {% include 'SonataAdminBundle:Core:header.html.twig' %}
|
|
|
|
|
|
+ <div class="span-24 last content clear">
|
|
|
+ {% include 'SonataAdminBundle:Core:actions.html.twig' %}
|
|
|
+ {% include 'SonataAdminBundle:Core:breadcrumb.html.twig' %}
|
|
|
+ {% include 'SonataAdminBundle:Core:notice.html.twig' %}
|
|
|
</div>
|
|
|
|
|
|
{% if _preview is not empty %}
|
|
@@ -120,10 +47,10 @@ file that was distributed with this source code.
|
|
|
<div class="span-24 last content clear">
|
|
|
|
|
|
{% if _side_menu is not empty %}
|
|
|
- <div class="span-4">
|
|
|
- <div class="sonata-ba-side-menu">{{ _side_menu|raw }}</div>
|
|
|
- </div>
|
|
|
- <div class="span-18 last content">
|
|
|
+ <div class="span-4">
|
|
|
+ <div class="sonata-ba-side-menu">{{ _side_menu|raw }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="span-18 last content">
|
|
|
{% endif %}
|
|
|
|
|
|
{% if _content is not empty %}
|
|
@@ -166,10 +93,7 @@ file that was distributed with this source code.
|
|
|
|
|
|
</div>
|
|
|
|
|
|
- <!-- footer -->
|
|
|
- <div class="span-24 last">
|
|
|
- {% block footer %}{% endblock %}
|
|
|
- </div>
|
|
|
+ {% include 'SonataAdminBundle:Core:footer.html.twig' %}
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|