templates/charte/woody/construction.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <!-- titre -->
  7.         <title>En construction</title>
  8.         <!-- description -->
  9.         <meta content="Ce site est en construction" name="description">
  10.         <!-- template headHtml -->
  11.         {{ idSite.charte.headHtml|raw }}
  12.     </head>
  13.     <body>
  14.         {# loading template #}
  15.         {{ idSite.charte.loadingHtml|raw }}
  16.         <!-- Page Header Start -->
  17.         <div class="container-fluid page-construction py-5 mb-5">
  18.             {% if user is not null %}
  19.             <div class="" style="text-align:right; position:absolute; width:100%; padding:0 15px;">
  20.                 <a href="{{ path('secur_login') }}">
  21.                     <button class="btn btn-primary">Login</button>
  22.                 </a>
  23.             </div>
  24.             {% endif %}
  25.             <div class="container py-5">
  26.                 <h1 class="display-3 text-white mb-3 animated slideInDown">
  27.                     {{ idSite.domaine }}
  28.                 </h1>
  29.                 <nav aria-label="breadcrumb animated slideInDown">
  30.                     <ol class="breadcrumb">
  31.                         <li class="breadcrumb-item">
  32.                             <a class="text-white" href="#">
  33.                                 Site en construction
  34.                             </a>
  35.                         </li>
  36.                     </ol>
  37.                 </nav>
  38.             </div>
  39.         </div>
  40.         <!-- Page Header End -->
  41.         <!-- Construction Start -->
  42.         <div class="container-xxl py-5 wow fadeInUp" data-wow-delay="0.1s">
  43.             <div class="container text-center">
  44.                 <div class="row justify-content-center">
  45.                     <div class="col-lg-8">
  46.                         <i class="bi bi-exclamation-triangle display-1 text-primary"></i>
  47.                         <h1 class="display-1">
  48.                             Travaux
  49.                         </h1>
  50.                         <h1 class="mb-4">
  51.                             en cours
  52.                         </h1>
  53.                         <p class="mb-4">
  54.                             Nous sommes désolé, mais le site n'est pas encore ouvert au public. <br>
  55.                             Veuillez revenir plus tard, nous travaillons pour que le site soit en ligne dans les plus brefs délais.
  56.                         </p>
  57.                         <div id="caseForm">
  58.                             <form id="contactConstruction" action="#" class="" data-aos="fade-up" data-aos-delay="200">
  59.                                 <input id="form_emailVisiteur" type="email" class="form-control" placeholder="Votre adresse Email">
  60.                                 <input id="btnSubmit" type="submit" class="btn btn-primary" value="Envoyer" style="float:right; position:relative;margin-top:-38px;">
  61.                             </form>
  62.                             <div id="texteSubmit" class="mt-2" data-aos="fade-up" data-aos-delay="300"></div>
  63.                         </div>
  64.                         
  65.                     </div>
  66.                 </div> 
  67.             </div>
  68.         </div>
  69.         <!-- Construction End -->
  70.         <!-- JS -->
  71.         {{ idSite.charte.jsHtml|raw }}
  72.         <script>
  73.             $(function(){
  74.                 $("#contactConstruction").on("submit", function(){
  75.                     // bloque l'envoi du formulaire
  76.                     event.preventDefault();
  77.                     // traitement
  78.                     $.ajax({
  79.                         type: "POST",
  80.                         url: "{{ path('save_emailConstruction') }}",
  81.                         data: {
  82.                             contact: $("#form_emailVisiteur").val(),
  83.                         },
  84.                     })
  85.                     .done(function(msg){
  86.                         if (msg.msg == 1){
  87.                             $("#caseForm").html("Votre email vient d'être envoyé au webmaster.");
  88.                         }
  89.                         console.log("submit mail");
  90.                     });
  91.                 });
  92.             });
  93.         </script>
  94.         {% if user.roles[0] is defined and user.roles[0] == "ROLE_ADMIN" %}
  95.         {% else %}
  96.             <script type="text/javascript">
  97.                 $(function(){
  98.                     $('.sf-toolbar').css("opacity", "0");
  99.                 });
  100.             </script>
  101.         {% endif %}
  102.     </body>
  103. </html>