<commit_before>
{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}
{% 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') %}
{% set _title        = block('title') %}
{% set _breadcrumb   = block('breadcrumb') %}
{% set _actions      = block('actions') %}
<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

    {% block stylesheets %}
        <!-- jQuery code -->
        {#<link rel="stylesheet" href="{{ asset('bundles/sonataadmin/x-editable/css/bootstrap-editable.css') }}" type="text/css" media="all" />#}

        {# NEW STYLESHEETS #}
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/bootstrap.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/animate.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/font-awesome.min.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/font.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/app.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/maxim-extra.css') }}" type="text/css" media="all" />

        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/calendar/bootstrap_calendar.css') }}" type="text/css" media="all" />
        <!--[if lt IE 9]>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/html5shiv.js') }}" cache="false"></script>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/respond.min.js') }}" cache="false"></script>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/excanvas.js') }}" cache="false"></script>
        <![endif]-->

        {% if admin_pool is defined and admin_pool.getOption('use_select2') %}
            {#<link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/select2.css') }}" type="text/css" media="all" />#}
            <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/select2/select2.css') }}" type="text/css" media="all" />
            <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/select2/theme.css') }}" type="text/css" media="all" />
            <style>
                .select2-container {
                    padding:0 !important;
                    border:none !important;
                    width: 10% !important;
                    min-width: 215px;
                    margin-right:5px;
                }
                .per-page {
                    min-width:55px !important;
                }
                .select2-container + .select2-container {

                }
                #filter_date_value {
                    padding:0;
                    margin-bottom: 40px;
                    border: none;
                }
                .select2-container .select2-choice {
                    border-color: #d9d9d9 !important;
                    border-radius: 2px !important;
                    height: 34px !important;
                    line-height:34px !important;
                }

                .select2-container .select2-choice .select2-arrow {
                    border-radius: 0 !important;
                }
            </style>
        {% 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" />

        <script src="{{ asset('bundles/maximthemeeoeadmin/js/jquery.min.js') }}"></script>
        <script type="text/javascript">
            window.SONATA_CONFIG = {
                CONFIRM_EXIT: {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}true{% else %}false{% endif %},
                USE_SELECT2: {% if admin_pool is defined and admin_pool.getOption('use_select2') %}true{% else %}false{% endif %}
            };
            window.SONATA_TRANSLATIONS = {
                CONFIRM_EXIT:  '{{ 'confirm_exit'|trans({}, 'SonataAdminBundle')|escape('js') }}'
            };
        </script>


        <script src="{{ asset('bundles/sonataadmin/x-editable/js/bootstrap-editable.min.js') }}"></script>

        {% if admin_pool is defined and admin_pool.getOption('use_select2') %}
        <script src="{{ asset('bundles/sonataadmin/select2/select2.min.js') }}" type="text/javascript"></script>
        {% endif %}

        <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}" type="text/javascript"></script>
        {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}<script src="{{ asset('bundles/sonataadmin/jquery/jquery.confirmExit.js') }}" type="text/javascript"></script>{% endif %}
        <script src="{{ asset('bundles/sonataadmin/base.js') }}" type="text/javascript"></script>

    {% endblock %}

    <title>
        {{ 'Admin'|trans({}, 'SonataAdminBundle') }}

        {% if _title is not empty %}
            {{ _title|raw }}
        {% else %}
            {% if action is defined %}
                -
                {% for menu in admin.breadcrumbs(action) %}
                    {% if not loop.first  %}
                        &gt;
                    {% endif %}
                    {{ menu.label }}
                {% endfor %}
            {% endif %}
        {% endif%}
    </title>
</head>
<body>
{# initialize block value #}

<section class="vbox">
    <header class="bg-dark dk header navbar navbar-fixed-top-xs">
        <div class="navbar-header aside-md">
            <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav">
                <i class="fa fa-bars"></i>
            </a>
            <a href="#" class="navbar-brand" data-toggle="fullscreen">{{ admin_pool.title }}</a>
            <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
                <i class="fa fa-cog"></i>
            </a>
        </div>
        <ul class="nav navbar-nav hidden-xs">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
                    <i class="fa fa-building-o"></i>
                    <span class="font-bold">Activity</span>
                </a>
                <section class="dropdown-menu aside-xl on animated fadeInLeft no-borders lt">
                    <div class="wrapper lter m-t-n-xs">
                        <a href="#" class="thumb pull-left m-r">
                            <img src="http://minotar.net/helm/{{ app.user.username }}" class="img-circle">
                        </a>
                        <div class="clear">
                            <a href="#"><span class="text-white font-bold">{{ app.user.username }}</span></a>
                            <small class="block">{{ app.user.group }}</small>
                            <a href="#" class="btn btn-xs btn-success m-t-xs"></a>
                        </div>
                    </div>
                    <div class="row m-l-none m-r-none m-b-n-xs text-center">
                        <div class="col-xs-4">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                        <div class="col-xs-4 dk">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                    </div>
                </section>
            </li>
        </ul>
        <ul class="nav navbar-nav navbar-right hidden-xs nav-user">
            {#<li class="hidden-xs">
                <a href="#" class="dropdown-toggle dk" data-toggle="dropdown">
                    <i class="fa fa-bell"></i>
                    <span class="badge badge-sm up bg-danger m-l-n-sm count">2</span>
                </a>
                <section class="dropdown-menu aside-xl">
                    <section class="panel bg-white">
                        <header class="panel-heading b-light bg-light">
                            <strong>You have <span class="count">2</span> notifications</strong>
                        </header>
                        <div class="list-group list-group-alt animated fadeInRight">
                            <a href="#" class="media list-group-item">
                          <span class="pull-left thumb-sm">
                            <img src="http://minotar.net/helm/{{ app.user.username }}" alt="{{ app.user.username }}" class="img-circle">
                          </span>
                          <span class="media-body block m-b-none">
                            Use awesome animate.css<br>
                            <small class="text-muted">10 minutes ago</small>
                          </span>
                            </a>
                            <a href="#" class="media list-group-item">
                          <span class="media-body block m-b-none">
                            1.0 initial released<br>
                            <small class="text-muted">1 hour ago</small>
                          </span>
                            </a>
                        </div>
                        <footer class="panel-footer text-sm">
                            <a href="#" class="pull-right"><i class="fa fa-cog"></i></a>
                            <a href="#notes" data-toggle="class:show animated fadeInRight">See all the notifications</a>
                        </footer>
                    </section>
                </section>
            </li>#}
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
                <section class="dropdown-menu aside-xl animated fadeInUp">
                    <section class="panel bg-white">
                        <form role="search">
                            <div class="form-group wrapper m-b-none">
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-btn">
                              <button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
                            </span>
                                </div>
                            </div>
                        </form>
                    </section>
                </section>
            </li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="thumb-sm avatar pull-left">
                      <img src="http://minotar.net/helm/{{ app.user.username }}" alt="{{ app.user.username }}">
                    </span>
                    {{ app.user.username }}<b class="caret"></b>
                </a>
                <ul class="dropdown-menu animated fadeInRight">
                    <span class="arrow top"></span>
                    <li>
                        <a href="{{ path('home') }}">Home</a>
                    </li>
                    <li>
                        <a href="{{ path('account') }}">Settings</a>
                    </li>
                    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
                        <li>
                            <a href="?_switch_user=_exit" title="stop impersonate user">Stop impersonating</a>
                        </li>
                    {% endif %}
                    {#<li>
                        <a href="#">
                            <span class="badge bg-danger pull-right">3</span>
                            Notifications
                        </a>
                    </li>#}
                    <li class="divider"></li>
                    <li>
                        <a href="{{ path('logout') }}" data-toggle="ajaxModal" >Logout</a>
                    </li>
                </ul>
            </li>
        </ul>
    </header>
    <section>
        <section class="hbox stretch">
            <!-- .aside -->
            <aside class="bg-dark lter aside-md hidden-print" id="nav">
                <section class="vbox">
                    <header class="header bg-primary lter text-center clearfix">
                        <div class="btn-group">
                            <button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
                            <div class="btn-group hidden-nav-xs">
                                <button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown">
                                    Switch Project
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu text-left">
                                    <li><a href="#">EyeOfEnder</a></li>
                                </ul>
                            </div>
                        </div>
                    </header>
                    <section class="w-f scrollable">
                        <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333">

                            <!-- nav -->
                            {% if admin_pool is defined %}
                                {% block sonata_nav_menu %}

                                    <nav class="nav-primary hidden-xs">
                                        <ul class="nav">
                                            {% block top_bar_before_nav %} {% endblock %}
                                            {% block sonata_top_bar_nav %}
                                                {% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
                                                    {% for group in admin_pool.dashboardgroups %}
                                                        {% set display = (group.roles is empty or is_granted('ROLE_SUPER_ADMIN') ) %}
                                                        {% for role in group.roles if not display %}
                                                            {% set display = is_granted(role) %}
                                                        {% endfor %}

                                                        {# Do not display the group label if no item in group is available #}
                                                        {% set item_count = 0 %}
                                                        {% if display %}
                                                            {% for admin in group.items if item_count == 0 %}
                                                                {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                                                                    {% set item_count = item_count+1 %}
                                                                {% endif %}
                                                            {% endfor %}
                                                        {% endif %}

                                                        {% if display and (item_count > 0) %}
                                                            <li>
                                                                <a href="#">
                                                                    <i class="fa {{ random(['fa-flask', 'fa-envelope', 'fa-columns', 'fa-dashboard', 'fa-pencil']) }} icon">
                                                                        <b class="{{ random(['bg-success', 'bg-warning', 'bg-danger', 'bg-info', 'bg-primary']) }}"></b>
                                                                    </i>
                                                                    <span class="pull-right">
                                                                        <i class="fa fa-angle-down text"></i>
                                                                        <i class="fa fa-angle-up text-active"></i>
                                                                    </span>

                                                                    <span>{{ group.label|trans({}, group.label_catalogue) }}</span>
                                                                </a>
                                                                <ul class="nav lt">
                                                                    {% for admin in group.items %}
                                                                        {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                                                                            <li>
                                                                                <a href="{{ admin.generateUrl('list')}}">
                                                                                    <i class="fa fa-angle-right"></i>
                                                                                    <span>{{ admin.label|trans({}, admin.translationdomain) }}</span>
                                                                                </a>
                                                                            </li>
                                                                        {% endif %}
                                                                    {% endfor %}
                                                                </ul>
                                                            </li>
                                                        {% endif %}
                                                    {% endfor %}
                                                {% endif %}
                                            {% endblock %}
                                            {% block top_bar_after_nav %} {% endblock %}
                                        </ul>
                                    </nav>
                                    <!-- / nav -->
                                {% endblock %}

                                {% block sonata_nav_menu_after %}{% endblock %}
                            {% endif %}
                        </div>
                    </section>
                    <footer class="footer lt hidden-xs b-t b-dark"> <div id="chat" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light">Active chats</header>
                                    <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No active chats.</p>
                                        <p><a href="#" class="btn btn-sm btn-default">Start a chat</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <div id="invite" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light"> John <i class="fa fa-circle text-success"></i>
                                    </header> <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No contacts in your lists.</p>
                                        <p><a href="#" class="btn btn-sm btn-facebook"><i class="fa fa-fw fa-facebook"></i> Invite from Facebook</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon"> <i class="fa fa-angle-left text"></i> <i class="fa fa-angle-right text-active"></i> </a>
                    </footer>
                </section>
            </aside>
            <!-- /.aside -->
            <section id="content">
                <section class="vbox">
                    <section class="scrollable padder">
                        {# breadcrumbs #}
                        {% if _breadcrumb is not empty or action is defined %}
                            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                                {% if _breadcrumb is empty %}
                                    {% if action is defined %}
                                        {% for menu in admin.breadcrumbs(action) %}
                                            {% if not loop.last  %}
                                                <li>
                                                    {% if menu.uri is not empty %}
                                                        <a href="{{ menu.uri }}">{{ menu.label }}</a>
                                                    {% else %}
                                                        {{ menu.label }}
                                                    {% endif %}
                                                </li>
                                            {% else %}
                                                <li class="active">{{ menu.label }}</li>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% else %}
                                    {{ _breadcrumb|raw }}
                                {% endif %}
                            </ul>
                        {% endif %}

            {#            <div class="m-b-md">
                            <h3 class="m-b-none">Static Table</h3>
                        </div>#}
                        {% block sonata_page_content %}
                            {% block notice %}
                                {% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
                            {% endblock %}

                            {# actions #}
                            {% if _actions is not empty %}
                                <div>
                                    {{ _actions|raw }}
                                </div>
                            {% endif %}
                            <br/>
                            <div class="row">
                                {% if _side_menu is not empty %}
                                    <div class="sonata-ba-list col-sm-2">
                                        <section class="panel panel-default">
                                            <header class="panel-heading">Side menu</header>
                                            <div class="sonata-ba-side-menu" style="padding: 8px 0;">{{ _side_menu|raw }}</div>
                                        </section>
                                    </div>
                                {% endif %}

                                <div class="content {{ _side_menu is not empty ? '  col-sm-10' : 'col-sm-12' }}">
                                    {% block sonata_admin_content %}

                                        {% if _preview is not empty %}
                                            <div class="sonata-ba-list">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Content</header>
                                                    <div class="sonata-ba-preview">{{ _preview|raw }}</div>
                                                </section>
                                            </div>
                                        {% endif %}

                                        {% if _content is not empty %}
                                            <div class="sonata-ba-content">{{ _content|raw }}</div>
                                        {% endif %}

                                        {% if _show is not empty %}
                                            <div class="sonata-ba-list">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Content</header>
                                                    <div class="sonata-ba-show">{{ _show|raw }}</div>
                                                </section>
                                            </div>
                                        {% endif %}

                                        {% if _form is not empty %}
                                            <div class="sonata-ba-form">{{ _form|raw }}</div>
                                        {% endif %}

                                        {% if _list_table is not empty or _list_filters is not empty %}
                                            <div class="sonata-ba-list col-sm-10">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Table</header>
                                                    {{ _list_table|raw }}
                                                </section>
                                            </div>
                                            <div class="sonata-ba-filter col-sm-2">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Filter</header>
                                                    <div class="panel-body">
                                                        {{ _list_filters|raw }}
                                                    </div>
                                                </section>
                                            </div>
                                        {% endif %}

                                    {% endblock %}
                                </div>
                            </div>

                            {% block footer %}
                                <div class="row-fluid">
                                    <div class="span2 offset10 pull-right">
                                        <span class="label"><a href="http://sonata-project.org" rel="noreferrer" style="text-decoration: none; color: black">Sonata Project</a></span>
                                    </div>
                                </div>
                            {% endblock %}
                        {% endblock %}

                    </section>
                </section>
            </section>
            <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>
        </section>
        <aside class="bg-light lter b-l aside-md hide" id="notes">
            <div class="wrapper">Notification</div>
        </aside>
    </section>
</section>
{% block javascripts %}

    <!-- Bootstrap -->
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/bootstrap.js') }}"></script>
    <!-- App -->
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/app.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/app.plugin.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/slimscroll/jquery.slimscroll.min.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/easypiechart/jquery.easy-pie-chart.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/sparkline/jquery.sparkline.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.tooltip.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.resize.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.grow.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.time.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/calendar/bootstrap_calendar.js') }}" cache="false"></script>

    <script src="{{ asset('bundles/maximthemeeoeadmin/js/sortable/jquery.sortable.js') }}" cache="false"></script>
    <script>
        $(function(){
            $('input').each(function(){
                var inputAttr = $(this).attr("type")
                if($.inArray(inputAttr, ["checkbox", "submit"]) == -1) {
                    $(this).addClass("form-control");
                }
            });
        })
    </script>
{% endblock %}
</body>
</html>
<commit_msg>Fix admin panel so it doesn't show an error<commit_after>
{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}
{% 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') %}
{% set _title        = block('title') %}
{% set _breadcrumb   = block('breadcrumb') %}
{% set _actions      = block('actions') %}
<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

    {% block stylesheets %}
        <!-- jQuery code -->
        {#<link rel="stylesheet" href="{{ asset('bundles/sonataadmin/x-editable/css/bootstrap-editable.css') }}" type="text/css" media="all" />#}

        {# NEW STYLESHEETS #}
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/bootstrap.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/animate.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/font-awesome.min.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/font.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/app.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/maxim-extra.css') }}" type="text/css" media="all" />

        <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/calendar/bootstrap_calendar.css') }}" type="text/css" media="all" />
        <!--[if lt IE 9]>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/html5shiv.js') }}" cache="false"></script>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/respond.min.js') }}" cache="false"></script>
        <script src="{{ asset('bundles/maximthemeeoeadmin/js/ie/excanvas.js') }}" cache="false"></script>
        <![endif]-->

        {% if admin_pool is defined and admin_pool.getOption('use_select2') %}
            {#<link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/css/select2.css') }}" type="text/css" media="all" />#}
            <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/select2/select2.css') }}" type="text/css" media="all" />
            <link rel="stylesheet" href="{{ asset('bundles/maximthemeeoeadmin/js/select2/theme.css') }}" type="text/css" media="all" />
            <style>
                .select2-container {
                    padding:0 !important;
                    border:none !important;
                    width: 10% !important;
                    min-width: 215px;
                    margin-right:5px;
                }
                .per-page {
                    min-width:55px !important;
                }
                .select2-container + .select2-container {

                }
                #filter_date_value {
                    padding:0;
                    margin-bottom: 40px;
                    border: none;
                }
                .select2-container .select2-choice {
                    border-color: #d9d9d9 !important;
                    border-radius: 2px !important;
                    height: 34px !important;
                    line-height:34px !important;
                }

                .select2-container .select2-choice .select2-arrow {
                    border-radius: 0 !important;
                }
            </style>
        {% 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" />

        <script src="{{ asset('bundles/maximthemeeoeadmin/js/jquery.min.js') }}"></script>
        <script type="text/javascript">
            window.SONATA_CONFIG = {
                CONFIRM_EXIT: {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}true{% else %}false{% endif %},
                USE_SELECT2: {% if admin_pool is defined and admin_pool.getOption('use_select2') %}true{% else %}false{% endif %}
            };
            window.SONATA_TRANSLATIONS = {
                CONFIRM_EXIT:  '{{ 'confirm_exit'|trans({}, 'SonataAdminBundle')|escape('js') }}'
            };
        </script>


        <script src="{{ asset('bundles/sonataadmin/x-editable/js/bootstrap-editable.min.js') }}"></script>

        {% if admin_pool is defined and admin_pool.getOption('use_select2') %}
        <script src="{{ asset('bundles/sonataadmin/select2/select2.min.js') }}" type="text/javascript"></script>
        {% endif %}

        <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}" type="text/javascript"></script>
        {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}<script src="{{ asset('bundles/sonataadmin/jquery/jquery.confirmExit.js') }}" type="text/javascript"></script>{% endif %}
        <script src="{{ asset('bundles/sonataadmin/base.js') }}" type="text/javascript"></script>

    {% endblock %}

    <title>
        {{ 'Admin'|trans({}, 'SonataAdminBundle') }}

        {% if _title is not empty %}
            {{ _title|raw }}
        {% else %}
            {% if action is defined %}
                -
                {% for menu in admin.breadcrumbs(action) %}
                    {% if not loop.first  %}
                        &gt;
                    {% endif %}
                    {{ menu.label }}
                {% endfor %}
            {% endif %}
        {% endif%}
    </title>
</head>
<body>
{# initialize block value #}

<section class="vbox">
    <header class="bg-dark dk header navbar navbar-fixed-top-xs">
        <div class="navbar-header aside-md">
            <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav">
                <i class="fa fa-bars"></i>
            </a>
            <a href="#" class="navbar-brand" data-toggle="fullscreen">{{ admin_pool.title }}</a>
            <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
                <i class="fa fa-cog"></i>
            </a>
        </div>
        <ul class="nav navbar-nav hidden-xs">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
                    <i class="fa fa-building-o"></i>
                    <span class="font-bold">Activity</span>
                </a>
                <section class="dropdown-menu aside-xl on animated fadeInLeft no-borders lt">
                    <div class="wrapper lter m-t-n-xs">
                        <a href="#" class="thumb pull-left m-r">
                            <img src="http://minotar.net/helm/{{ app.user.username }}" class="img-circle">
                        </a>
                        <div class="clear">
                            <a href="#"><span class="text-white font-bold">{{ app.user.username }}</span></a>
                            <small class="block">{{ app.user.group.name }}</small>
                            <a href="#" class="btn btn-xs btn-success m-t-xs"></a>
                        </div>
                    </div>
                    <div class="row m-l-none m-r-none m-b-n-xs text-center">
                        <div class="col-xs-4">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                        <div class="col-xs-4 dk">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <div class="padder-v">
                                <span class="m-b-xs h4 block text-white">999</span>
                                <small class="text-muted">placeholder</small>
                            </div>
                        </div>
                    </div>
                </section>
            </li>
        </ul>
        <ul class="nav navbar-nav navbar-right hidden-xs nav-user">
            {#<li class="hidden-xs">
                <a href="#" class="dropdown-toggle dk" data-toggle="dropdown">
                    <i class="fa fa-bell"></i>
                    <span class="badge badge-sm up bg-danger m-l-n-sm count">2</span>
                </a>
                <section class="dropdown-menu aside-xl">
                    <section class="panel bg-white">
                        <header class="panel-heading b-light bg-light">
                            <strong>You have <span class="count">2</span> notifications</strong>
                        </header>
                        <div class="list-group list-group-alt animated fadeInRight">
                            <a href="#" class="media list-group-item">
                          <span class="pull-left thumb-sm">
                            <img src="http://minotar.net/helm/{{ app.user.username }}" alt="{{ app.user.username }}" class="img-circle">
                          </span>
                          <span class="media-body block m-b-none">
                            Use awesome animate.css<br>
                            <small class="text-muted">10 minutes ago</small>
                          </span>
                            </a>
                            <a href="#" class="media list-group-item">
                          <span class="media-body block m-b-none">
                            1.0 initial released<br>
                            <small class="text-muted">1 hour ago</small>
                          </span>
                            </a>
                        </div>
                        <footer class="panel-footer text-sm">
                            <a href="#" class="pull-right"><i class="fa fa-cog"></i></a>
                            <a href="#notes" data-toggle="class:show animated fadeInRight">See all the notifications</a>
                        </footer>
                    </section>
                </section>
            </li>#}
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
                <section class="dropdown-menu aside-xl animated fadeInUp">
                    <section class="panel bg-white">
                        <form role="search">
                            <div class="form-group wrapper m-b-none">
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-btn">
                              <button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
                            </span>
                                </div>
                            </div>
                        </form>
                    </section>
                </section>
            </li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="thumb-sm avatar pull-left">
                      <img src="http://minotar.net/helm/{{ app.user.username }}" alt="{{ app.user.username }}">
                    </span>
                    {{ app.user.username }}<b class="caret"></b>
                </a>
                <ul class="dropdown-menu animated fadeInRight">
                    <span class="arrow top"></span>
                    <li>
                        <a href="{{ path('home') }}">Home</a>
                    </li>
                    <li>
                        <a href="{{ path('account') }}">Settings</a>
                    </li>
                    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
                        <li>
                            <a href="?_switch_user=_exit" title="stop impersonate user">Stop impersonating</a>
                        </li>
                    {% endif %}
                    {#<li>
                        <a href="#">
                            <span class="badge bg-danger pull-right">3</span>
                            Notifications
                        </a>
                    </li>#}
                    <li class="divider"></li>
                    <li>
                        <a href="{{ path('logout') }}" data-toggle="ajaxModal" >Logout</a>
                    </li>
                </ul>
            </li>
        </ul>
    </header>
    <section>
        <section class="hbox stretch">
            <!-- .aside -->
            <aside class="bg-dark lter aside-md hidden-print" id="nav">
                <section class="vbox">
                    <header class="header bg-primary lter text-center clearfix">
                        <div class="btn-group">
                            <button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
                            <div class="btn-group hidden-nav-xs">
                                <button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown">
                                    Switch Project
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu text-left">
                                    <li><a href="#">EyeOfEnder</a></li>
                                </ul>
                            </div>
                        </div>
                    </header>
                    <section class="w-f scrollable">
                        <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333">

                            <!-- nav -->
                            {% if admin_pool is defined %}
                                {% block sonata_nav_menu %}

                                    <nav class="nav-primary hidden-xs">
                                        <ul class="nav">
                                            {% block top_bar_before_nav %} {% endblock %}
                                            {% block sonata_top_bar_nav %}
                                                {% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
                                                    {% for group in admin_pool.dashboardgroups %}
                                                        {% set display = (group.roles is empty or is_granted('ROLE_SUPER_ADMIN') ) %}
                                                        {% for role in group.roles if not display %}
                                                            {% set display = is_granted(role) %}
                                                        {% endfor %}

                                                        {# Do not display the group label if no item in group is available #}
                                                        {% set item_count = 0 %}
                                                        {% if display %}
                                                            {% for admin in group.items if item_count == 0 %}
                                                                {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                                                                    {% set item_count = item_count+1 %}
                                                                {% endif %}
                                                            {% endfor %}
                                                        {% endif %}

                                                        {% if display and (item_count > 0) %}
                                                            <li>
                                                                <a href="#">
                                                                    <i class="fa {{ random(['fa-flask', 'fa-envelope', 'fa-columns', 'fa-dashboard', 'fa-pencil']) }} icon">
                                                                        <b class="{{ random(['bg-success', 'bg-warning', 'bg-danger', 'bg-info', 'bg-primary']) }}"></b>
                                                                    </i>
                                                                    <span class="pull-right">
                                                                        <i class="fa fa-angle-down text"></i>
                                                                        <i class="fa fa-angle-up text-active"></i>
                                                                    </span>

                                                                    <span>{{ group.label|trans({}, group.label_catalogue) }}</span>
                                                                </a>
                                                                <ul class="nav lt">
                                                                    {% for admin in group.items %}
                                                                        {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                                                                            <li>
                                                                                <a href="{{ admin.generateUrl('list')}}">
                                                                                    <i class="fa fa-angle-right"></i>
                                                                                    <span>{{ admin.label|trans({}, admin.translationdomain) }}</span>
                                                                                </a>
                                                                            </li>
                                                                        {% endif %}
                                                                    {% endfor %}
                                                                </ul>
                                                            </li>
                                                        {% endif %}
                                                    {% endfor %}
                                                {% endif %}
                                            {% endblock %}
                                            {% block top_bar_after_nav %} {% endblock %}
                                        </ul>
                                    </nav>
                                    <!-- / nav -->
                                {% endblock %}

                                {% block sonata_nav_menu_after %}{% endblock %}
                            {% endif %}
                        </div>
                    </section>
                    <footer class="footer lt hidden-xs b-t b-dark"> <div id="chat" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light">Active chats</header>
                                    <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No active chats.</p>
                                        <p><a href="#" class="btn btn-sm btn-default">Start a chat</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <div id="invite" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light"> John <i class="fa fa-circle text-success"></i>
                                    </header> <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No contacts in your lists.</p>
                                        <p><a href="#" class="btn btn-sm btn-facebook"><i class="fa fa-fw fa-facebook"></i> Invite from Facebook</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon"> <i class="fa fa-angle-left text"></i> <i class="fa fa-angle-right text-active"></i> </a>
                    </footer>
                </section>
            </aside>
            <!-- /.aside -->
            <section id="content">
                <section class="vbox">
                    <section class="scrollable padder">
                        {# breadcrumbs #}
                        {% if _breadcrumb is not empty or action is defined %}
                            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                                {% if _breadcrumb is empty %}
                                    {% if action is defined %}
                                        {% for menu in admin.breadcrumbs(action) %}
                                            {% if not loop.last  %}
                                                <li>
                                                    {% if menu.uri is not empty %}
                                                        <a href="{{ menu.uri }}">{{ menu.label }}</a>
                                                    {% else %}
                                                        {{ menu.label }}
                                                    {% endif %}
                                                </li>
                                            {% else %}
                                                <li class="active">{{ menu.label }}</li>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% else %}
                                    {{ _breadcrumb|raw }}
                                {% endif %}
                            </ul>
                        {% endif %}

            {#            <div class="m-b-md">
                            <h3 class="m-b-none">Static Table</h3>
                        </div>#}
                        {% block sonata_page_content %}
                            {% block notice %}
                                {% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
                            {% endblock %}

                            {# actions #}
                            {% if _actions is not empty %}
                                <div>
                                    {{ _actions|raw }}
                                </div>
                            {% endif %}
                            <br/>
                            <div class="row">
                                {% if _side_menu is not empty %}
                                    <div class="sonata-ba-list col-sm-2">
                                        <section class="panel panel-default">
                                            <header class="panel-heading">Side menu</header>
                                            <div class="sonata-ba-side-menu" style="padding: 8px 0;">{{ _side_menu|raw }}</div>
                                        </section>
                                    </div>
                                {% endif %}

                                <div class="content {{ _side_menu is not empty ? '  col-sm-10' : 'col-sm-12' }}">
                                    {% block sonata_admin_content %}

                                        {% if _preview is not empty %}
                                            <div class="sonata-ba-list">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Content</header>
                                                    <div class="sonata-ba-preview">{{ _preview|raw }}</div>
                                                </section>
                                            </div>
                                        {% endif %}

                                        {% if _content is not empty %}
                                            <div class="sonata-ba-content">{{ _content|raw }}</div>
                                        {% endif %}

                                        {% if _show is not empty %}
                                            <div class="sonata-ba-list">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Content</header>
                                                    <div class="sonata-ba-show">{{ _show|raw }}</div>
                                                </section>
                                            </div>
                                        {% endif %}

                                        {% if _form is not empty %}
                                            <div class="sonata-ba-form">{{ _form|raw }}</div>
                                        {% endif %}

                                        {% if _list_table is not empty or _list_filters is not empty %}
                                            <div class="sonata-ba-list col-sm-10">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Table</header>
                                                    {{ _list_table|raw }}
                                                </section>
                                            </div>
                                            <div class="sonata-ba-filter col-sm-2">
                                                <section class="panel panel-default">
                                                    <header class="panel-heading">Filter</header>
                                                    <div class="panel-body">
                                                        {{ _list_filters|raw }}
                                                    </div>
                                                </section>
                                            </div>
                                        {% endif %}

                                    {% endblock %}
                                </div>
                            </div>

                            {% block footer %}
                                <div class="row-fluid">
                                    <div class="span2 offset10 pull-right">
                                        <span class="label"><a href="http://sonata-project.org" rel="noreferrer" style="text-decoration: none; color: black">Sonata Project</a></span>
                                    </div>
                                </div>
                            {% endblock %}
                        {% endblock %}

                    </section>
                </section>
            </section>
            <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>
        </section>
        <aside class="bg-light lter b-l aside-md hide" id="notes">
            <div class="wrapper">Notification</div>
        </aside>
    </section>
</section>
{% block javascripts %}

    <!-- Bootstrap -->
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/bootstrap.js') }}"></script>
    <!-- App -->
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/app.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/app.plugin.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/slimscroll/jquery.slimscroll.min.js') }}"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/easypiechart/jquery.easy-pie-chart.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/sparkline/jquery.sparkline.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.tooltip.min.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.resize.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.grow.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/charts/flot/jquery.flot.time.js') }}" cache="false"></script>
    <script src="{{ asset('bundles/maximthemeeoeadmin/js/calendar/bootstrap_calendar.js') }}" cache="false"></script>

    <script src="{{ asset('bundles/maximthemeeoeadmin/js/sortable/jquery.sortable.js') }}" cache="false"></script>
    <script>
        $(function(){
            $('input').each(function(){
                var inputAttr = $(this).attr("type")
                if($.inArray(inputAttr, ["checkbox", "submit"]) == -1) {
                    $(this).addClass("form-control");
                }
            });
        })
    </script>
{% endblock %}
</body>
</html>

{'fraction_non_alphanumeric': 0.13238431845204163, 'fraction_numerical': 0.0030946137433425086, 'mean_word_length': 0.9666239590006406, 'pattern_counts': {'":': 0, '<': 905, '<?xml version=': 0, '>': 907, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 534, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2372110', 'n_tokens_mistral': 14631, 'n_tokens_neox': 13515, 'n_words': 2810}