aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/templates/pages/abstract/dashboard.html.twig
blob: 0d2e0ef2361795bea8fd0aadacfa28ed1c98017f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{% extends "pages/abstract/base.html.twig" %}

{% block stylesheets_page_group %}
    <!-- Page-group-specific CSS asset bundle -->
    {{ assets.css('css/admin') | raw }}
{% endblock %}

{% block body_attributes %}
    {% if current_user.isMaster() %}
        class="hold-transition skin-red sidebar-mini"
    {% else %}
        class="hold-transition skin-{{ site.AdminLTE.skin }} sidebar-mini"
    {% endif %}
{% endblock %}

{% block content %}
    {# This needs to be here (early in the body) to make sure the animation doesn't fire #}
    <script>
        (function () {
            if (Boolean(sessionStorage.getItem('sidebar-toggle-collapsed'))) {
                var body = document.getElementsByTagName('body')[0];
                body.className = body.className + ' sidebar-collapse';
            }
        })();
    </script>

    <div class="wrapper">

        <header class="main-header">
            <!-- Logo -->
            {% block navbar_logo %}
                <a href="{{ site.uri.public }}" class="logo">
                    <i class="fa fa-home"></i>
                    {{ site.title }}
                </a>
            {% endblock %}
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>
                <!-- Main nav buttons -->
                {% include "navigation/navbar.html.twig" %}
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                {% include 'navigation/sidebar.html.twig' %}
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            {% block content_header %}
                <section class="content-header">
                    <h1>{% block header_title %}{{ block('page_title') }}{% endblock %}</h1>
                    {% if block('page_description') is not empty %}
                        <h1>
                        <small>{% block header_description %}{{ block('page_description') }}{% endblock %}</small>
                        </h1>{% endif %}
                    {% block breadcrumb %}
                        {% include 'navigation/breadcrumb.html.twig' with {page_title: block('page_title')} %}
                    {% endblock %}
                    <div id="alerts-page"></div>
                </section>
            {% endblock %}
            <section class="content">
                {% block body_matter %}{% endblock %}
            </section>
        </div>
        <!-- /.content-wrapper -->

        <!-- Footer -->
        {% block footer %}
            {% include "pages/partials/footer.html.twig" %}
        {% endblock %}

    </div>
    <!-- ./wrapper -->

{% endblock %}

{% block scripts_page_group %}
    {{ assets.js('js/admin') | raw }}
{% endblock %}