{% if form is defined %}{% form_theme form with ['form/errors.html.twig'] %}{% endif %}
{% if form2 is defined %}{% form_theme form2 with ['form/errors.html.twig'] %}{% endif %}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
<title>TILLOMED - {% block title %}Homepage{% endblock %}</title>
{# CANVAS v5.9 - last update 18/07/2019 #}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Lato:300,400,400i,700|Raleway:300,400,500,600,700|Crete+Round:400i" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/bootstrap.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/style.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/font-icons.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/magnific-popup.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/swiper.css')}}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/dark.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/animate.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/components/bs-switches.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/components/radio-checkbox.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/font-icons/medical/medical-icons.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ asset ('css/components/datepicker.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/components/daterangepicker.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/classes.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/custom.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/themeOverride.css') }}" />
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
{% block recaptcha %}<script src='https://www.google.com/recaptcha/api.js'></script>{% endblock %}
</head>
<body id="body" class="stretched side-header open-header push-wrapper close-header-on-scroll" {% block bodyStyle %}{% endblock %}>
{% for flash_message in app.session.flashbag.get('notice_success') %}
<div class="style-msg successmsg notice">
<div class="sb-msg"><i class="icon-thumbs-up"></i><strong>Complimenti! </strong> {{ flash_message|raw }}</div>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
{% endfor %}
{% for flash_message in app.session.flashbag.get('notice_warning') %}
<div class="style-msg alertmsg notice">
<div class="sb-msg"><i class="icon-warning-sign"></i><strong>Attenzione! </strong> {{ flash_message|raw }}</div>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
{% endfor %}
{% for flash_message in app.session.flashbag.get('notice_danger') %}
<div class="style-msg errormsg notice">
<div class="sb-msg"><i class="icon-remove"></i><strong>Attenzione! </strong> {{ flash_message|raw }}</div>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
{% endfor %}
{% block divHelp %}
<div id="divHelp" class="divHelp hide_print">
<img id="helpImage" src="{{ asset ('images/graphics/logo_square.png')}}">
<a href="javascript:closeHelp()"><i id="helpClose" class="icon-remove font_20 color_r"></i></a>
<h5 id="helpTitle" class="uppercase m_b_10p b_b_pr"></h5>
<div class="overflow_a max_h_170p"><p id="helpText" class="txt_a_j"></p></div>
</div>
{% endblock %}
{% block body %}
<div id="wrapper" class="clearfix">
<div id="header-trigger" class="d-none d-lg-block"><i class="icon-line-menu"></i><i class="icon-line-cross"></i></div>
{% block alarmButton %}{% endblock %}
{# HEADER #}
{% block header %}
<header id="header" class="no-sticky bg_pr hide_print dark">
<div id="header-wrap">
<div class="container bg_pr">
<div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
<nav class="primary-menu on-click">
<ul class="menu-container">
{% block menu %}
{% if app.user %}
{# AMMINISTRATORE #}
{% if is_granted("ROLE_ADMIN") %}
<li class="txt_a_c color_w">[Admin]</li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_index') }}"><div>Scrivania</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_users_list') }}"><div>Utenti</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_notifications') }}"><div>Notifiche</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_select') }}"><div>Configura</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'tipo_documento'}) }}"><div>Tipi documento</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'tipo_dipartimento'}) }}"><div>Tipi dipartimento</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'categoria_spesa'}) }}"><div>Categoria spesa</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_reimbursment_type_list') }}"><div>Tipi spesa</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'professione'}) }}"><div>Professioni</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_closure_list') }}"><div>Chiusure</div></a></li>
</ul>
</li>
<li class="menu-item"><a class="menu-link color_w" href="#"><div>Listino</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_categories') }}"><div>Aree terapeutiche</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_product_groups') }}"><div>Molecole</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_products') }}"><div>Prodotti</div></a></li>
</ul>
</li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_hospital_groups') }}"><div>Gruppi ospedalieri</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_hospitals') }}"><div>Enti fatturanti</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_tests_list') }}"><div>Questionari</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_document_list') }}"><div>Documenti aziendali</div></a></li>
{% else %}
<li class="txt_a_c menu-item color_w">[{{ app.user.accountType.value }}]</li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_index') }}"><div>Scrivania</div></a></li>
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Profilo</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_profile') }}"><div>I miei dati</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_documents_personal_list') }}"><div>Documenti personali</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_notifications') }}"><div>Notifiche <span class="notifCount">{{ app.user.unreadNotifications }}</span></div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_tests_list') }}"><div>Questionari</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_document_list') }}"><div>Documenti aziendali</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path('user_products_list') }}"><div>Listino</div></a></li>
</ul>
</li>
{% if app.user.accountType.slug != 'supervisor_mario' and app.user.accountType.level < 4 %}
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione attività</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_presence_list') }}"><div>Presenze</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_request_holiday_list') }}"><div>Richiesta ferie</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_reimbursment_month_list') }}"><div>Nota spese</div></a></li>
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_races_list') }}"><div>Gare</div></a></li>
{% endif %}
{% if app.user.accountType.slug == "kam" %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_activity_month_list') }}"><div>Attività</div></a></li>
{% endif %}
{% if app.user.accountType.slug == 'supervisor_enrico' or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_offer_requests_list') }}"><div>RDO</div></a></li>
{% endif %}
{% if app.user.accountType.slug == 'supervisor_enrico' or 'commercial' in app.user.accountType.slug or app.user.accountType.slug == 'kam' %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_offers_list') }}"><div>Offerte</div></a></li>
{% endif %}
{% if app.user.accountType.level == 1 %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_edit_request_list') }}"><div>Richieste modifica</div></a></li>
{% endif %}
</ul>
</li>
{% endif %}
{# LIV. 1 --- SUPERVISORI #}
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="#"><div>Gestione listino</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_categories') }}"><div>Aree terapeutiche</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_product_groups') }}"><div>Molecole</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_products') }}"><div>Prodotti</div></a></li>
</ul>
</li>
{% endif %}
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug or app.user.accountType.slug == 'kam'%}
<li class="menu-item"><a class="menu-link color_w" href="#"><div>Gestione strutture</div></a>
<ul class="sub-menu-container bg_pr">
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_hospital_groups') }}"><div>Gruppi ospedalieri</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_hospitals') }}"><div>Enti fatturanti</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_department_types') }}"><div>Tipi dipartimento</div></a></li>
{% endif %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_facilities') }}"><div>Strutture sanitarie</div></a></li>
{% if app.user.accountType.slug == 'kam' %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('test_facility_select') }}"><div>Questionario strutture</div></a></li>
{% endif %}
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_competitors') }}"><div>Concorrenti</div></a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione vendite</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sell_import') }}"><div>Importa vendite</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sells') }}"><div>Elenco vendite</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sells_not_binded') }}"><div>Elenco non abbinati</div></a></li>
</ul>
</li>
{% endif %}
{% if app.user.accountType.level == 1 %}
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione budget</div></a>
<ul class="sub-menu-container bg_pr">
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_totals') }}"><div>Budget totale</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_kams') }}"><div>Budget per KAM</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_products') }}"><div>Budget per prodotto</div></a></li>
</ul>
</li>
{% endif %}
{% if app.user.accountType.level == 1 or app.user.accountType.slug == 'administration' or app.user.accountType.slug == 'kam' %}
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione utenti</div></a>
<ul class="sub-menu-container bg_pr">
{% if app.user.accountType.level == 1 or app.user.accountType.slug == 'administration'%}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_employee_list') }}"><div>Dipendenti</div></a></li>
{% endif %}
{% if app.user.accountType.level == 1 or app.user.accountType.slug == 'kam' %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_external_list') }}"><div>Esterni</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_referent_list') }}"><div>Referenti</div></a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% if app.user.accountType.level == 1 or app.user.accountType.slug == "kam" or 'commercial' in app.user.accountType.slug %}
<li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Statistiche</div></a>
<ul class="sub-menu-container bg_pr">
{% if app.user.accountType.slug == "supervisor_enrico" or app.user.accountType.slug == "kam" %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_personal') }}"><div>Personali</div></a></li>
{% endif %}
{% if app.user.accountType.level == 1 %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_tests') }}"><div>Questionari</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_employees') }}"><div>Dipendenti</div></a></li>
{% endif %}
{% if app.user.accountType.level == 1 or app.user.accountType.slug == "kam" or 'commercial' in app.user.accountType.slug %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_sells') }}"><div>Vendite</div></a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% endif %}
{% if not is_granted('ROLE_ADMIN') %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path('user_version') }}"><div>Info versione</div></a></li>
{% endif %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path('logout') }}"><div>Logout</div></a></li>
{% else %}
<li class="menu-item"><a class="menu-link color_w" href="{{ path('homepage') }}"><div>Accedi</div></a></li>
<li class="menu-item"><a class="menu-link color_w" href="https://tillomed.it/it/" target="_blank"><div>L'Azienda</div></a></li>
{% endif %}
{% endblock %}
</ul>
</nav>
</div>
</div>
</header>
{% endblock %}
{# CONTENT #}
{% block content %}
{% endblock %}
{% block modals %}
{% endblock %}
{# FOOTER #}
{% block footer %}
<footer id="footer" class="bg_pr">
<div class="container clearfix m_t_40p">
<div class="row">
<div class="col-12 col-md-8">
<p class="footer_responsive">
<span class="font_20 f_w_b">TILLOMED ITALIA Srl</span><br>
Viale Giulio Richard 1/A, 20143 Milano (MI)<br>
C.F. - P.IVA: 097 507 109 65<br>
PEC: <a href=\"mailto:tillomeditalia@legalmail.it\">tillomeditalia@legalmail.it</a><br>
Ufficio del Registro di Iscrizione: CCIAA di Milano – Monza e Brianza – Lodi<br>
Rea: MI-21111242<br>
Capitale sociale: 30.000 €
</p>
</div>
<div class="col-12 col-md-4">
<p class="footer_responsive txt_a_r m_b_none">
<a href="https://tillomed.it/it/privacy">Privacy</a><br>
<a href="https://tillomed.it/it/cookie">Normativa sui cookie</a><br>
<a target="_blank" href="https://tillomed.it/documents/termini_e_condizioni.pdf">Termini e condizioni</a>
</p>
</div>
</div>
</div>
</footer>
{% endblock %}
</div>
{% endblock %}
{% block javascripts %}
<script type="text/javascript" src="{{ asset ('js/jquery.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/plugins.min.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/functions.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/utilities_2022_04_21.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/components/moment.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/components/datepicker.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/components/timepicker.js') }}"></script>
<script type="text/javascript" src="{{ asset ('js/components/daterangepicker.js') }}"></script>
{# HELP #}
<script>
function divHelp(slug){
$.post('{{ path ("help") }}', {slug: slug}, function(response){
if(response.code == 100 && response.success){
document.getElementById('divHelp').style.visibility = "visible";
document.getElementById('helpClose').style.visibility = "visible";
document.getElementById('helpImage').style.visibility = "visible";
document.getElementById('helpTitle').innerHTML = response.title;
document.getElementById('helpText').innerHTML = response.text;
$("#helpButton").modal('show');
}
}, "json");
}
function closeHelp(){
document.getElementById('divHelp').style.visibility = "hidden";
document.getElementById('helpClose').style.visibility = "hidden";
document.getElementById('helpImage').style.visibility = "hidden";
}
$(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
{% endblock %}
</body>
</html>