{% macro message(type, title, message) %} <div class="{{ type }}"> <div class="{{ type }}_top"> <div class="{{ type }}_top_title">{{ title }}</div> </div> <div class="{{ type }}_content"> {{ message|raw }} </div> </div> {% endmacro %} {% macro action(URL, image, title, message, actionID = '') %} <a href="{{ URL }}" class="action_link"> <div class="action"> <div class="action_image"> <img src="{{ image }}" /> </div> <div class="action_content"> <div class="action_title"> {{ title }} </div> <div class="action_message"> {{ message|raw }} </div> </div> </div> </a> {% endmacro %} {% import 'admin/base' as admin %} <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>{% block title %}{% endblock %} | Admin - {{ System.Title }}</title> {{ HTML.style('media/css/admin/base.css')|raw }} {{ HTML.style('media/css/admin/macro.css')|raw }} {{ HTML.style('media/css/actionButton.css')|raw }} {{ HTML.script('media/js/jquery-1.11.1.min.js')|raw }} {% block media %}{% endblock %} </head> <body> <div id="wrap"> <div class="header_wrapper"> <div class="header"> <div class="top_logo"> {{ HTML.anchor('/', System.Title~' '~System.Version, {'title': 'Вернуться на сайт'})|raw }} </div> <div class="top_name_faculty"> {{ HTML.anchor('/admin', 'Панель администратора', {'title': 'Перейти на главную'})|raw }} </div> <div class="top_user"> {{ User.First }} {{ User.Last }} | {{ HTML.anchor('sign/out', 'Выход', {'title': 'Выход из аккаунта'})|raw }} </div> </div> </div> <div class="layout_wrapper"> <div class="layout"> <div class="menu_wrapper"> {% include 'admin/menu/structure' %} {% include 'admin/menu/process' %} {% include 'admin/menu/accounts' %} {% include 'admin/menu/system' %} </div> <div class="main"> <div class="main_top"> <div class="main_top_tittle">{% block main_top_title %}{% endblock %}</div> </div> <div class="main_content"> {% block main_content %} {% endblock %} </div> </div> </div> </div> <div id="footer_fixBug"></div> <div class="footer"> <a href='http://vk.com/itlab_mmcs'>IT-лаборатория мехмата ЮФУ © 2014</a> </div> </div> </body> </html>