templates/page/home.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% import 'macro/user.html.twig' as user_macro %}
  3. {% block stylesheets %}
  4.     <style>
  5.         .rounded-right {
  6.             border-top-right-radius: 3em;
  7.             border-bottom-right-radius: 3em;
  8.         }
  9.         .whysection h3 {
  10.             font-size: 1.75rem;
  11.             font-weight: bolder;
  12.         }
  13.         .whysection p {
  14.             font-size: 1.2rem;
  15.             line-height: 1.9rem;
  16.             text-align: justify;
  17.         }
  18.         th {
  19.             max-width: 50%;
  20.             width: 50%;
  21.             color: #979797;
  22.         }
  23.         td {
  24.             font-weight: bold;
  25.             color: #000;
  26.         }
  27.         table {
  28.             width: 100%;
  29.         }
  30.         .news-link:visited {
  31.             color: #98a2ea;
  32.         }
  33.         .accordion-header.accordion-white {
  34.             background: #f0faf8;
  35.             color: #000000;
  36.             border: none;
  37.         }
  38.         /*----------------- MODAL ------------------- */
  39.         .modal {
  40.             z-index: 99999;
  41.             max-width: 700px;
  42.             width: 35%;
  43.             position: fixed;
  44.             top: 64%;
  45.             left: 18%;
  46.             transform: translate(-50%, -50%);
  47.             border-radius: 40px;
  48.             background: #f0faf8;
  49.             display: none;
  50.             visibility: hidden;
  51.             opacity: 0;
  52.             transition: visibility 0s, opacity 1s linear;
  53.             box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
  54.         }
  55.         .modal.show {
  56.             display: block;
  57.             visibility: visible;
  58.             opacity: 1;
  59.         }
  60.         #close {
  61.             cursor: pointer;
  62.             color: white;
  63.             position: absolute;
  64.             top: -5px;
  65.             font-size: 25px;
  66.             right: -7px;
  67.             padding: 1rem;
  68.             margin-right: 10px;
  69.         }
  70.         .n-page-left-side {
  71.             padding-left: 50px;
  72.             padding-right: 50px;
  73.             margin-bottom: 118px;
  74.         }
  75.         .welcome-text {
  76.             text-align: left;
  77.         }
  78.         .welcome-text h3 {
  79.             font-size: 19px;
  80.         }
  81.         /*.modal__title{font-size: 2.5rem;}
  82.         .modal__title span{display: block;font-weight: 400;}
  83.         .modal__paragraph{font-size: 16px;font-weight: 400;}
  84.         .modal__button{
  85.             background-color:#0a9396;
  86.             border:none;
  87.             color: white;
  88.             padding: 1rem 2rem;
  89.             border-radius:5px;
  90.             box-shadow: 2px 2px 12px rgba(0,0,0,0.2);
  91.             transition: 0.3s background-color ease-in-out;
  92.         }
  93.         .modal__button:hover{background-color:#0a9372;}
  94.         main{text-align: center;}
  95.         .modal__container{
  96.             padding: 1rem 2rem;
  97.             display: flex;
  98.             flex-direction: column;
  99.             justify-content: center;
  100.             align-items: center;
  101.             position: relative;
  102.         }*/
  103.         @media only screen and (min-width: 768px) {
  104.             .modal__container {
  105.                 flex-direction: row;
  106.                 text-align: left;
  107.             }
  108.             .modal__img {
  109.                 max-width: 50%
  110.             }
  111.         }
  112.         @media only screen and (max-width: 500px) {
  113.             .modal__title {
  114.                 font-size: 2rem;
  115.             }
  116.             .modal__img {
  117.                 max-width: 80%
  118.             }
  119.         }
  120.         .welcome-text {
  121.             margin-bottom: 7px;
  122.         }
  123.         #modal .submit-field {
  124.             margin-bottom: 0;
  125.         }
  126.         .n-page-left-side {
  127.             padding-top: 47px;
  128.             padding-left: 25px;
  129.             padding-right: 25px;
  130.             margin-bottom: 118px;
  131.         }
  132.         .welcome-text {
  133.             text-align: left;
  134.             margin-bottom: 5px !important;
  135.         }
  136.         .welcome-text h3 {
  137.             font-size: 19px;
  138.         }
  139.         @media only screen and (min-width: 768px) {
  140.             .modal__container {
  141.                 flex-direction: row;
  142.                 text-align: left;
  143.             }
  144.             .modal__img {
  145.                 max-width: 50%
  146.             }
  147.         }
  148.         @media only screen and (max-width: 500px) {
  149.             .modal__title {
  150.                 font-size: 2rem;
  151.             }
  152.             .modal__img {
  153.                 max-width: 80%
  154.             }
  155.         }
  156.         .welcome-text {
  157.             margin-bottom: 7px;
  158.         }
  159.         #modal .submit-field {
  160.             margin-bottom: 0;
  161.         }
  162.         .uploadButton .uploadButton-file-name {
  163.             overflow: inherit;
  164.             min-height: inherit;
  165.         }
  166.         .uploadButton {
  167.             margin-bottom: inherit;
  168.         }
  169.         /* ------- ALLIN -------- */
  170.         .compact-list-layout .job-listing .job-listing-company-logo {
  171.             max-width: 81px;
  172.         }
  173.         .job-listing .job-listing-company-logo img {
  174.             border-radius: 47px;
  175.         }
  176.         .uploadButton .uploadButton-button {
  177.             background-color: white;
  178.         }
  179.         .h1-title {
  180.             font-size: 40px !important;
  181.         }
  182.         .h3-title {
  183.             font-size: 30px !important;
  184.         }
  185.         @media screen and (max-width: 500px) {
  186.             .h1-title {
  187.                 font-size: 30px !important;
  188.             }
  189.             .h3-title {
  190.                 font-size: 21px !important;
  191.                 line-height: 25px !important;
  192.             }
  193.         }
  194.         @media (max-width: 992px) {
  195.             .intro-banner {
  196.                 padding: 29px 0;
  197.             }
  198.         }
  199.         .submit-field {
  200.             margin-bottom: inherit !important;
  201.         }
  202.     </style>
  203.     {# INTRO BANNER #}
  204.     <style>
  205.         .banner-headline {
  206.             max-width: initial;
  207.         }
  208.         .banner-headline .forum_avatar {
  209.             display: inline-block;
  210.             padding: 0px 6px;
  211.             background-color: #00B28E;
  212.             color: white;
  213.             border-radius: 50px;
  214.             font-size: 14px;
  215.         }
  216.     </style>
  217. {% endblock %}
  218. {% block body %}
  219.     <!-- Intro Banner
  220.     ================================================== -->
  221.     <!-- add class "disable-gradient" to enable consistent background overlay -->
  222.     <div class="intro-banner" data-background-image="images/home-background2.jpg">
  223.         <div class="container">
  224.             <!-- Intro Headline -->
  225.             <div class="row" id="intro-headline">
  226.                 <div class="col-md-6">
  227.                     <div class="banner-headline">
  228.                         <span>
  229.                             <h1 class="h1-title"><strong
  230.                                     class="text-blue">Jobs in Dubai, Abu Dhabi and UAE</strong></h1>
  231.                             <h3 class="text-black h3-title">
  232.                                 100% regular jobs and freelance jobs in Dubai and UAE and 100% free for jobseekers.
  233.                             </h3>
  234.                         </span>
  235.                     </div>
  236.                 </div>
  237.                 <div class="col-md-1"></div>
  238.                 <div class="col-md-5">
  239.                     <div class="banner-headline">
  240.                         {% include('forum/layout/recent_post.html.twig') %}
  241.                     </div>
  242.                 </div>
  243.             </div>
  244.             <!-- Search Bar -->
  245.             <div class="row">
  246.                 <div class="col-md-12">
  247.                     <form action="{{ path('mission_search') }}" method="POST" id="formSearch">
  248.                         <div class="intro-banner-search-form margin-top-95">
  249.                             <!-- Search Field -->
  250.                             <div class="intro-search-field">
  251.                                 <label for="intro-keywords" class="field-title ripple-effect">What are you looking
  252.                                     for?</label>
  253.                                 <input id="search" name="search" id="intro-keywords" type="text" style="width: 600px;"
  254.                                        placeholder="Job title or keyword">
  255.                             </div>
  256.                             <!-- Search Field -->
  257.                             <div class="intro-search-field">
  258.                                 <label for="autocomplete-input" class="field-title ripple-effect">Where?</label>
  259.                                 <select id="location" name="location[]" class="selectpicker default" multiple
  260.                                         data-live-search="true">
  261.                                     <option
  262.                                         value="All UAE" selected>
  263.                                         All UAE
  264.                                     </option>
  265.                                     {% for name,region in regions %}
  266.                                         <optgroup label="{{ name }}">
  267.                                             <option value="{{ name }}">
  268.                                                 All
  269.                                                 {{ name }}</option>
  270.                                             {% for department in region %}
  271.                                                 <option
  272.                                                     value="{{ department }}">
  273.                                                     {{ department }}
  274.                                                 </option>
  275.                                             {% endfor %}
  276.                                         </optgroup>
  277.                                     {% endfor %}
  278.                                 </select>
  279.                             </div>
  280.                             <div class="intro-search-field">
  281.                                 <label for="job-type" class="field-title ripple-effect">What type of job?</label>
  282.                                 <select id="job-type" name="category" class="selectpicker default">
  283.                                     <option value="Full-time">Full-time</option>
  284.                                     <option value="Contract">Contract</option>
  285.                                     <option value="Part-time">Part-time</option>
  286.                                     <option value="Internship">Internship</option>
  287.                                 </select>
  288.                             </div>
  289.                             <!-- Button -->
  290.                             <div class="intro-search-button">
  291.                                 {% if is_granted('ROLE_USER') %}
  292.                                     <button class="button ripple-effect"
  293.                                             type="submit">Search
  294.                                     </button>
  295.                                 {% else %}
  296.                                     <a class="button ripple-effect "
  297.                                        href="{{ path('mission_search', {'url_libelle' : "search"}) }}">Search</a>
  298.                                 {% endif %}
  299.                             </div>
  300.                         </div>
  301.                     </form>
  302.                 </div>
  303.             </div>
  304.         </div>
  305.     </div>
  306.     <!-- Features Jobs -->
  307.     {% if not isNotShow %}
  308.         <div class="section  padding-top-45 padding-bottom-45">
  309.             <div class="container">
  310.                 <div class="row">
  311.                     <div class="col-xl-12">
  312.                         <!-- Section Headline -->
  313.                         <div class="section-headline margin-top-0 margin-bottom-35">
  314.                             <h3>Latest offers</h3>
  315.                             <a href="{{ path('mission_search', {'url_libelle' : "search"}) }}"
  316.                                class="headline-link">
  317.                                 All offers
  318.                             </a>
  319.                         </div>
  320.                         <!-- Jobs Container -->
  321.                         <div class="listings-container compact-list-layout margin-top-35">
  322.                             {% for offer in offers|slice(0, 3) %}
  323.                                 <a href="{{ path('public_mission', {slug : offer.slug}) }}"
  324.                                    class=" job-listing with-apply-button">
  325.                                     <div class="job-listing-details">
  326.                                         <div class="job-listing-company-logo">
  327.                                             {% if offer.society %}
  328.                                                 {{ user_macro.societyPhoto(offer.society.user.photo) }}
  329.                                             {% else %}
  330.                                                 <img src="{{ asset('images/company-logo-05.png') }}"
  331.                                                      alt="">
  332.                                             {% endif %}
  333.                                         </div>
  334.                                         <div class="job-listing-description">
  335.                                             <h3 class="job-listing-title"> {{ offer.title }}</h3>
  336.                                             <div class="job-listing-footer">
  337.                                                 <ul>
  338.                                                     <li>
  339.                                                         <i class="icon-material-outline-business"></i>
  340.                                                         {% if offer.society %}
  341.                                                             {{ offer.society.name }}
  342.                                                         {% else %}
  343.                                                             {{ offer.societyExternName }}
  344.                                                         {% endif %}
  345.                                                     </li>
  346.                                                     <li>
  347.                                                         <i class="icon-material-outline-location-on"></i> {{ offer.location }}
  348.                                                     </li>
  349.                                                     <li>
  350.                                                         <i class="icon-material-outline-business-center text-blue"></i>
  351.                                                         {{ offer.getYearRequired }}
  352.                                                     </li>
  353.                                                     <li>
  354.                                                         <i class="icon-line-awesome-money text-blue"></i>
  355.                                                         {{ offer.salaryPeerMonthText }}
  356.                                                     </li>
  357.                                                 </ul>
  358.                                             </div>
  359.                                         </div>
  360.                                         <span class="button">Apply</span>
  361.                                     </div>
  362.                                 </a>
  363.                             {% endfor %}
  364.                         </div>
  365.                         <!-- Jobs Container / End -->
  366.                     </div>
  367.                 </div>
  368.             </div>
  369.         </div>
  370.     {% endif %}
  371.     <!-- Featured Jobs / End -->
  372.     <!-- Features Cities -->
  373.     <div class="section margin-bottom-65 margin-top-65">
  374.         <div class="container">
  375.             <div class="row">
  376.                 {% for city in cityList %}
  377.                     <div class="col-xl-3 col-md-6">
  378.                         <!-- Photo Box -->
  379.                         <a
  380.                             href="{{ city.link }}"
  381.                             class="photo-box"
  382.                             data-background-image="{{ city.img }}">
  383.                             <div class="photo-box-content">
  384.                                 <h2 class="text-white">{{ city.name }}</h2>
  385.                             </div>
  386.                         </a>
  387.                     </div>
  388.                 {% endfor %}
  389.             </div>
  390.         </div>
  391.     </div>
  392.     <!-- Features Cities / End -->
  393.     {# <!-- Highest Rated Freelancers -->
  394.     <div class="section  padding-top-45 padding-bottom-30">
  395.         <div class="container">
  396.             <div class="row">
  397.                 <div class="col-xl-12">
  398.                     <!-- Section Headline -->
  399.                     <div class="section-headline margin-top-0 margin-bottom-25">
  400.                         <h3>Derniers profils</h3>
  401.                         <a href="{{ is_granted('ROLE_USER') ? path('freelance_search') : '#sign-in-dialog' }}"
  402.                            class="{{ is_granted('ROLE_USER') ? '' : 'popup-with-zoom-anim' }} headline-link">Tous les
  403.                             profils</a>
  404.                     </div>
  405.                 </div>
  406.                 <div class="col-xl-12">
  407.                     <div class="freelancers-container freelancers-grid-layout">
  408.                         {% for profile in profiles %}
  409.                             <div class="freelancer">
  410.                                 <div class="freelancer-overview">
  411.                                     <div class="freelancer-overview-inner">
  412.                                         <div class="freelancer-avatar">
  413.                                             <a href="{{ path('public_profile', {slug : profile.slug}) }}">
  414.                                                 <img
  415.                                                         src="{{ asset( profile.photo  ? 'uploads/avatar/' ~ profile.photo: 'images/user-avatar-placeholder.png') }}"
  416.                                                         alt=""
  417.                                                         class="{{ is_granted('ROLE_USER') ? '' : 'blur-image' }}">
  418.                                             </a>
  419.                                         </div>
  420.                                         <div class="freelancer-name">
  421.                                             <h4>
  422.                                                 <a href="{{ path('public_profile', {slug : profile.slug}) }}">{{ profile.user.firstName }}
  423.                                                     .</a>
  424.                                             </h4>
  425.                                             <span>{{ profile.title }}</span>
  426.                                         </div>
  427.                                     </div>
  428.                                 </div>
  429.                                 <div class="freelancer-details">
  430.                                     <div class="freelancer-details-list">
  431.     #}
  432.     {# @changelog 2022-10-03 [FIX] (Anthony) Modification affichage mobilité sur le titre de la page #}
  433.     {#
  434.     <table>
  435.         <thead>
  436.         <tr>
  437.             <th>Localisation</th>
  438.             <th>T.J.M</th>
  439.             <th>Disponibilité</th>
  440.         </tr>
  441.         </thead>
  442.         <tbody>
  443.         <tr>
  444.             <td>
  445.                 {% set locations = profile.location|split(' ') %}
  446.                 <i class="icon-material-outline-location-on"></i>
  447.                 {% if locations|length > 1 %}
  448.                     {{ locations[1] }}
  449.                 {% else %}
  450.                     {{ locations[0] }}
  451.                 {% endif %}
  452.             </td>
  453.             <td>{{ profile.cost }} €</td>
  454.             <td>{{ profile.disponibility }}</td>
  455.         </tr>
  456.         </tbody>
  457.     </table>
  458. </div>
  459. <a href="{{ is_granted('ROLE_USER') ?  path('public_profile', {slug : profile.slug})  : '#sign-in-dialog' }}"
  460.    class="{{ is_granted('ROLE_USER') ? '' : 'popup-with-zoom-anim' }} button button-sliding-icon ripple-effect">
  461.     Voir le profil <i class="icon-material-outline-arrow-right-alt"></i></a>
  462. </div>
  463. </div>
  464. <!-- Freelancer / End -->
  465. {% endfor %}
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. </div>
  471. <!-- Highest Rated Freelancers / End--> #}
  472.     <!-- Highest news -->
  473.     {#<div class="section  padding-bottom-45">
  474.         <div class="container">
  475.             <div class="row">
  476.                 <div class="col-xl-12">
  477.                     <!-- Section Headline -->
  478.                     <div class="section-headline margin-top-0 margin-bottom-25">
  479.                         <h3>News</h3>
  480.                         <a href="{{ path('all_news') }}"
  481.                            class=" headline-link">All news</a>
  482.                     </div>
  483.                 </div>
  484.                 <div class="col-xl-12">
  485.                     <div class="freelancers-container freelancers-grid-layout">
  486.                         <ul style="list-style-type:none;">
  487.                             {% for actu in news %}
  488.                                 <li class="actu">
  489.                                     <strong class="text-blue">{{ actu.date|date('d/m') }} </strong>
  490.                                     -
  491.                                     <a class="news-link text-black" href="{{ actu.newsLink }}"
  492.                                        target="_blank"
  493.                                     >
  494.                                         <span>{{ actu.description|u.truncate(70, '...') }}</span>
  495.                                     </a>
  496.                                     - <small>
  497.                                         <em>
  498.                                             <a href="{{ actu.link }}" target="_blank"
  499.                                                class="text-black">{{ actu.owner }}
  500.                                             </a>
  501.                                         </em>
  502.                                     </small>
  503.                                 </li>
  504.                             {% endfor %}
  505.                         </ul>
  506.                     </div>
  507.                 </div>
  508.             </div>
  509.         </div>
  510.     </div>#}
  511.     <!-- Highest news / End-->
  512.     {# <div class="section gray padding-top-0">
  513.         <div class="d-flex align-items-end ">
  514.             <div class="d-none d-md-block col-md-5 padding-left-0">
  515.                 <img class="rounded-right" style="height:50vh; width:100%; object-fit: cover;"
  516.                      src="{{ asset('images/illustration-1.jpg') }}" title="Pourquoi freelance dispo"
  517.                      alt="Pourquoi freelance dispo">
  518.             </div>
  519.             <div class="col-md-6 whysection">
  520.                 <h3>Pourquoi <span class="text-blue">Freelance Dispo</span> ?</h3>
  521.                 <p class="margin-top-25">
  522.                     <span class="text-blue">Freelance Dispo</span> est une plateforme dont l’inscription et
  523.                     l’utilisation sont
  524.                     <span class="text-blue">100% gratuites pour les freelances</span>. En déposant votre CV vous pourrez
  525.                     être contacté par des recruteurs qui recherchent des
  526.                     freelances pour des missions de moyenne et longue durée, et vous pourrez aussi postuler aux annonces
  527.                     de missions destinées aux freelances informatique et dans le digital. Le TJM du freelance n’est pas
  528.                     du tout impacté, Freelance Dispo ne demande <span class="text-blue">aucune commission ni aux freelances ni aux recruteurs</span>
  529.                     et
  530.                     aucun % de frais de service.
  531.                 </p>
  532.             </div>
  533.         </div>
  534.     </div> #}
  535.     <!-- How it works -->
  536.     <div class="section padding-top-65 padding-bottom-65">
  537.         <div class="container">
  538.             <div class="row">
  539.                 <div class="col-xl-12">
  540.                     <!-- Section Headline -->
  541.                     <div class="section-headline centered margin-top-0 margin-bottom-5">
  542.                         <h3>How does it work?</h3>
  543.                     </div>
  544.                 </div>
  545.                 <div class="col-xl-4 col-md-4">
  546.                     <!-- Icon Box -->
  547.                     <div class="icon-box with-line">
  548.                         <!-- Icon -->
  549.                         <div class="icon-box-circle">
  550.                             <div class="icon-box-circle-inner">
  551.                                 <i class="icon-line-awesome-lock"></i>
  552.                                 <div class="icon-box-check"><i class="icon-material-outline-check"></i></div>
  553.                             </div>
  554.                         </div>
  555.                         <h3>Create an account</h3>
  556.                         <p>Create a free account easily to use 100% of the platform</p>
  557.                     </div>
  558.                 </div>
  559.                 <div class="col-xl-4 col-md-4">
  560.                     <!-- Icon Box -->
  561.                     <div class="icon-box with-line">
  562.                         <!-- Icon -->
  563.                         <div class="icon-box-circle">
  564.                             <div class="icon-box-circle-inner">
  565.                                 <i class="icon-line-awesome-legal"></i>
  566.                                 <div class="icon-box-check"><i class="icon-material-outline-check"></i></div>
  567.                             </div>
  568.                         </div>
  569.                         <h3>Post your CV </h3>
  570.                         <p>
  571.                             Add your informations and add your CV to be able to be contact by all employers in Dubai and
  572.                             UAE
  573.                         </p>
  574.                     </div>
  575.                 </div>
  576.                 <div class="col-xl-4 col-md-4">
  577.                     <!-- Icon Box -->
  578.                     <div class="icon-box">
  579.                         <!-- Icon -->
  580.                         <div class="icon-box-circle">
  581.                             <div class="icon-box-circle-inner">
  582.                                 <i class=" icon-line-awesome-trophy"></i>
  583.                                 <div class="icon-box-check"><i class="icon-material-outline-check"></i></div>
  584.                             </div>
  585.                         </div>
  586.                         <h3>Apply to a position</h3>
  587.                         <p>
  588.                             Apply to a regular job or a freelance job in Dubai, Abu Dhabi or everywhere in United Arab
  589.                             Emirates.
  590.                         </p>
  591.                     </div>
  592.                 </div>
  593.             </div>
  594.         </div>
  595.     </div>
  596.     <!-- How it works / End -->
  597.     <!--FAQ -->
  598.     <div class="section faq " style="background-color: #f0faf8">
  599.         <div class="container-fluid white" style="padding-left: 0px; padding-right: 0px; background-color: white ">
  600.             <svg style="display: block" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
  601.                  viewBox="0 0 1366 74.99">
  602.                 <path
  603.                     d="M.051,44.953C180.175,87.69,501.382,86.386,803.886,24.306a1184.173,1184.173,0,0,1,562.165,20.646c-.213-.782,0,30,0,30H.051Z"
  604.                     transform="translate(-0.051 0.038)" fill="#f0faf8"></path>
  605.             </svg>
  606.         </div>
  607.         <div class="container padding-top-50 padding-bottom-100">
  608.             <div class="row">
  609.                 <div class="col-md-8">
  610.                     <h3>FAQ for <span class="text-blue">jobseekers</span></h3>
  611.                     <div class="margin-top-50 accordion js-accordion no-shadow ">
  612.                         {% for question, answer in faqs %}
  613.                             <div class="accordion__item js-accordion-item">
  614.                                 <div class="accordion-header accordion-white js-accordion-header">
  615.                                     <i class="carret"></i> <span>{{ question }}</span>
  616.                                 </div>
  617.                                 <!-- Accordtion Body -->
  618.                                 <div class="accordion-body js-accordion-body" style="display: none;">
  619.                                     <!-- Accordion Content -->
  620.                                     <div class="accordion-body__contents">
  621.                                         <p class="text-black">
  622.                                             {{ answer }}
  623.                                         </p>
  624.                                     </div>
  625.                                 </div>
  626.                                 <!-- Accordion Body / End -->
  627.                             </div>
  628.                         {% endfor %}
  629.                     </div>
  630.                 </div>
  631.                 {# <div class="col-md-4">
  632.                     <img src="{{ asset('images/home-faq.png') }}" alt="FAQ">
  633.                 </div> #}
  634.             </div>
  635.         </div>
  636.     </div>
  637.     <!--FAQ / End -->
  638.     {% include('page/_modal_action_home.html.twig') %}
  639.     {% if is_granted('ROLE_USER') and app.user.deleteAt %}
  640.         <div id="small-dialog" class="zoom-anim-dialog mfp-hide dialog-with-tabs">
  641.             <div class="sign-in-form">
  642.                 <ul class="popup-tabs-nav">
  643.                     <li><a href="#recup-tab">Compte</a></li>
  644.                 </ul>
  645.                 <div class="popup-tabs-container">
  646.                     <div class="popup-tab-content" id="recup-tab">
  647.                         <form>
  648.                             <div id="report_confirm" class="welcome-text">
  649.                                 <h3> « Souhaitez-vous récupérer votre compte avant sa suppression ? »</h3>
  650.                             </div>
  651.                             <div class="d-flex justify-content-end">
  652.                                 <a href="{{ path('logout') }}" class="button red " style="margin-right: 10px">
  653.                                     Annuler
  654.                                 </a>
  655.                                 <a href="{{ path('account_reactivate') }}" class="button">Récupérer mon compte</a>
  656.                             </div>
  657.                         </form>
  658.                     </div>
  659.                 </div>
  660.             </div>
  661.         </div>
  662.     {% else %}
  663.         {% include 'common/modal/sign_modal.html.twig' %}
  664.         {% include 'common/modal/reset_password_modal.html.twig' %}
  665.     {% endif %}
  666.     {% set paused = false %}
  667.     {% for validation in app.flashes('pause_success') %}
  668.         {% set paused = true %}
  669.     {% endfor %}
  670.     {% if paused %}
  671.         <div id="pause-info-dialog" class="zoom-anim-dialog mfp-hide dialog-with-tabs custom-dialog">
  672.             <div class="sign-in-form">
  673.                 <ul class="popup-tabs-nav">
  674.                     <li><a href="#tabinfo">Compte en pause</a></li>
  675.                 </ul>
  676.                 <div class="popup-tabs-container">
  677.                     <!-- Tab -->
  678.                     <div class="popup-tab-content" id="tabinfo">
  679.                         <!-- Welcome Text -->
  680.                         <div class="welcome-text">
  681.                             <p class="margin-top-15">
  682.                                 Votre compte est en pause à votre demande et sera réactivé le
  683.                                 {{ app.user.society.pauseDate | date('d/m/Y') }}
  684.                                 à {{ app.user.society.pauseDate | date('H:i') }}
  685.                             </p>
  686.                         </div>
  687.                     </div>
  688.                 </div>
  689.             </div>
  690.         </div>
  691.     {% endif %}
  692.     {# ------- BTN LOGIN / REGISTER MOBILE ------ #}
  693.     {% include 'macro/notuser_floatant.html.twig' %}
  694. {% endblock %}
  695. {% block javascripts %}
  696.     <script>
  697.         const regions = JSON.parse(`{% autoescape false %}{{ regionjson }}{% endautoescape %}`);
  698.         $(function () {
  699.             $('#location').change(function () {
  700.                 var location = $(this).val();
  701.                 var newLocation = location;
  702.                 if (location.length > 1) {
  703.                     newLocation = newLocation.filter((value) => value !== 'All UAE');
  704.                 }
  705.                 Object.entries(regions).forEach(([region, departement]) => {
  706.                     if (newLocation.includes(region)) {
  707.                         var dep = Object.keys(departement);
  708.                         newLocation = newLocation.filter((value) => !dep.includes(value));
  709.                     }
  710.                 });
  711.                 $(this).selectpicker('val', newLocation);
  712.             });
  713.             if ($('#small-dialog').length > 0) {
  714.                 $.magnificPopup.open({
  715.                     items: {
  716.                         src: '#small-dialog'
  717.                     },
  718.                     type: 'inline',
  719.                     fixedContentPos: false,
  720.                     fixedBgPos: true,
  721.                     overflowY: 'auto',
  722.                     closeBtnInside: true,
  723.                     preloader: false,
  724.                     midClick: true,
  725.                     removalDelay: 300,
  726.                     mainClass: 'my-mfp-zoom-in'
  727.                 });
  728.             }
  729.             if ($('#pause-info-dialog').length > 0) {
  730.                 $.magnificPopup.open({
  731.                     items: {
  732.                         src: '#pause-info-dialog'
  733.                     },
  734.                     type: 'inline',
  735.                     fixedContentPos: false,
  736.                     fixedBgPos: true,
  737.                     overflowY: 'auto',
  738.                     closeBtnInside: true,
  739.                     preloader: false,
  740.                     midClick: true,
  741.                     removalDelay: 300,
  742.                     mainClass: 'my-mfp-zoom-in'
  743.                 });
  744.             }
  745.             if ($('#recup-dialog').length > 0) {
  746.                 $.magnificPopup.open({
  747.                     items: {
  748.                         src: '#recup-dialog'
  749.                     },
  750.                     type: 'inline',
  751.                     fixedContentPos: false,
  752.                     fixedBgPos: true,
  753.                     overflowY: 'auto',
  754.                     closeBtnInside: true,
  755.                     preloader: false,
  756.                     midClick: true,
  757.                     removalDelay: 300,
  758.                     mainClass: 'my-mfp-zoom-in'
  759.                 });
  760.             }
  761.         })
  762.     </script>
  763.     {# ----- SCRIPT INSCRIPTION ---- #}
  764.     {% if not app.user %}
  765.         <script>
  766.             // MODAL
  767.             const closeBtn = document.getElementById('close');
  768.             const modalMenu = document.getElementById('modal');
  769.             if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
  770.                 // true for mobile device
  771.                 console.log('mobile');
  772.             } else {
  773.                 // false for not mobile device
  774.                 document.addEventListener("scroll", (event) => {
  775.                     if (!localStorage.modalShow) {
  776.                         modalMenu.classList.add('show');
  777.                     }
  778.                 })
  779.             }
  780.             closeBtn.addEventListener('click', () => {
  781.                 modalMenu.classList.remove('show');
  782.                 localStorage.modalShow = true;
  783.             });
  784.         </script>
  785.     {% endif %}
  786.     {% if app.user %}
  787.         {# ---- SCRICP FORMATAGE RECHERCHE --- #}
  788.         {{ include('macro/_mission-search.html.twig') }}
  789.     {% endif %}
  790. {% endblock %}