templates/base.html.twig line 1

Open in your IDE?
  1. {# Symfony Version 5.4 #}
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <!DOCTYPE html>
  4. <html lang="it">
  5.     <head>
  6.         <meta contentType="text/html" />
  7.         <meta charset="UTF-8" />
  8.         <meta http-equiv="content-language" content="it">
  9.         <meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
  10.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11.         <title>Filoscafo - {% block title %}Homepage{% endblock %}</title>
  12.         {% block stylesheets %}
  13.             <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" />
  14.             <link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  15.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/bootstrap.css') }}" />
  16.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/style.css') }}" />
  17.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/dark.css') }}" />
  18.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/font-icons.css') }}" />
  19.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/animate.css') }}" />
  20.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/magnific-popup.css') }}" />
  21.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/calendar.css') }}" />
  22.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/timepicker.css') }}" />
  23.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/datepicker.css') }}" />
  24.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/daterangepicker.css') }}" />
  25.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/bs-switches.css') }}" />
  26.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/components/bs-filestyle.css') }}" />
  27.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/richtext.min.css') }}" />
  28.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2024_04_04/classes.css') }}" />
  29.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2024_04_04/custom.css') }}" />
  30.             <link rel="stylesheet" type="text/css" href="{{ asset ('css/personal_2024_04_04/themeOverride.css') }}" />
  31.             {# Colors #}
  32.             {# Primary: #333 #}
  33.             {# Secondary: #777 #}
  34.             {# Tertiary: #ddd #}
  35.             {% block printStylesheet %}{% endblock %}
  36.             {% block revoSliderCss %}{% endblock %}
  37.         {% endblock %}
  38.         <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
  39.         {% block recaptcha %}{% endblock %}
  40.     </head>
  41.     <body id="body" class="stretched">
  42.         {% set menuExternal = true %}
  43.         {% if (app.request.attributes.get('_route') matches '{^dealer_*}') or (app.request.attributes.get('_route') matches '{^agency_*}') or (app.request.attributes.get('_route') matches '{^user_*}') or (app.request.attributes.get('_route') matches '{^admin_*}') %}
  44.             {% set menuExternal = false %}
  45.         {% endif %}
  46.         {% for flash_message in app.session.flashbag.get('notice_success') %}
  47.             <div class="alert alert-dismissible alert-success notice">
  48.                 <i class="icon-thumbs-up"></i><strong>{% trans from "website" %}base_flash_msg_01{% endtrans %} </strong> {{ flash_message|raw }}
  49.                 <button type="button" class="btn-close btn-sm" data-bs-dismiss="alert" aria-hidden="true"></button>
  50.             </div>
  51.         {% endfor %}
  52.         {% for flash_message in app.session.flashbag.get('notice_info') %}
  53.             <div class="alert alert-dismissible alert-info notice">
  54.                 <i class="icon-warning-sign"></i><strong>{% trans from "website" %}base_flash_msg_02{% endtrans %} </strong> {{ flash_message|raw }}
  55.                 <button type="button" class="btn-close btn-sm" data-bs-dismiss="alert" aria-hidden="true"></button>
  56.             </div>
  57.         {% endfor %}
  58.         
  59.         {% for flash_message in app.session.flashbag.get('notice_warning') %}
  60.             <div class="alert alert-dismissible alert-warning notice">
  61.                 <i class="icon-warning-sign"></i><strong>{% trans from "website" %}base_flash_msg_03{% endtrans %}</strong> {{ flash_message|raw }}
  62.                 <button type="button" class="btn-close btn-sm" data-bs-dismiss="alert" aria-hidden="true"></button>
  63.             </div>
  64.         {% endfor %}
  65.         {% for flash_message in app.session.flashbag.get('notice_danger') %}
  66.             <div class="alert alert-dismissible alert-danger notice">
  67.                 <i class="icon-remove"></i><strong>{% trans from "website" %}base_flash_msg_04{% endtrans %}</strong> {{ flash_message|raw }}
  68.                 <button type="button" class="btn-close btn-sm" data-bs-dismiss="alert" aria-hidden="true"></button>
  69.             </div>
  70.         {% endfor %}
  71.         {# Cookie Modal #}
  72.         <div id="modalCookie" class="modal fade" tabindex="-1" role="dialog">
  73.             <div class="modal-dialog modal-md" role="document">
  74.                 <div class="modal-content">
  75.                     <div class="modal-header"><h4 class="modal-title text-uppercase txt_a_c">{% trans from "website" %}cookie_modal_01{% endtrans %}</h4></div>
  76.                     <div class="modal-body">
  77.                         <div class="row">
  78.                             <div class="col-12 switch">
  79.                                 <label>{% trans from "website" %}cookie_modal_02{% endtrans %}</label>
  80.                                 <p class="font_14 m_b_10p txt_a_j">{% trans from "website" %}cookie_modal_03{% endtrans %} <a href='{{ path ("cookies" ) }}'>{% trans from "website" %}cookie_modal_04{% endtrans %}</a> {% trans from "website" %}cookie_modal_05{% endtrans %}</p>
  81.                                 <label>{% trans from "website" %}cookie_modal_06{% endtrans %}</label>
  82.                                 <div class="toggle toggle-border bg_f8 m_b_5p">
  83.                                     <div class="toggle-header font_12">
  84.                                         <div class="toggle-icon"><i class="toggle-closed icon-plus"></i><i class="toggle-open icon-minus"></i></div>
  85.                                         <div class="toggle-title">{% trans from "website" %}cookie_modal_07{% endtrans %}<span class="f_right color_888">{% trans from "website" %}cookie_modal_08{% endtrans %}</span></div>
  86.                                     </div>
  87.                                     <div class="toggle-content font_12 txt_a_j">{% trans from "website" %}cookie_modal_09{% endtrans %}</div>
  88.                                 </div>
  89.                                 <div class="toggle toggle-border bg_f8 m_b_5p">
  90.                                     <div class="toggle-header font_12">
  91.                                         <div class="toggle-icon"><i class="toggle-closed icon-plus"></i><i class="toggle-open icon-minus"></i></div>
  92.                                         <div class="toggle-title">{% trans from "website" %}cookie_modal_10{% endtrans %}</div>
  93.                                     </div>
  94.                                     <div class="toggle-content font_12 txt_a_j">{% trans from "website" %}cookie_modal_11{% endtrans %}</div>
  95.                                 </div>
  96.                             </div>
  97.                         </div>
  98.                     </div>
  99.                     <div class="modal-footer txt_a_c" style="display: flow-root">
  100.                         <a href="{{ path ('cookie_accept') }}" class="button button-3d button-mini button-green" style="width: 100%">{% trans from "website" %}cookie_modal_12{% endtrans %}</a>
  101.                         <a href="{{ path ('cookie_deny') }}" class="button button-3d button-mini button-red" style="width: 100%">{% trans from "website" %}cookie_modal_13{% endtrans %}</a>
  102.                     </div>
  103.                 </div>
  104.             </div>
  105.         </div>
  106.         {% block body %}
  107.             {% block headJavascripts %}{% endblock %}
  108.             <div id="wrapper" class="clearfix">
  109.                 <div id="divContent">
  110.                     {# HEADER #}
  111.                     {% block header %}
  112.                         <header id="header" class="full-header dark header-size-sm hide_print" style="max-height: 60px">
  113.                             <div id="header-wrap" class="bg_pr" style="z-index: 10; min-height: 60px">
  114.                                 <div class="container">
  115.                                     <div class="header-row">
  116.                                         {% if app.user is null %}
  117.                                             {% set homePath = "homepage" %}
  118.                                         {% elseif is_granted('ROLE_ADMIN') %}
  119.                                             {% set homePath = "admin_index" %}
  120.                                         {% elseif is_granted('ROLE_USER') %}
  121.                                             {% set homePath = "user_index" %}
  122.                                         {% endif %}
  123.                                         <div id="logo">
  124.                                             <a href="{{ path (homePath) }}" class="standard-logo" data-dark-logo="{{ asset (asset_graphics ~ '/logo.png') }}"><img src="{{ asset (asset_graphics ~ '/logo.png') }}" alt="Filoscafo"  style="padding: 5px"></a>
  125.                                         </div>
  126.                                         <div id="primary-menu-trigger">
  127.                                             <svg class="svg-trigger" viewBox="0 0 100 100"><path d="m 30,33 h 40 c 3.722839,0 7.5,3.126468 7.5,8.578427 0,5.451959 -2.727029,8.421573 -7.5,8.421573 h -20"></path><path d="m 30,50 h 40"></path><path d="m 70,67 h -40 c 0,0 -7.5,-0.802118 -7.5,-8.365747 0,-7.563629 7.5,-8.634253 7.5,-8.634253 h 20"></path></svg>
  128.                                         </div>
  129.                                         <nav class="primary-menu" {#% if menuExternal %}class="with-arrows clearfix"{% endif %#}>
  130.                                             <ul class="menu-container">
  131.                                                 {% block firstAccess %}
  132.                                                     {% if app.user != null and app.user.role == 'ROLE_USER' and app.request.attributes.get('_route') matches '{^agency_*}' %}
  133.                                                         <li class="menu-item">
  134.                                                             {% if agency is defined and agency.canReserve %}
  135.                                                                 <a class="menu-link" href="{{ path ('agency_holidays', {'agencyId':agency.id}) }}"><div>{% trans from "website" %}base_menu_13{% endtrans %}</div></a></li>
  136.                                                             {% else %}
  137.                                                                 <a class="menu-link" href="javascript: void(0)" data-bs-toggle="tooltip" title="{% trans from "website" %}base_menu_14{% endtrans %}"><div>{% trans from "website" %}base_menu_13{% endtrans %}</div></a></li>
  138.                                                             {% endif %}
  139.                                                         <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  140.                                                     {% endif %}
  141.                                                 {% endblock %}
  142.                                                 
  143.                                                 {% block menu %}
  144.                                                     <li class="menu-item"><a class="menu-link" href="{{ path ('homepage') }}"><div>{% trans from "website" %}base_menu_01{% endtrans %}</div></a></li>
  145.                                                     {#<li class="menu-item"><a class="menu-link" href="{{ path ('who') }}"><div>{% trans from "website" %}base_menu_02{% endtrans %}</div></a></li>#}
  146.                                                     {#<li class="menu-item"><a class="menu-link" href="{{ path ('bases') }}"><div>{% trans from "website" %}base_menu_03{% endtrans %}</div></a></li>#}
  147.                                                     {#<li class="menu-item"><a class="menu-link" href="{{ path ('boats') }}"><div>{% trans from "website" %}base_menu_04{% endtrans %}</div></a></li>#}
  148.                                                     {#<li class="menu-item"><a class="menu-link" href="{{ path ('contacts') }}"><div>{% trans from "website" %}base_menu_05{% endtrans %}</div></a></li>#}
  149.                                                     {% if app.user != null and app.user.role == 'ROLE_USER' and agency.isFirstAccess == false %}
  150.                                                         <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  151.                                                         <li class="menu-item"><a class="menu-link" href="{{ path ('agency_holidays', {'agencyId':agency.id}) }}"><div>{% trans from "website" %}base_menu_06{% endtrans %}</div></a></li>
  152.                                                     {% endif %}
  153.                                                 {% endblock %}
  154.                                                 {% if app.user == null %}
  155.                                                     {# NOT LOGGED #}
  156.                                                     <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  157.                                                     <li class="menu-item"><a class="menu-link" href="{{ path ('homepage') }}"><div>{% trans from "website" %}base_menu_07{% endtrans %}</div></a></li>
  158.                                                 {% else %}
  159.                                                     {# LOGGED #}
  160.                                                     {% if app.user.role == 'ROLE_ADMIN' %}
  161.                                                         {# ADMINISTRATOR #}
  162.                                                         {% if app.request.attributes.get('_route') matches '{^admin_*}' %}
  163.                                                             {# ADMIN #}
  164.                                                             <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  165.                                                             <li class="menu-item"><a class="menu-link" href="{{ path ('logout') }}"><div>{% trans from "website" %}base_menu_10{% endtrans %}</div></a></li>
  166.                                                         {% else %}
  167.                                                             {# EXTERNAL #}
  168.                                                             <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  169.                                                             <li class="menu-item"><a class="menu-link" href="{{ path ('admin_index') }}"><div>{% trans from "website" %}base_menu_11{% endtrans %}</div></a></li>
  170.                                                         {% endif %}
  171.                                                     {% elseif app.user.role == 'ROLE_USER' %}
  172.                                                         {# USER #}
  173.                                                         {% if app.request.attributes.get('_route') matches '{^dealer_*}' or app.request.attributes.get('_route') matches '{^agency_*}' %}
  174.                                                             <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  175.                                                         {% endif %}
  176.                                                         {% if app.request.attributes.get('_route') matches '{^dealer_*}' or app.request.attributes.get('_route') matches '{^agency_*}' or app.request.attributes.get('_route') matches '{^user_*}' %}
  177.                                                             <li class="menu-item">
  178.                                                                 <a class="menu-link" href="javascript: void(0)">{% if app.request.attributes.get('_route') matches '{^dealer_*}' %}{{ dealer }}{% elseif app.request.attributes.get('_route') matches '{^agency_*}' %}{{ agency }}{% elseif app.request.attributes.get('_route') matches '{^user_*}' %}{{ app.user }}{% endif %}</a>
  179.                                                                 <ul class="sub-menu-container bg_pr">
  180.                                                                     {% if 'user_select' in app.request.attributes.get('_route') %}
  181.                                                                     {% else %}
  182.                                                                     <li class="menu-item"><a class="menu-link" href="{{ path ('user_select') }}"><div>{% trans from "website" %}base_menu_09{% endtrans %}</div></a></li>
  183.                                                                     {% endif %}
  184.                                                                     <li class="menu-item"><a class="menu-link" href="{{ path ('logout') }}"><div>{% trans from "website" %}base_menu_10{% endtrans %}</div></a></li>
  185.                                                                 </ul>
  186.                                                             </li>
  187.                                                         {% else %}
  188.                                                             {# EXTERNAL #}
  189.                                                             <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  190.                                                             <li class="menu-item"><a class="menu-link" href="{{ path ('user_select') }}"><div>{% trans from "website" %}base_menu_12{% endtrans %}</div></a></li>
  191.                                                         {% endif %}
  192.                                                     {% endif %}
  193.                                                 {% endif %}
  194.                                                 <li class="menu-item"><a class="menu-link menu_separator" href="javascript: void(0)"><div></div></a></li>
  195.                                                 {% if app.request.locale == "it" %}
  196.                                                     <li class="menu-item">
  197.                                                         <a class="menu-link" href="{{ path (app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'it'})) }}"><img width="20" src="{{ asset (asset_graphics ~ '/flags/it.png') }}" alt="Italiano"></a>
  198.                                                         <ul class="sub-menu-container bg_pr">
  199.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}"><img width="20" class="m_r_5p" src="{{ asset(asset_graphics ~ '/flags/en.png') }}" alt="English">English</a></li>
  200.                                                         </ul>
  201.                                                     </li>
  202.                                                 {% endif %}
  203.                                                 {% if app.request.locale == "en" %}
  204.                                                     <li class="menu-item">
  205.                                                         <a class="menu-link" href="{{ path (app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}"><img width="20" src="{{ asset (asset_graphics ~ '/flags/en.png') }}" alt="English"></a>
  206.                                                         <ul class="sub-menu-container bg_pr">
  207.                                                             <li class="menu-item"><a class="menu-link color_w" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'it'})) }}"><img width="20" class="m_r_5p" src="{{ asset(asset_graphics ~ '/flags/it.png') }}" alt="Italiano">Italiano</a></li>
  208.                                                         </ul>
  209.                                                     </li>
  210.                                                 {% endif %}
  211.                                             </ul>
  212.                                         </nav>
  213.                                     </div>
  214.                                 </div>
  215.                             </div>
  216.                             <div class="header-wrap-clone" style="max-height: 2px"></div>
  217.                         </header>
  218.                     {% endblock %}
  219.                     {% block pageTitle %}
  220.                         {% if menuExternal == false %}
  221.                             <section id="page-title" class="page-title-dark hide_print">
  222.                                 <div class="container">
  223.                                     <h1>{% block pageTitleH1 %}{% trans from "website" %}base_page_title_01{% endtrans %}{% endblock %}</h1>
  224.                                     <ol class="breadcrumb">
  225.                                         <li class="breadcrumb-item">
  226.                                             <a href="javascript:void(0)">
  227.                                                 {% if app.request.attributes.get('_route') matches '{^admin_*}' %}
  228.                                                     {% trans from "website" %}base_page_title_02{% endtrans %}
  229.                                                 {% else %}
  230.                                                     {% if app.request.attributes.get('_route') matches '{^dealer_*}' %}
  231.                                                         {% trans from "website" %}base_page_title_03{% endtrans %}
  232.                                                     {% elseif app.request.attributes.get('_route') matches '{^agency_*}' %}
  233.                                                         {{ agency.name }}
  234.                                                     {% endif %}
  235.                                                 {% endif %}
  236.                                             </a>
  237.                                         </li>
  238.                                         {% block pageTitleBreadcrumb %}
  239.                                         {% endblock %}
  240.                                     </ol>
  241.                                 </div>
  242.                             </section>
  243.                         {% endif %}
  244.                     {% endblock %}
  245.                     {% block subMenu %}
  246.                         {% if menuExternal == false %}
  247.                             <section>
  248.                                 <nav class="navbar navbar-expand-lg navbar-dark bg_pr hide_print">
  249.                                     <div class="container">
  250.                                         <div class="collapse navbar-collapse" id="navbarSupportedContent">
  251.                                             <ul class="navbar-nav me-auto">
  252.                                                 {% block subMenuLeft %}
  253.                                                 {% endblock %}
  254.                                             </ul>
  255.                                             <ul class="navbar-nav f_right">
  256.                                                 {% block subMenuRight %}<li class="nav-item"><a class="nav-link" href="javascript: void(0)"></a></li>{% endblock %}
  257.                                             </ul>
  258.                                         </div>
  259.                                     </div>
  260.                                 </nav>
  261.                             </section>
  262.                         {% endif %}
  263.                     {% endblock %}
  264.                     {# SLIDER #}
  265.                     {% block slider %}
  266.                     {% endblock %}
  267.                     {# CONTENT #}
  268.                     {% block content %}
  269.                     {% endblock %}
  270.                     {# FOOTER #}
  271.                     {% block footer %}
  272.                         <footer id="footer" class="dark bg_pr notopborder">
  273.                             <div class="container">
  274.                                 <div class="footer-widgets-wrap clearfix">
  275.                                     <div class="row clearfix">
  276.                                         <div class="col-12 col-md-4">
  277.                                             <h4 class="m_b_10p">Filoscafo</h4>
  278.                                             <div class="row">
  279.                                                 <div class="col-12">
  280.                                                     <p class="m_b_10p color_w"><i class="icon-map-marker1 font_20 m_r_10p"></i> <span class="v_a_tb">{% trans from "website" %}footer_01{% endtrans %}</span></p>
  281.                                                     <p class="m_b_10p color_w"><i class="icon-phone3 font_20 m_r_10p"></i> <span class="v_a_tb">(+39) 348 9121397</span></p>
  282.                                                     <p class="m_b_10p color_w"><i class="icon-envelope font_20 m_r_10p"></i> <a class="color_w v_a_tb" href="mailto:info@filoscafo.com">info@filoscafo.com</a></p>
  283.                                                     <p class="m_b_none color_w"><i class="icon-globe1 font_20 m_r_10p"></i> <a class="color_w v_a_tb" href="https://www.filoscafo.com" target="_blank">www.filoscafo.com</a></p>
  284.                                                 </div>
  285.                                             </div>
  286.                                         </div>
  287.                                         <div class="col-12 col-md-4">
  288.                                             <h4 class="m_b_10p">{% trans from "website" %}footer_02{% endtrans %}</h4>
  289.                                             <a class="color_dg" href="https://www.rpgmultimedia.it" target="_blank"><p class="m_b_10p"><img width="50" src="{{ asset ('images/graphics/rpg-logo.png') }}" alt="R.P.G." class="m_r_10p">R.P.G. di Restelli Eliana E.</p></a>
  290.                                         </div>
  291.                                         <div class="col-12 col-md-4">
  292.                                             <h4 class="m_b_10p">{% trans from "website" %}footer_03{% endtrans %}</h4>
  293.                                             <div>
  294.                                                 <a href="#" class="social-icon si-rounded si-small si-colored si-facebook">
  295.                                                     <i class="icon-facebook"></i>
  296.                                                     <i class="icon-facebook"></i>
  297.                                                 </a>
  298.                                                 <a href="#" class="social-icon si-rounded si-small si-colored si-linkedin">
  299.                                                     <i class="icon-linkedin"></i>
  300.                                                     <i class="icon-linkedin"></i>
  301.                                                 </a>
  302.                                             </div>
  303.                                         </div>
  304.                                     </div>
  305.                                 </div>
  306.                             </div>
  307.                         </footer>
  308.                     {% endblock %}
  309.                     {% block divHelp %}
  310.                         <div id="divHelp" class="divHelp hide_print">
  311.                             <img id="helpImage" src="{{ asset (icon_help)}}">
  312.                             <a href="javascript:closeHelp()"><i id="helpClose" class="icon-times font_20 color_r"></i></a>
  313.                             <h4 id="helpTitle" class="uppercase m_b_10p b_b_pr"></h4>
  314.                             <div class="overflow_a max_h_170p"><p id="helpText" class="txt_a_j"></p></div>
  315.                         </div>
  316.                     {% endblock %}
  317.                 </div>
  318.                 {% block loading %}
  319.                     <div id="divProgress" class="m_t_80p well bg_dg col-10 offset-1 col-sm-8 offset-sm-2 col-md-6 offset-md-3 col-lg-4 offset-lg-4">
  320.                         <h1 class="color_w txt_a_c m_b_none">{% trans from "website" %}div_progress_msg{% endtrans %}</h1>
  321.                         <h3 class="color_w txt_a_c m_b_30p">{% trans from "website" %}div_progress_text{% endtrans %}</h3>
  322.                         <div class="progress">
  323.                             <div class="progress-bar active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100">
  324.                                 <span class="sr-only"></span>
  325.                             </div>
  326.                         </div>
  327.                     </div>
  328.                     <div class="clearfix"></div>
  329.                 {% endblock %}
  330.                 <div id="gotoTop" class="icon-angle-up"></div>
  331.             </div>
  332.         {% endblock %}
  333.         {% block javascripts %}
  334.             <script type="text/javascript" src="{{ asset ('js/jquery.js') }}"></script>
  335.             <script type="text/javascript" src="{{ asset ('js/plugins.js') }}"></script>
  336.             <script type="text/javascript" src="{{ asset ('js/functions.js') }}"></script>
  337.             <script type="text/javascript" src="{{ asset ('js/utilities.js') }}"></script>
  338.             <script type="text/javascript" src="{{ asset ('js/components/moment.js') }}"></script>
  339.             <script type="text/javascript" src="{{ asset ('js/components/datepicker-' ~ app.request.locale ~ '.js') }}"></script>
  340.             <script type="text/javascript" src="{{ asset ('js/components/daterangepicker.js') }}"></script>
  341.             <script type="text/javascript" src="{{ asset ('js/components/timepicker.js') }}"></script>
  342.             <script type="text/javascript" src="{{ asset ('js/components/bs-switches.js') }}"></script>
  343.             <script type="text/javascript" src="{{ asset ('js/components/bs-filestyle.js') }}"></script>
  344.             <script type="text/javascript" src="{{ asset ('js/jquery.richtext_2023_05_22.min.js') }}"></script>
  345.             {# HELP #}
  346.             <script>
  347.                 $(document).ready(function(){
  348.                     {% if not app.request.cookies.get('cookieconsent_dismissed') == "yes" %}
  349.                         setTimeout(modalCookie, 2500);
  350.                     {% endif %}
  351.                     
  352.                     {% if app.request.get("_route") == 'homepage' and app.session.get('section') != null %}
  353.                         document.getElementById("section_{{ app.session.get('section') }}").click();
  354.                     {% endif %}
  355.                     var franceDisp = document.getElementsByClassName('france_disp');
  356.                     var franceHide = document.getElementsByClassName('france_hide');
  357.                     if(typeof franceDisp != 'undefined'){
  358.                         {% if reservation is defined %}
  359.                             {% if reservation.baseStart.country.alpha2 == 'FR' %}
  360.                                 for(i=0; i<franceDisp.length; i++){
  361.                                     franceDisp[i].style.display = 'contents';
  362.                                     franceDisp[i].children[0].style = 'text-decoration:underline!important';
  363.                                 }
  364.                             {% else %}
  365.                                 for(i=0; i<franceDisp.length; i++)
  366.                                     franceDisp[i].style.display = 'none';
  367.                             {% endif %}
  368.                         {% endif %}
  369.                     }
  370.                     if(typeof franceHide != 'undefined'){
  371.                         {% if reservation is defined %}
  372.                             {% if reservation.baseStart.country.alpha2 == 'FR' %}
  373.                                 for(i=0; i<franceHide.length; i++)
  374.                                     franceHide[i].style.display = 'none';
  375.                             {% else %}
  376.                                 for(i=0; i<franceHide.length; i++)
  377.                                     franceHide[i].style.display = 'contents';
  378.                             {% endif %}
  379.                         {% endif %}
  380.                     }
  381.                     var caribbeanDisp = document.getElementsByClassName('caribbean_disp');
  382.                     var caribbeanHide = document.getElementsByClassName('caribbean_hide');
  383.                     if(typeof caribbeanDisp != 'undefined'){
  384.                         {% if reservation is defined %}
  385.                             {% if reservation.baseStart.country.alpha2 == 'CR' %}
  386.                                 for(i=0; i<caribbeanDisp.length; i++){
  387.                                     caribbeanDisp[i].style.display = 'contents';
  388.                                     caribbeanDisp[i].children[0].style = 'text-decoration:underline!important';
  389.                                 }
  390.                             {% else %}
  391.                                 for(i=0; i<caribbeanDisp.length; i++)
  392.                                     caribbeanDisp[i].style.display = 'none';
  393.                             {% endif %}
  394.                         {% endif %}
  395.                     }
  396.                     if(typeof caribbeanHide != 'undefined'){
  397.                         {% if reservation is defined %}
  398.                             {% if reservation.baseStart.country.alpha2 == 'CR' %}
  399.                                 for(i=0; i<caribbeanHide.length; i++)
  400.                                     caribbeanHide[i].style.display = 'none';
  401.                             {% else %}
  402.                                 for(i=0; i<caribbeanHide.length; i++)
  403.                                     caribbeanHide[i].style.display = 'contents';
  404.                             {% endif %}
  405.                         {% endif %}
  406.                     }
  407.                 });
  408.                 function divHelp(slug){
  409.                     $.post('{{ path ("help") }}', {slug: slug}, function(response){ 
  410.                         if(response.code == 200 && response.success){
  411.                             document.getElementById('divHelp').style.visibility = "visible";
  412.                             document.getElementById('helpClose').style.visibility = "visible";
  413.                             document.getElementById('helpImage').style.visibility = "visible";
  414.                             document.getElementById('helpTitle').innerHTML = response.title;
  415.                             document.getElementById('helpText').innerHTML = response.text;
  416.                             $("#helpButton").click();
  417.                         }
  418.                     }, "json");
  419.                 }
  420.                 function closeHelp(){
  421.                     document.getElementById('divHelp').style.visibility = "hidden";
  422.                     document.getElementById('helpClose').style.visibility = "hidden";
  423.                     document.getElementById('helpImage').style.visibility = "hidden";
  424.                 }
  425.                 function modalCookie(){
  426.                     $('#modalCookie').modal({backdrop: 'static', keyboard: false}).modal("show");
  427.                 }
  428.                 function showDivProgress(){
  429.                     document.getElementById("divContent").style.display = "none";
  430.                     document.getElementById("divProgress").style.display = "block";
  431.                 }
  432.             </script>
  433.         {% endblock %}
  434.     </body>
  435. </html>