templates/public/layout.html.twig line 135

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Bienvenue {{ interlocuteur is not null ? 'chez ' ~ interlocuteur.entreprise.nom : '' }}{% endblock %}
  3.     {% block body %}
  4.         {% set horizontalScreen = true %}
  5.         {% set theme = interlocuteur is not null and interlocuteur.entreprise is not null
  6.             ? interlocuteur.entreprise.theme
  7.             : 'lk1'
  8.         %}
  9.         {% if horizontalScreen %}
  10.             {% set orientationMobile = "horizontal-screen" %}
  11.         {% else %}
  12.             {% set orientationMobile = "vertical-screen" %}
  13.         {% endif %}
  14.         <div class="theme-{{ theme }}">
  15.             <div class="{{orientationMobile}}">
  16.             <div class="horizontal-content">
  17.                 {% block header %}
  18.                     {% if recap is not defined %}
  19.                         {% set recap = false %}
  20.                     {% endif %}
  21.                     <header class="header mobile">
  22.                         <div>
  23.                             <nav class="navbar navbar-expand-lg d-flex flex-nowrap align-items-center justify-content-between navbar-light bg-light py-0">
  24.                                 <div class="left-buttons d-flex position-relative">
  25.                                     <a href="{% if prospect %}{{ path('public_prospect_short', {token: prospect.token}) }}{% else %}{{ path('public_prospect_short', {token: app.session.get('propositions')[0].prospect.token }) }}{% endif %}{% if not app.user %}?mode=visitor{% endif %}" class="btn navbar-brand p-0 my-0 active-loading">
  26.                                         {% if interlocuteur and interlocuteur.entreprise and interlocuteur.entreprise.logo %}
  27.                                             <img src="{{ asset('uploads/entreprises_logos/' ~ interlocuteur.entreprise.logo) }}" class="py-2">
  28.                                         {% else %}
  29.                                             <img src="{{ asset("build/images/zada_logo_large.png") }}" class="py-2">
  30.                                         {% endif %}
  31.                                     </a>
  32.                                     {% block dropdownLotsNav %}
  33.                                     {% endblock %}
  34.                                     {% if not recap %}
  35.                                         <div class="dropdown recap opacity-0 lot-1">
  36.                                             <span class="before"></span>
  37.                                             <a class="btn navbar-lot-menu d-flex align-items-center " href="{{ path('public_prospect_short', {token: prospect.token, recap: true}) }}">
  38.                                                 <span class="text-center">
  39.                                                     RECAP'
  40.                                                 </span>
  41.                                             </a>
  42.                                             <span class="after"></span>
  43.                                         </div>
  44.                                     {% endif %}
  45.                                 </div>
  46.                                 <div>
  47.                                     {% if not recap %}
  48.                                         <h2 class="slide-title mb-0 text-center">Bonjour {{prospect.emprunteurPrenom|upper}}
  49.                                             {% if prospect.emprunteurNom and prospect.afficherNomEmprunteur %}
  50.                                                 {{prospect.emprunteurNom|upper}}
  51.                                             {% endif %}
  52.                                             {% if prospect.coemprunteurPrenom %}
  53.                                                 et {{prospect.coemprunteurPrenom|upper}}
  54.                                                 {% if prospect.coemprunteurNom and prospect.afficherNomCoEmprunteur %}
  55.                                                     {{prospect.coemprunteurNom|upper}}
  56.                                                 {% endif %}
  57.                                             {% endif %}
  58.                                         </h2>
  59.                                     {% else %}
  60.                                         <h2 class="slide-title mb-0 text-center">MA SELECTION - RECAP'</h2>
  61.                                     {% endif %}
  62.                                 </div>
  63.                                 <div class="header-buttons d-flex text-white demande-rdv">
  64.                                     <div style="height: 100%">
  65.                                         <div class="row justify-content-center text-uppercase">
  66.                                             <div class="col-12 text-center">
  67.                                                 <span class="text-golden">MON INTERLOCUTEUR</span>
  68.                                             </div>
  69.                                         </div>
  70.                                         {% if interlocuteur is not null %}
  71.                                             <div class="row justify-content-center flex-nowrap overflow-hidden">
  72.                                                 {% if interlocuteur.prenom is not empty or interlocuteur.nom is not empty %}
  73.                                                     <div class="col-md-6 text-center" style="width: fit-content;">
  74.                                                         <span class="text-golden">
  75.                                                             <span class="text-capitalize">{{ interlocuteur.prenom }}</span> <span class="text-uppercase">{{ interlocuteur.nom }}</span>
  76.                                                         </span>
  77.                                                     </div>
  78.                                                 {% endif %}
  79.                                                 
  80.                                                 {% if interlocuteur.telephone is not empty %}
  81.                                                     <div class="col-md-6 text-center" style="width: fit-content;">
  82.                                                     {% set numero = interlocuteur.telephone | replace({' ': '', '-': '', '+33': '0'}) %}
  83.                                                     {% set numero_formate = numero|slice(0, 2) ~ '.' ~ numero|slice(2, 2) ~ '.' ~ numero|slice(4, 2) ~ '.' ~ numero|slice(6, 2) ~ '.' ~ numero|slice(8, 2) %}
  84.                                                         <a class="text-golden" href="tel:{{ numero_formate }}">
  85.                                                             {{ numero_formate|join('.') }}
  86.                                                         </a>
  87.                                                     </div>
  88.                                                 {% endif %}
  89.                                             </div>
  90.                                             {% if interlocuteur.email is not empty %}
  91.                                                 <div class="row justify-content-center">
  92.                                                     <div class="col-12 text-center">
  93.                                                         <a class="text-golden" href="mailto:{{ interlocuteur.email }}">{{ interlocuteur.email }}</a>
  94.                                                     </div>
  95.                                                 </div>
  96.                                             {% endif %}
  97.                                         {% elseif app.user %}
  98.                                             <div class="row justify-content-center flex-nowrap overflow-hidden">
  99.                                                 {% if app.user.prenom is not empty or app.user.nom is not empty %}
  100.                                                     <div class="col-md-6 text-center" style="width: fit-content;">
  101.                                                         <span class="text-golden">
  102.                                                             <span class="text-capitalize">{{ app.user.prenom }}</span> <span class="text-uppercase">{{ app.user.nom }}</span>
  103.                                                         </span>
  104.                                                     </div>
  105.                                                 {% endif %}
  106.                                                 {% if app.user.telephone is not empty %}
  107.                                                     <div class="col-md-6 text-center" style="width: fit-content;">
  108.                                                     {% set numero = app.user.telephone | replace({' ': '', '-': '', '+33': '0'}) %}
  109.                                                     {% set numero_formate = numero|slice(0, 2) ~ '.' ~ numero|slice(2, 2) ~ '.' ~ numero|slice(4, 2) ~ '.' ~ numero|slice(6, 2) ~ '.' ~ numero|slice(8, 2) %}
  110.                                                         <a class="text-golden" href="tel:{{ numero_formate }}">
  111.                                                             {{ numero_formate|join('.') }}
  112.                                                         </a>
  113.                                                     </div>
  114.                                                 {% endif %}
  115.                                             </div>
  116.                                             {% if app.user.email is not empty %}
  117.                                                 <div class="row justify-content-center">
  118.                                                     <div class="col-12 text-center">
  119.                                                         <a class="text-golden" href="mailto:{{ app.user.email }}">{{ app.user.email }}</a>
  120.                                                     </div>
  121.                                                 </div>
  122.                                             {% endif %}
  123.                                         {% else %}
  124.                                             <div class="row justify-content-center flex-nowrap overflow-hidden">
  125.                                                 <div class="col-md-6 text-center" style="width: fit-content;">
  126.                                                     <span class="text-golden">
  127.                                                         <span class="text-capitalize">{{ interlocuteur.entreprise.nom }}</span>
  128.                                                     </span>
  129.                                                 </div>
  130.                                                 <div class="col-md-6 text-center" style="width: fit-content;">
  131.                                                     {% if interlocuteur.entreprise.telephone is not empty %}
  132.                                                         {% set numero = interlocuteur.entreprise.telephone | replace({' ': '', '-': '', '+33': '0'}) %}
  133.                                                         {% set numero_formate = numero|slice(0, 2) ~ '.' ~ numero|slice(2, 2) ~ '.' ~ numero|slice(4, 2) ~ '.' ~ numero|slice(6, 2) ~ '.' ~ numero|slice(8, 2) %}
  134.                                                         <a class="text-golden" href="tel:{{ numero_formate }}">
  135.                                                             {{ numero_formate|join('.') }}
  136.                                                         </a>
  137.                                                     {% else %}
  138.                                                         <a class="text-golden">Aucun Téléphone</a>
  139.                                                     {% endif %}
  140.                                                 </div>
  141.                                             </div>
  142.                                             <div class="row justify-content-center">
  143.                                                 <div class="col-12 text-center">
  144.                                                     {% if interlocuteur.entreprise.email is not empty %}
  145.                                                         <a class="text-golden" href="mailto:{{ interlocuteur.entreprise.email }}">{{ interlocuteur.entreprise.email }}</a>
  146.                                                     {% else %}
  147.                                                         <a class="text-golden">Aucun E-mail</a>
  148.                                                     {% endif %}
  149.                                                 </div>
  150.                                             </div>
  151.                                         {% endif %}
  152.                                     </div>
  153.                                 </div>
  154.                             </nav>
  155.                         </div>
  156.                         <div class="position-relative">
  157.                             <div class="progress-container">
  158.                                 <div class="progress">
  159.                                     <div class="progress-bar w-100" style="border-top-right-radius: 0px; border-bottom-right-radius: 0px;" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
  160.                                 </div>
  161.                             </div>
  162.                         </div>
  163.                     </header>
  164.                 {% endblock %}
  165.                 {% block main %}
  166.                 {% endblock %}
  167.                 {% block footer %}
  168.                     <footer class="py-5">
  169.                         <div class="container">
  170.                             <div class="row justify-content-center">
  171.                                 <div class="col-md-6 col-lg-4 my-2">
  172.                                     <img src="{{ asset("build/images/zada_logo_large.png") }}" width="74">
  173.                                     <div class="mt-3 text-15 text-taupe">Lorem ipsum dolor sit amet, consectetur sed do invictitur adipi elit.</div>
  174.                                 </div>
  175.                                 <div class="col-md-6 col-lg-3 my-2">
  176.                                     <div class="d-flex flex-column align-items-start">
  177.                                         <a class="my-2 fw-bold text-blue text-15" href="#">Vos programmes</a>
  178.                                         <a class="my-2 fw-bold text-blue text-15" href="#">L'agence LK1</a>
  179.                                         <a class="my-2 fw-bold text-blue text-15" href="#">FAQ</a>
  180.                                     </div>
  181.                                 </div>
  182.                                 <div class="col-md-6 col-lg-4 my-2">
  183.                                     <div class="d-flex flex-column align-items-start">
  184.                                         <a class="my-2 fw-bold text-blue text-15" href="#">Contact</a>
  185.                                         <div class="adresse text-15 text-taupe">
  186.                                             <div class="mb-1">1 avenue du Pré Félin, 74940 Annecy</div>
  187.                                             <div class="mb-1">+33 (0)4 50 22 37 14</div>
  188.                                             <div>Email : <a href="mailto:lk1@lk1.fr">lk1@lk1.fr</a></div>
  189.                                         </div>
  190.                                     </div>
  191.                                 </div>
  192.                                 <div class="col-md-6 col-lg-1 my-2">
  193.                                     <div class="d-flex flex-row flex-md-column justify-content-center h-100">
  194.                                         <a href="#" class="mx-2 mx-md-0 my-2 noAnim">
  195.                                             <img src="{{ asset("build/images/facebook_mail.png") }}" width="20" height="20"/>
  196.                                         </a>
  197.                                         <a href="#" class="mx-2 mx-md-0 my-2 noAnim">
  198.                                             <img src="{{ asset("build/images/twitter_mail.png") }}" width="20" height="20"/>
  199.                                         </a>
  200.                                         <a href="#" class="mx-2 mx-md-0 my-2 noAnim">
  201.                                             <img src="{{ asset("build/images/instagram_mail.png") }}" width="20" height="20"/>
  202.                                         </a>
  203.                                     </div>
  204.                                 </div>
  205.                             </div>
  206.                         </div>
  207.                     </footer>
  208.                 {% endblock %}
  209.             </div>
  210.             <div class="vertical-content">
  211.                 {% include 'public/vertical_layout.html.twig' %}
  212.             </div>
  213.         </div>
  214.         </div>
  215.         <div id="main_loader" class="loader" style="display:none !important;">
  216.             <i class="fas fa-hourglass-half"></i></br>
  217.             <span>Chargement en cours...</span>
  218.         </div>
  219.     {% endblock %}