templates/front/form/support.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Formulaire - Demande de support{% endblock %}
  3. {% block body %}
  4.   <main class="container" style="max-width: 800px;">
  5.     <header class="p-3 text-bg-dark">
  6.       <div class="container">
  7.         <div class="d-flex flex-wrap align-items-center justify-content-center">
  8.           <a href="https://hoplie.com" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
  9.             <img src="https://www.hoplie.com/media/images/header/logo.png">
  10.           </a>
  11.         </div>
  12.       </div>
  13.     </header>
  14.   
  15.     <div class="py-5 text-center">
  16.       <h1>Formulaire - Demande de support</h1>
  17.       <p class="alert alert-info">Les demandes de support <span class="fw-bold">ne concèrnent que les bugs et la maintenance</span> de votre site. Toutes demandes ne faisant pas partie du cahier des charges initial et nécessitant une évolution ou une modification d'une fonctionnalité déjà existante sur votre site, doit faire l'objet d'une demande d'évolution via <a class="text-link" href="{{ path('app_form_evolution_new') }}">le formulaire d'évolution</a>.</p>
  18.     </div>
  19.   
  20.     <div class="row g-5">
  21.       <div class="col">
  22.         {{ form_start(form,{'attr': {'class': 'needs-validation'}}) }}
  23.           <div class="form-section">
  24.             <h2>Informations client</h2>
  25.             <div class="row g-3 p-3">
  26.               <div class="col-sm-6">
  27.                 {{ form_row(form.customer_information.company) }}
  28.               </div>
  29.               <div class="col-sm-6">
  30.                 {{ form_row(form.customer_information.name) }}
  31.               </div>
  32.               <div class="col-12">
  33.                 {{ form_row(form.customer_information.email) }}
  34.               </div>
  35.             </div>
  36.           </div>
  37.   
  38.           <div class="form-section">
  39.             <h2>Problème rencontré ?</h2>
  40.             <div class="row g-3 p-3">
  41.               <div class="col-12">
  42.                 {{ form_row(form.description) }}
  43.               </div>
  44.               <div class="col-12">
  45.                 {{ form_row(form.actions_realized) }}
  46.               </div>
  47.               <div class="col-12">
  48.                 {{ form_row(form.expected_actions) }}
  49.               </div>
  50.               <div class="col-12">
  51.                 {{ form_row(form.url) }}
  52.               </div>
  53.               <div class="col-12">
  54.                 {{ form_row(form.date_time) }}
  55.               </div>
  56.               <div class="col-12">
  57.                 {{ form_row(form.another_details) }}
  58.               </div>
  59.             </div>
  60.           </div>
  61.           <div class="form-section">
  62.             <h2>Urgence du problème</h2>
  63.             <div class="row g-3 p-3">
  64.               <div class="col-12">
  65.                 {{ form_row(form.is_blocking) }}
  66.               </div>
  67.               <div class="blocking">
  68.                 <div class="col-12">
  69.                   {{ form_row(form.blocking_description) }}
  70.                 </div>
  71.                 <div class="col-12">
  72.                   {{ form_row(form.blocking_deadline) }}
  73.                 </div>
  74.               </div>
  75.             </div>
  76.           </div>
  77.           <button class="w-100 btn btn-primary btn-lg" type="submit">Envoyer la demande</button>
  78.         {{ form_end(form) }}
  79.       </div>
  80.     </div>
  81.   
  82.     <footer class="my-5 pt-5 text-muted text-center text-small">
  83.       <p class="mb-1">Agence Hoplie</p>
  84.     </footer>
  85.   </main>
  86.   <script>
  87.     const urgent = document.querySelector('#support_is_blocking');
  88.     urgent.addEventListener('click', () => {
  89.       const blocks = document.querySelector('.blocking');
  90.       console.log(urgent.checked);
  91.       if (urgent.checked == true) {
  92.         blocks.style.display = 'block';
  93.       } else if (urgent.checked == false) {
  94.         blocks.style.display = 'none';
  95.       }
  96.     });
  97.   </script>
  98. {% endblock %}