<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
{% block title %}
{% if annonceurName is defined %}
{{ annonceurName }} -
{% endif %}
Animation
{% endblock %}</title>
<!-- Style -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{#<link rel="stylesheet" href="{{ asset('/app/bootstrap.css') }}">
<link rel="stylesheet" href="{{ asset('/app/fontawesome.css') }}">
<link rel="stylesheet" href="{{ asset('/app/adminlte.css') }}">
<link rel="stylesheet" href="{{ asset('/app/skin-adminlte.css') }}">
<link rel="stylesheet" href="{{ asset('/app/bootstrap-colorpicker.css') }}">
<link rel="stylesheet" href="{{ asset('/app/index.css') }}">
<link rel="stylesheet" href="{{ asset('/app/authenticate.css') }}">
<link rel="stylesheet" href="{{ asset('/app/custom.css') }}">
<link rel="stylesheet" href="{{ asset('/app/responsive.css') }}">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />#}
{% block stylesheets %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
{{ encore_entry_link_tags('app') }}
<!--[if lte IE 8]>
<link rel="stylesheet" href="{{ asset('css/ie.css') }}">
<![endif]-->
{% if advertiser_management.getCurrentAdvertiser %}
{% include 'advertiser_theme.html.twig' %}
{% endif %}
{% endblock %}
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition skin-ble sidebar-collapse sidebar-mini {% block bodyclass %}{% endblock %} {% if app.request.get('_route') == "index" %}homepage{% endif %}">
{% if access_management.getMainRequest.get('_route') is not null %}
{# {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} #}
{% set currentPath = access_management.getMainRequest.attributes.get('_route') %}
{% else %}
{% set currentPath = "" %}
{% endif %}
<div class="wrapper">
<!-- Main Header -->
<header class="main-header">
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
{% set advertiserId = advertiser_management.getCurrentAdvertiser.id %}
{% set advertiser = advertiser_management.getCurrentAdvertiser %}
{#{% if user is not defined %}
{% set user = app.user %}
{% endif %}#}
{% set user = user_management.getUser() %}
<div class="navbar-item mobile hide">
<span class="logo-label">{% if advertiser.appName == '' %}Staci{% else %}{{ advertiser.appName|capitalize }}{% endif %}</span>
</div>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- Control Sidebar Toggle Button -->
{#<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>#}
{% set opeGlobale = content_management.getOperationGlobale(advertiser) %}
{% if access_management.getFunctionalityRight(user, advertiser, 'canOrderFurnitureGlobal') and opeGlobale != null %}
<li class="navbar-item order">
<a class="clear-before-command" data-id="{{ opeGlobale.id }}" href="/operation-order/new-furniture/{{ opeGlobale.id }}"><i class="icon-shopping-cart"></i>{{ 'Commander' | trans }}</a>
</li>
{% endif %}
{% if access_management.checkUrl("operation_order_index") %}
<li class="navbar-item desktop">
<a href="{{ path('operation_order_index') }}"><i class="icon-icon-commandes"></i>{{ 'Mes commandes' | trans }}</a>
</li>
{% endif %}
{% if access_management.checkUrl("download") %}
<li class="navbar-item desktop download">
<a href="{{ path('download') }}"><i class="icon-icon-files"></i>{{ 'Mes téléchargements' | trans }}</a>
</li>
{% endif %}
{% if user_management.isAdmin %}
<li class="navbar-item desktop">
<div class="select-custom select-admin">
<select id="advertiser_dropdown" name="advertiser_dropdown">
{% for advertiser in advertiser_management.getAdvertisers %}
{% set advertiserUrl = advertiser_management.getAbsoluteUrl(advertiser.subdomain) %}
{% if advertiser_management.getCurrentAdvertiser.id == advertiser.id %}
<option value="{{ advertiserUrl }}" selected>{{ advertiser.title }}</option>
{% else %}
<option value="{{ advertiserUrl }}">{{ advertiser.title }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</li>
{% endif %}
<li class="dropdown user menu-user">
<a href="#" class="dropdown-toggle-user">
{#<div class="user-image {% if advertiser.logo %}with-img {% else %}with-icon{% endif %}" {% if advertiser.logo %}style="background-image:url(/{{ obfuscator.generateUrl(advertiser.logo) }});"{% endif %}>#}
<div class="user-image with-icon">
<i class="icon-icon-user"></i>
{#{% if advertiser.logo %}
<img width="150"
src="/{{ advertiser.logo }}">
{% endif %}#}
</div>
{% if user is defined and user is not empty %}
<span class="user-more">
<span class="hidden-xs">{{ user.firstname }} {{ user.lastname }}</span>
</span>
{% endif %}
</a>
{% if user is defined and user is not empty %}
<div class="user-more dropdown-menu">
<div>
<div class="user-main-infos">
<div class="user-name">
<span class="">{{ user.firstname }} {{ user.lastname }}</span>
</div>
{% if user.email is defined %}
<div class="user-info email"><i class="icon-icon-mail"></i>{{ 'Email' | trans }} : <span>{{ user.email }}</span></div>
{% endif %}
</div>
{% if user.regions|length > 0 %}
<div class="user-info">
{{ 'Région' | trans }} :
{% for region in user.regions %}
{{ region.title }}
{% endfor %}
</div>
{% endif %}
{% if user.businessUnits|length > 0 %}
<div class="user-info">
{{ 'Bu' | trans }} :
{% for businessUnit in user.businessUnits %}
{{ businessUnit.title }}
{% endfor %}
</div>
{% endif %}
</div>
{% if access_management.checkUrl("operation_order_index") %}
<div class="user-commands-mobile">
<a href="{{ path('operation_order_index') }}"><i class="icon-icon-commandes"></i>{{ 'Mes commandes' | trans }}</a>
</div>
{% endif %}
{% if user_management.isAdmin %}
<div class="dropdown-menu-mobile">
<div class="select-custom select-admin">
<select id="advertiser_dropdown_mobile" name="advertiser_dropdown_mobile">
{% for advertiser in advertiser_management.getAdvertisers %}
{% set advertiserUrl = advertiser_management.getAbsoluteUrl(advertiser.subdomain) %}
{% if advertiser_management.getCurrentAdvertiser.id == advertiser.id %}
<option value="{{ advertiserUrl }}" selected>{{ advertiser.title }}</option>
{% else %}
<option value="{{ advertiserUrl }}">{{ advertiser.title }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
{% endif %}
<div class="footer-user-more">
<a class="menu-logout" href="{{ path('logout') }}" title="{{ 'Déconnexion' | trans }}"><i class="fa fa-power-off"></i>{{ 'Se déconnecter' | trans }}</a>
</div>
</div>
{% endif %}
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar bgcolor-1">
<div class="sidebar-header">
<!-- Logo -->
<div class="brand-sidebar group-logo">
<a href="{{ path('index') }}" class="logo">
<div class="logo-lg">
{% if advertiser %}
{% if advertiser.logoName %}
<img width="150" src="{{ obfuscator.generateUrl(vich_uploader_asset(advertiser, 'logoFile')) }}">
{% else %}
<h2>{{ advertiser.subdomain|capitalize }}</h2>
{% endif %}
{% else %}
<li class="center bg-none">
<img width="150" src="{{ asset('logo/') }}staci-logo.png">
</li>
{% endif %}
</div>
<div class="logo-mini">
</div>
<span class="logo-label">{{ advertiser.appName|capitalize }}</span>
</a>
</div>
</div>
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar-custom">
<div class="sidebar-white">
<ul class="sidebar-menu">
<li class="{% if 'homepage' in currentPath %} active {% endif %}">
{% set homepage = content_management.getHomepage(advertiser) %}
<a href="/"><i class="icon-icon-actualite"></i><span>{{ 'Accueil' | trans }}</span></a>
</li>
{% if null != user %}
{% set dashboard = content_management.getCurrentDashboard(user) %}
<li class="{% if 'dashboard' in currentPath %} active {% endif %}">
{% if null != dashboard %}
<a href="/dashboard/{{ dashboard.id }}"><i class="icon-icon-dashboard"></i><span>{{ 'Dashboard' | trans }}</span></a>
{% endif %}
</li>
{% endif %}
</ul>
</div>
{% if currentPath == "index" or currentPath == 'operation_index' or currentPath == 'operation_order_index' or currentPath == 'operation_order_report' or currentPath == 'operation_order_subregions' %}
<div class="family-choose-sidebar sidebar-white">
{{ render(controller('App\\Controller\\Advertiser\\Generic\\GenericOperationFamilyController::choose')) }}
</div>
{% endif %}
{% if advertiser_management.isDefaultAdvertiser(advertiser) %}
{%
set sidebarDatas = [
{
'label': 'Administration',
'glyph': 'fa fa-key',
'items': [
{'path': 'advertiser_index', 'label': 'Liste des annonceurs'},
{'path': 'agency_index', 'label': 'Liste des agences'},
],
},
{
'label': 'Gestion',
'glyph': 'fa fa-edit',
'items': [
{'path': 'user_index', 'label': 'Liste des utilisateurs'},
],
},
]
%}
{% else %}
{%
set sidebarDatas = [
{
'label': 'Configuration',
'glyph': 'fa fa-gear',
'items': [
{'path': 'business_unit_index', 'label': 'Liste des Business units'},
{'path': 'category_index', 'label': 'Liste des catégories'},
{'path': 'action_type_index', 'label': 'Liste des types d\'actions'},
{'path': 'season_index', 'label': 'Liste des seasons'},
{'path': 'operation_family_index', 'label': 'Liste des familles d\'opérations'},
{'path': 'operation_type_index', 'label': 'Liste des types d\'opérations'},
{'path': 'furniture_index', 'label': 'Liste des fournitures'},
{'path': 'furniture_range_index', 'label': 'Liste des gammmes de fournitures'},
{'path': 'furniture_stock_index', 'label': 'Liste des stocks de fournitures'},
{'path': 'refrigeratorbin_index', 'label': 'Liste des bacs frais'},
{'path': 'shop_type_index', 'label': 'Liste des types des boutiques'},
{'path': 'shop_class_index', 'label': 'Liste des classes des boutiques'},
{'path': 'speaker_index', 'label': 'Liste des intervenants'},
{'path': 'public_holiday_index', 'label': 'Liste des jours fériés'},
{'path': 'role_index', 'label': 'Liste des roles'},
{'path': 'right', 'label': 'Gérer des droits'},
{'path': 'translation_index', 'label': 'Gérer les traductions'},
],
},
{
'label': 'Gestion',
'glyph': 'fa fa-edit',
'items': [
{'path': 'region_index', 'label': 'Liste des régions'},
{'path': 'user_index', 'label': 'Liste des utilisateurs'},
{'path': 'brand_index', 'label': 'Liste des marques'},
{'path': 'shop_sign_index', 'label': 'Liste des enseignes'},
{'path': 'shop_index', 'label': 'Liste des boutiques'},
{'path': 'deficiency_index', 'label': 'Liste des carences'},
{'path': 'dashboard_index', 'label': 'Liste des dashboard'},
{'path': 'page_index', 'label': 'Liste des pages'},
{'path': '/homepage/' ~ homepage.id ~ '/edit', 'label': 'Editer la homepage'},
{'path': 'log_index', 'label': 'Liste des logs'},
],
},
{
'label': 'Exploitation',
'glyph': 'icon-icon-user',
'items': [
{'path': 'operation_index', 'label': 'Liste des opérations'},
{'path': 'operation_order_subregions', 'label': 'Commandes par secteur'},
{'path': 'operation_order_report', 'label': 'Reporting commandes'},
],
},
]
%}
{% endif %}
{% set pages = content_management.getSidebar() %}
<ul class="sidebar-menu" data-widget="tree">
{% if pages|length > 0 %}
<li class="treeview {% if 'page' in currentPath or 'news' in currentPath %} menu-open {% endif %}">
<a href="#">
<i class="icon-icon-commandes"></i><span>{{ 'Informations' | trans }}</span>
</a>
<ul class="treeview-menu {% if 'page' in currentPath or 'news' in currentPath %} open {% endif %}">
<li class="{% if 'news' in currentPath %}active{% endif %}"><a href="/news">{{ 'Actualités' | trans }}</a></li>
{% for page in pages %}
<li><a href="/page/{{ page.id }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% for tab in sidebarDatas %}
{% set liDisplay = false %}
{% for item in tab.items %}
{% if access_management.checkUrl(item.path) %}
{% set liDisplay = true %}
{% endif %}
{% endfor %}
{% if liDisplay %}
{#<li class="treeview {% for item in tab.items %}{% if path(item.path) == currentPath or (app.request.get('_route') == "index" and tab.label == 'Exploitation') %} menu-open {% endif %}{% endfor %}" data-tab="{{ tab.label }}">#}
<li class="treeview {% for item in tab.items %}{% if item.path == currentPath or (app.request.get('_route') == "index" and tab.label == 'Exploitation') %} menu-open {% endif %}{% endfor %}" data-tab="{{ tab.label }}">
<a href="#">
<i class="{{ tab.glyph }}"></i><span>{{ tab.label | trans }}</span>
</a>
{#<ul class="treeview-menu {% for item in tab.items %}{% if path(item.path) == currentPath or (app.request.get('_route') == "index" and tab.label == 'Exploitation') %} open {% endif %}{% endfor %}">#}
<ul class="treeview-menu {% for item in tab.items %}{% if item.path == currentPath or (app.request.get('_route') == "index" and tab.label == 'Exploitation') %} open {% endif %}{% endfor %}">
{% for item in tab.items %}
{% if item.path|slice(0, 10) == '/homepage/' %}
{% if access_management.getFunctionalityRight(user, advertiser, 'canEditHp') %}
<li class="{% if item.path == currentPath %} active {% endif %}">
<a href="{{ item.path }}">{{ item.label | trans }}</a>
</li>
{% endif %}
{% else %}
{% if access_management.checkUrl(item.path) %}
<li class="{% if item.path == currentPath %} active {% endif %}">
{% if item.path|slice(0, 1) == '/' %}
<a href="{{ item.path }}">{{ item.label | trans }}</a>
{% else %}
<a href="{{ path(item.path) }}">{{ item.label | trans }}</a>
{% endif %}
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>
<!-- /.sidebar-menu -->
</section>
<div class="sidebar-footer">
<span>{{ 'Powered by' | trans }}</span>
<div class="logo">{#<img src="{{ asset('img/logo-staci-blanc.svg') }}" alt="Staci" width="100" />#}</div>
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div>
<div class="content-wrapper">
<!-- Main content -->
<section class="content container-fluid">
{% for message in app.flashes('info') %}
<div class="flash-success">
{{ message | trans }}
</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class="flash-success">
{{ message | trans }}
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="flash-error">
{{ message | trans }}
</div>
{% endfor %}
{% block body %}
{% endblock %}
{% block pagination %}
{% endblock %}
</section>
<!-- /.content -->
</div>
</div>
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="control-sidebar-home-tab">
<a href="{{ path('logout') }}">
<h3 class="control-sidebar-heading">Logout</h3>
</a>
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
{% block javascripts %}
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-3.1.0.min.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.5.3/js/bootstrap-colorpicker.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/locale/fr.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/js/bootstrap-datepicker.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/locales/bootstrap-datepicker.fr.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
{{ encore_entry_script_tags('app') }}
{% endblock %}
</body>
</html>