templates/base.html.twig line 1

Open in your IDE?
  1. {% if form is defined %}{% form_theme form with ['form/errors.html.twig'] %}{% endif %}
  2. {% if form2 is defined %}{% form_theme form2 with ['form/errors.html.twig'] %}{% endif %}
  3. <!DOCTYPE html>
  4. <html>
  5.     <head>
  6.         <meta charset="UTF-8" />
  7.         <meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
  8.         <title>TILLOMED - {% block title %}Homepage{% endblock %}</title>
  9.         {# CANVAS v5.9 - last update 18/07/2019 #}
  10.         {% block stylesheets %}
  11.             <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" />
  12.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/bootstrap.css') }}" />
  13.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/style.css') }}" />
  14.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/font-icons.css') }}" />
  15.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/magnific-popup.css') }}" />
  16.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/swiper.css')}}" />
  17.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/dark.css') }}" />
  18.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/animate.css') }}" />
  19.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/bs-switches.css') }}" />
  20.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/radio-checkbox.css') }}" />
  21.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/font-icons/medical/medical-icons.css') }}"/>    
  22.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/datepicker.css') }}" />
  23.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/daterangepicker.css') }}" />
  24.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/classes.css') }}" />
  25.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/custom.css') }}" />
  26.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2022_06_06/themeOverride.css') }}" />
  27.         {% endblock %}
  28.         <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
  29.         {% block recaptcha %}<script src='https://www.google.com/recaptcha/api.js'></script>{% endblock %}
  30.     </head>
  31.     <body id="body" class="stretched side-header open-header push-wrapper close-header-on-scroll" {% block bodyStyle %}{% endblock %}>
  32.         {% for flash_message in app.session.flashbag.get('notice_success') %}
  33.             <div class="style-msg successmsg notice">
  34.                 <div class="sb-msg"><i class="icon-thumbs-up"></i><strong>Complimenti! </strong> {{ flash_message|raw }}</div>
  35.                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  36.             </div>
  37.         {% endfor %}
  38.         
  39.         {% for flash_message in app.session.flashbag.get('notice_warning') %}
  40.             <div class="style-msg alertmsg notice">
  41.                 <div class="sb-msg"><i class="icon-warning-sign"></i><strong>Attenzione! </strong> {{ flash_message|raw }}</div>
  42.                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  43.             </div>
  44.         {% endfor %}
  45.         {% for flash_message in app.session.flashbag.get('notice_danger') %}
  46.             <div class="style-msg errormsg notice">
  47.                 <div class="sb-msg"><i class="icon-remove"></i><strong>Attenzione! </strong> {{ flash_message|raw }}</div>
  48.                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  49.             </div>
  50.         {% endfor %}
  51.         {% block divHelp %}
  52.             <div id="divHelp" class="divHelp hide_print">
  53.                 <img id="helpImage" src="{{ asset ('images/graphics/logo_square.png')}}">
  54.                 <a href="javascript:closeHelp()"><i id="helpClose" class="icon-remove font_20 color_r"></i></a>
  55.                 <h5 id="helpTitle" class="uppercase m_b_10p b_b_pr"></h5>
  56.                 <div class="overflow_a max_h_170p"><p id="helpText" class="txt_a_j"></p></div>
  57.             </div>
  58.         {% endblock %}
  59.         {% block body %}
  60.             <div id="wrapper" class="clearfix">
  61.                 <div id="header-trigger" class="d-none d-lg-block"><i class="icon-line-menu"></i><i class="icon-line-cross"></i></div>
  62.                 {% block alarmButton %}{% endblock %}
  63.                 {# HEADER #}
  64.                 {% block header %}
  65.                     <header id="header" class="no-sticky bg_pr hide_print dark">
  66.                         <div id="header-wrap">
  67.                             <div class="container bg_pr">
  68.                                 <div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
  69.                                 <nav class="primary-menu on-click">
  70.                                     <ul class="menu-container">
  71.                                         {% block menu %}
  72.                                             {% if app.user %}
  73.                                                 {# AMMINISTRATORE #}
  74.                                                 {% if is_granted("ROLE_ADMIN") %}
  75.                                                     <li class="txt_a_c color_w">[Admin]</li>
  76.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_index') }}"><div>Scrivania</div></a></li>
  77.                                                     
  78.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_users_list') }}"><div>Utenti</div></a></li>
  79.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_notifications') }}"><div>Notifiche</div></a></li>
  80.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_select') }}"><div>Configura</div></a>
  81.                                                         <ul class="sub-menu-container bg_pr">
  82.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'tipo_documento'}) }}"><div>Tipi documento</div></a></li>
  83.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'tipo_dipartimento'}) }}"><div>Tipi dipartimento</div></a></li>
  84.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'categoria_spesa'}) }}"><div>Categoria spesa</div></a></li>
  85.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_reimbursment_type_list') }}"><div>Tipi spesa</div></a></li>
  86.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_configure_list', {'slug':'professione'}) }}"><div>Professioni</div></a></li>
  87.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_closure_list') }}"><div>Chiusure</div></a></li>
  88.                                                         </ul>
  89.                                                     </li>
  90.                                                     <li class="menu-item"><a class="menu-link color_w" href="#"><div>Listino</div></a>
  91.                                                         <ul class="sub-menu-container bg_pr">
  92.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_categories') }}"><div>Aree terapeutiche</div></a></li>
  93.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_product_groups') }}"><div>Molecole</div></a></li>
  94.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_product_products') }}"><div>Prodotti</div></a></li>
  95.                                                         </ul>
  96.                                                     </li>
  97.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_hospital_groups') }}"><div>Gruppi ospedalieri</div></a></li>
  98.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_hospitals') }}"><div>Enti fatturanti</div></a></li>
  99.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_tests_list') }}"><div>Questionari</div></a></li>
  100.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('admin_document_list') }}"><div>Documenti aziendali</div></a></li>
  101.                                                 {% else %}
  102.                                                     <li class="txt_a_c menu-item color_w">[{{ app.user.accountType.value }}]</li>
  103.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_index') }}"><div>Scrivania</div></a></li>
  104.                                                     <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Profilo</div></a>
  105.                                                         <ul class="sub-menu-container bg_pr">
  106.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_profile') }}"><div>I miei dati</div></a></li>
  107.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_documents_personal_list') }}"><div>Documenti personali</div></a></li>
  108.                                                             <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>
  109.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_tests_list') }}"><div>Questionari</div></a></li>
  110.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_document_list') }}"><div>Documenti aziendali</div></a></li>
  111.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path('user_products_list') }}"><div>Listino</div></a></li>
  112.                                                         </ul>
  113.                                                     </li>
  114.                                                     
  115.                                                     {% if app.user.accountType.slug != 'supervisor_mario' and app.user.accountType.level < 4 %}
  116.                                                         <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione attività</div></a>
  117.                                                             <ul class="sub-menu-container bg_pr">
  118.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_presence_list') }}"><div>Presenze</div></a></li>
  119.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_request_holiday_list') }}"><div>Richiesta ferie</div></a></li>
  120.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_reimbursment_month_list') }}"><div>Nota spese</div></a></li>
  121.                                                                 {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
  122.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_races_list') }}"><div>Gare</div></a></li>
  123.                                                                 {% endif %}
  124.                                                                 {% if app.user.accountType.slug == "kam" %}
  125.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_activity_month_list') }}"><div>Attività</div></a></li>
  126.                                                                 {% endif %}
  127.                                                                 {% if app.user.accountType.slug == 'supervisor_enrico' or 'commercial' in app.user.accountType.slug %}
  128.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_offer_requests_list') }}"><div>RDO</div></a></li>
  129.                                                                 {% endif %}
  130.                                                                 {% if app.user.accountType.slug == 'supervisor_enrico' or 'commercial' in app.user.accountType.slug or app.user.accountType.slug == 'kam' %}
  131.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_offers_list') }}"><div>Offerte</div></a></li>
  132.                                                                 {% endif %}
  133.                                                                  {% if app.user.accountType.level == 1 %}
  134.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_edit_request_list') }}"><div>Richieste modifica</div></a></li>
  135.                                                                 {% endif %}
  136.                                                             </ul>
  137.                                                         </li>
  138.                                                     {% endif %}
  139.                                                     {# LIV. 1 --- SUPERVISORI #}
  140.                                                     {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
  141.                                                         <li class="menu-item"><a class="menu-link color_w" href="#"><div>Gestione listino</div></a>
  142.                                                             <ul class="sub-menu-container bg_pr">
  143.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_categories') }}"><div>Aree terapeutiche</div></a></li>
  144.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_product_groups') }}"><div>Molecole</div></a></li>
  145.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_product_products') }}"><div>Prodotti</div></a></li>
  146.                                                             </ul>
  147.                                                         </li>
  148.                                                     {% endif %}
  149.                                                     {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug or app.user.accountType.slug == 'kam'%}
  150.                                                         <li class="menu-item"><a class="menu-link color_w" href="#"><div>Gestione strutture</div></a>
  151.                                                             <ul class="sub-menu-container bg_pr">
  152.                                                                 {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
  153.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_hospital_groups') }}"><div>Gruppi ospedalieri</div></a></li>
  154.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_hospitals') }}"><div>Enti fatturanti</div></a></li>
  155.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_department_types') }}"><div>Tipi dipartimento</div></a></li>
  156.                                                                 {% endif %}
  157.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_facilities') }}"><div>Strutture sanitarie</div></a></li>
  158.                                                                 {% if app.user.accountType.slug == 'kam' %}
  159.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('test_facility_select') }}"><div>Questionario strutture</div></a></li>
  160.                                                                 {% endif %}
  161.                                                                 {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
  162.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_competitors') }}"><div>Concorrenti</div></a></li>
  163.                                                                 {% endif %}
  164.                                                             </ul>
  165.                                                         </li>
  166.                                                     {% endif %}
  167.                                                     {% if app.user.accountType.level == 1 or 'commercial' in app.user.accountType.slug %}
  168.                                                         <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione vendite</div></a>
  169.                                                             <ul class="sub-menu-container bg_pr">
  170.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sell_import') }}"><div>Importa vendite</div></a></li>
  171.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sells') }}"><div>Elenco vendite</div></a></li>
  172.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_sells_not_binded') }}"><div>Elenco non abbinati</div></a></li>
  173.                                                             </ul>
  174.                                                         </li>
  175.                                                     {% endif %}
  176.                                                     {% if app.user.accountType.level == 1 %}
  177.                                                         <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione budget</div></a>
  178.                                                             <ul class="sub-menu-container bg_pr">
  179.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_totals') }}"><div>Budget totale</div></a></li>
  180.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_kams') }}"><div>Budget per KAM</div></a></li>
  181.                                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_budget_products') }}"><div>Budget per prodotto</div></a></li>
  182.                                                             </ul>
  183.                                                         </li>
  184.                                                     {% endif %}
  185.                                                     {% if app.user.accountType.level == 1 or app.user.accountType.slug == 'administration' or app.user.accountType.slug == 'kam' %}
  186.                                                         <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Gestione utenti</div></a>
  187.                                                             <ul class="sub-menu-container bg_pr">
  188.                                                                 {% if app.user.accountType.level == 1 or app.user.accountType.slug == 'administration'%}
  189.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_employee_list') }}"><div>Dipendenti</div></a></li>
  190.                                                                 {% endif %}
  191.                                                                 {% if app.user.accountType.level == 1 or app.user.accountType.slug == 'kam' %}
  192.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_external_list') }}"><div>Esterni</div></a></li>
  193.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_referent_list') }}"><div>Referenti</div></a></li>
  194.                                                                 {% endif %}
  195.                                                             </ul>
  196.                                                         </li>
  197.                                                     {% endif %}
  198.                                                     {% if app.user.accountType.level == 1 or app.user.accountType.slug == "kam" or 'commercial' in app.user.accountType.slug %}
  199.                                                         <li class="menu-item sub-menu"><a class="menu-link color_w" href="#"><div>Statistiche</div></a>
  200.                                                             <ul class="sub-menu-container bg_pr">
  201.                                                                 {% if app.user.accountType.slug == "supervisor_enrico" or app.user.accountType.slug == "kam" %}
  202.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_personal') }}"><div>Personali</div></a></li>
  203.                                                                 {% endif %}
  204.                                                                 {% if app.user.accountType.level == 1 %}
  205.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_tests') }}"><div>Questionari</div></a></li>
  206.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_employees') }}"><div>Dipendenti</div></a></li>
  207.                                                                 {% endif %}
  208.                                                                 {% if app.user.accountType.level == 1 or app.user.accountType.slug == "kam" or 'commercial' in app.user.accountType.slug %}
  209.                                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path ('user_stats_sells') }}"><div>Vendite</div></a></li>
  210.                                                                 {% endif %}
  211.                                                             </ul>
  212.                                                         </li>
  213.                                                     {% endif %}
  214.                                                 {% endif %}
  215.                                                 {% if not is_granted('ROLE_ADMIN') %}
  216.                                                     <li class="menu-item"><a class="menu-link color_w" href="{{ path('user_version') }}"><div>Info versione</div></a></li>
  217.                                                 {% endif %}
  218.                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path('logout') }}"><div>Logout</div></a></li>
  219.                                             {% else %}
  220.                                                 <li class="menu-item"><a class="menu-link color_w" href="{{ path('homepage') }}"><div>Accedi</div></a></li>
  221.                                                 <li class="menu-item"><a class="menu-link color_w" href="https://tillomed.it/it/" target="_blank"><div>L'Azienda</div></a></li>
  222.                                             {% endif %}
  223.                                         {% endblock %}
  224.                                     </ul>
  225.                                 </nav>
  226.                             </div>
  227.                         </div>
  228.                     </header>
  229.                 {% endblock %}
  230.                 {# CONTENT #}
  231.                 {% block content %}
  232.                 {% endblock %}
  233.                 {% block modals %}
  234.                 {% endblock %}
  235.                 {# FOOTER #}        
  236.                 {% block footer %}
  237.                     <footer id="footer" class="bg_pr">
  238.                         <div class="container clearfix m_t_40p">
  239.                             <div class="row">
  240.                                 <div class="col-12 col-md-8">
  241.                                     <p class="footer_responsive">
  242.                                         <span class="font_20 f_w_b">TILLOMED ITALIA Srl</span><br>
  243.                                         Viale Giulio Richard 1/A, 20143 Milano (MI)<br>
  244.                                         C.F. - P.IVA: 097 507 109 65<br>
  245.                                         PEC: <a href=\"mailto:tillomeditalia@legalmail.it\">tillomeditalia@legalmail.it</a><br>
  246.                                         Ufficio del Registro di Iscrizione: CCIAA di Milano – Monza e Brianza – Lodi<br>
  247.                                         Rea: MI-21111242<br>
  248.                                         Capitale sociale: 30.000 €
  249.                                     </p>
  250.                                 </div>
  251.                                 <div class="col-12 col-md-4">
  252.                                     <p class="footer_responsive txt_a_r m_b_none">
  253.                                         <a href="https://tillomed.it/it/privacy">Privacy</a><br>
  254.                                         <a href="https://tillomed.it/it/cookie">Normativa sui cookie</a><br>
  255.                                         <a target="_blank" href="https://tillomed.it/documents/termini_e_condizioni.pdf">Termini e condizioni</a>
  256.                                     </p>
  257.                                 </div>
  258.                             </div>
  259.                         </div>
  260.                     </footer>
  261.                 {% endblock %}
  262.             </div>
  263.         {% endblock %}
  264.         {% block javascripts %}
  265.             <script type="text/javascript" src="{{ asset ('js/jquery.js') }}"></script>
  266.             <script type="text/javascript" src="{{ asset ('js/plugins.min.js') }}"></script>
  267.             <script type="text/javascript" src="{{ asset ('js/functions.js') }}"></script>
  268.             <script type="text/javascript" src="{{ asset ('js/utilities_2022_04_21.js') }}"></script>
  269.             <script type="text/javascript" src="{{ asset ('js/components/moment.js') }}"></script>
  270.             <script type="text/javascript" src="{{ asset ('js/components/datepicker.js') }}"></script>
  271.             <script type="text/javascript" src="{{ asset ('js/components/timepicker.js') }}"></script>
  272.             <script type="text/javascript" src="{{ asset ('js/components/daterangepicker.js') }}"></script>
  273.             {# HELP #}
  274.             <script>
  275.                 function divHelp(slug){
  276.                     $.post('{{ path ("help") }}', {slug: slug}, function(response){ 
  277.                         if(response.code == 100 && response.success){
  278.                             document.getElementById('divHelp').style.visibility = "visible";
  279.                             document.getElementById('helpClose').style.visibility = "visible";
  280.                             document.getElementById('helpImage').style.visibility = "visible";
  281.                             document.getElementById('helpTitle').innerHTML = response.title;
  282.                             document.getElementById('helpText').innerHTML = response.text;
  283.                             $("#helpButton").modal('show');
  284.                         }
  285.                     }, "json");
  286.                 }
  287.                 function closeHelp(){
  288.                     document.getElementById('divHelp').style.visibility = "hidden";
  289.                     document.getElementById('helpClose').style.visibility = "hidden";
  290.                     document.getElementById('helpImage').style.visibility = "hidden";
  291.                 }
  292.                 $(function(){
  293.                     $('[data-toggle="tooltip"]').tooltip();
  294.                 });
  295.             </script>
  296.         {% endblock %}
  297.     </body>
  298. </html>