templates/front/inscriptions/inscription-certyou.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Certificats certificats internationaux II | {{slug }} | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
  5. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
  6. <script>
  7.      $(document).ready(function(){
  8.         //
  9.         var form_choix = $('#inscription_certyou_form_choix');
  10.         var choix = $('#choix');
  11.         var form_type = $('#inscription_certyou_form_types');
  12.         var type = $('#type');
  13.         var form_duree = $('#inscription_certyou_form_duree');
  14.         var duree = $('#duree');
  15.         var form_session = $('#inscription_certyou_form_session');
  16.         var session = $('#session');
  17.         var form_lieu = $('#inscription_certyou_form_lieu');
  18.         var lieu = $('#lieu');
  19.         var form_prixvirtuelle = $('#inscription_certyou_form_prixvirtuelle');
  20.         var virtuelle = $('#virtuelle');
  21.         var form_prixpresentiel = $('#inscription_certyou_form_prixpresentiel');
  22.         var presentiel = $('#presentiel');
  23.         var titre_info = $('#titre-info-perso');
  24.         var info = $('#info-perso');
  25.         var form_submit = $('#inscription_certyou_form_submit');
  26.         
  27.         choix.hide();
  28.         form_session.hide();
  29.         session.hide();
  30.         form_lieu.hide();
  31.         lieu.hide();
  32.         form_duree.hide();
  33.         duree.hide();
  34.         form_prixvirtuelle.hide();
  35.         virtuelle.hide();
  36.         form_prixpresentiel.hide();
  37.         presentiel.hide();
  38.         
  39.         info.hide();
  40.         titre_info.hide();
  41.         form_submit.hide();
  42.         
  43.       
  44.         /*function updateByType() {*/
  45.             if (form_choix.val() === 'virtuelle'){
  46.                 choix.hide();
  47.                 form_duree.show();
  48.                 duree.show();
  49.                 form_prixvirtuelle.show();
  50.                 virtuelle.show();
  51.                 
  52.                 form_session.show();
  53.                 session.show();
  54.                 
  55.                 form_type.hide();
  56.                 type.hide();
  57.                 form_prixpresentiel.hide();
  58.                 presentiel.hide();
  59.                 
  60.                 info.show();
  61.                 titre_info.show();
  62.                 form_submit.show();
  63.                 
  64.                 //alert(form_choix.val());
  65.             }else{
  66.                 //alert(form_choix.val());
  67.                 form_choix.hide();
  68.                 choix.hide();
  69.                 form_type.show();
  70.                 type.show();
  71.                 
  72.                 form_session.show();
  73.                 session.show();
  74.                 
  75.                 form_type.on('change', function () {
  76.                     var value = $(this).val();
  77.                     if (value === 'virtuelle') {
  78.                         duree.show();
  79.                         form_duree.show();
  80.                 
  81.                         lieu.hide();
  82.                         form_lieu.hide();
  83.                         
  84.                         info.show();
  85.                         titre_info.show();
  86.                         form_submit.show();
  87.                         
  88.                         form_session.show();
  89.                         session.show();
  90.                         
  91.                         virtuelle.show();
  92.                         form_prixvirtuelle.show();
  93.                         presentiel.hide();
  94.                         form_prixpresentiel.hide();
  95.                         
  96.                     } else if (value === 'presentiel') {
  97.                         duree.show();
  98.                         form_duree.show();
  99.                         
  100.                         lieu.show();
  101.                         form_lieu.show();
  102.                         
  103.                         info.show();
  104.                         titre_info.show();
  105.                         form_submit.show();
  106.                         
  107.                         form_session.show();
  108.                         session.show();
  109.                         
  110.                         virtuelle.hide();
  111.                         form_prixvirtuelle.hide();
  112.                         presentiel.show();
  113.                         form_prixpresentiel.show();
  114.                     } else if(value === ''){
  115.                         duree.hide();
  116.                         form_duree.hide();
  117.                         presentiel.hide();
  118.                         form_prixpresentiel.hide();
  119.                         virtuelle.hide();
  120.                         form_prixvirtuelle.hide();
  121.                         
  122.                         form_lieu.hide();
  123.                         lieu.hide();
  124.                         
  125.                         info.hide();
  126.                         titre_info.hide();
  127.                         form_submit.hide();
  128.                         
  129.                         form_session.hide();
  130.                         session.hide();
  131.                     }
  132.                 });
  133.       
  134.             }
  135.         /*}    
  136.         form_choix.on('change', updateByType);
  137.         form_type.on('change', updateByType);*/
  138.         
  139.         
  140.         if(form_type.val() === 'presentiel'){
  141.             info.show();
  142.             titre_info.show();
  143.             form_submit.show(); 
  144.         }else if(form_type.val() === 'virtuelle'){
  145.             info.show();
  146.             titre_info.show();
  147.             form_submit.show(); 
  148.         }else if(form_choix.val() === 'virtuelle'){
  149.             session.show();            
  150.             form_session.show();
  151.             
  152.             info.show();
  153.             titre_info.show();
  154.             form_submit.show();
  155.         } else{
  156.             lieu.hide();
  157.             form_lieu.hide();
  158.             info.hide();
  159.             titre_info.hide();
  160.             form_submit.hide(); 
  161.             form_session.hide();
  162.             session.hide();
  163.         }
  164.      });
  165. </script>
  166. <style id='wp-emoji-styles-inline-css' type='text/css'>
  167. span{
  168.     font-family: arial;
  169. }
  170. label{
  171.     font-family: arial;
  172. }
  173. .form-control{
  174.     width:100%;
  175.     height:45px;
  176.     padding:10px;
  177.     font-family: arial;
  178.     margin-bottom: 20px;
  179.     border:1px solid #ccc;
  180. }
  181. .events_pagination ul.pagination {
  182.     display: flex;
  183.     flex-wrap: wrap;
  184.     justify-content: center;
  185.     list-style: none;
  186.     margin: 0;
  187.     padding: 0;
  188. }
  189. .page-item.active .page-link {
  190.     background-color: #ff6600;
  191.     color: #fff;
  192. }
  193. .page-link {
  194.     margin: 10px;
  195.     color: #051a53;
  196.     background-color: #ededed;
  197.     border-radius: 5px;
  198.     padding: 10px;
  199.     /* margin: 0 3px; */
  200. }
  201. .titre-certificat{
  202.     color: #051a53;
  203.     font-family: arial !important;
  204.     font-size: 14px;
  205.     line-height: 1.3;
  206.     font-weight: bold;
  207. }
  208. .row {
  209.     display: flex;            /* flexbox pour aligner les colonnes */
  210.     flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  211.     margin-right: -0.75rem;   /* -gutter/2 */
  212.     margin-left: -0.75rem;    /* -gutter/2 */
  213. }
  214. .events_pagination ul.pagination {
  215.     display: flex;
  216.     flex-wrap: wrap;
  217.     justify-content: center;
  218.     list-style: none;
  219.     margin: 0;
  220.     padding: 0;
  221. }
  222. .page-item.active .page-link {
  223.     background-color: #ff6600;
  224.     color: #fff;
  225. }
  226. .page-link {
  227.     margin: 10px;
  228.     color: #051a53;
  229.     background-color: #ededed;
  230.     border-radius: 5px;
  231.     padding: 10px;
  232.     /* margin: 0 3px; */
  233. }
  234. .text-lien{
  235.    color: #ff6600;
  236.    /* font-size: 16px; */
  237. }
  238.   .header_title_1{font-weight: bolder !important;}
  239. /* Small devices ≥576px */
  240. @media (min-width: 576px) {
  241.   .col-3 { flex: 0 0 100%; max-width: 100%; }
  242.   .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  243.   .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  244.   .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  245.   .header_title_1{font-size: 18px}
  246. }
  247. /* Medium devices ≥768px */
  248. @media (min-width: 768px) {
  249.   .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  250.   .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  251.   .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  252.   .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  253. }
  254. /* Large devices ≥992px */
  255. @media (min-width: 992px) {
  256.   .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  257.   .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  258.   .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  259.   .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  260. }
  261. .type1 .date-event {
  262.     transition: all 0.5s ease;
  263.     position: absolute;
  264.     bottom: 20px;
  265.     left: 30px;
  266.     z-index: 1;
  267.     font-size: 12px;
  268.     color: #fff;
  269.     font-weight: 700;
  270.     text-transform: uppercase;
  271.     text-align: center;
  272.     line-height: 1.3;
  273.     letter-spacing: 1px;
  274.     background-color: #ff6600 !important;
  275.     padding: 12px;
  276. }
  277. .icon_event{
  278.     color: #ff6600 !important;
  279. }
  280. .wrap_header_banner .overlay-slider {
  281.     position: absolute;
  282.     top: 0;
  283.     left: 0;
  284.     padding-top: 30px; 
  285.     width: 100%;
  286.     height: 100%;
  287.     background-color: rgba(0, 0, 0, 0.6392156863);
  288. }
  289. @media (max-width:575px){
  290.   .header_title_1{
  291.     width:100%;
  292.     display:-webkit-box;
  293.     -webkit-line-clamp:3;
  294.     -webkit-box-orient:vertical;
  295.     overflow:hidden;
  296.   }
  297. }
  298. .header_title_1{
  299.   margin:0;
  300.   padding:0;
  301.   font-size:20px;
  302.   font-weight:bold;
  303.   line-height:1.2;
  304.   display:-webkit-box;
  305.   -webkit-line-clamp:3;
  306.   -webkit-box-orient:vertical;
  307.   overflow:hidden;
  308. }
  309. /* tablette */
  310. @media (min-width:768px){
  311.   .header_title_1{
  312.     font-size:32px;
  313.   }
  314. }
  315. /* desktop */
  316. @media (min-width:992px){
  317.   .header_title_1{
  318.     font-size:45px;
  319.   }
  320. }
  321. @media (max-width:575px){
  322.     .truncate {
  323.         width:100%;
  324.         display:-webkit-box;
  325.         -webkit-line-clamp:2;
  326.         -webkit-box-orient:vertical;
  327.         overflow:hidden;
  328.     }
  329.     .header_title_1 {
  330.         font-size: 20px !important;
  331.     }
  332. }
  333. </style>
  334. {% endblock %}
  335. {% block body %}
  336. {% include 'section/navbar.html.twig' %}
  337. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/table.jpeg')}});        
  338.         background-size: cover;
  339.         background-position: center;
  340.         background-repeat: no-repeat;">
  341.     <div class="overlay-slider">
  342.         <div class="row_site">
  343.             <div class="container_site">
  344.                 <div class="cover_color"></div>
  345.                 <div class="header_banner_el">
  346.                     <div class="header_breadcrumbs">
  347.                         <div id="breadcrumbs">
  348.                         <ul class="breadcrumb">
  349.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  350.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  351.                             <li style="color: #fff!important;">Formations</a></li>
  352.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  353.                             <li style="color: #fff!important;">Certificats internationaux II</li>
  354.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  355.                             <li style="color: #fff!important;">Inscription</a></li>
  356.                         </ul>
  357.                         </div>
  358.                     </div> 
  359.                     <div class="truncate">
  360.                         <h1 class="header_title_1" style="color: #fff!important;">
  361.                             {{ theme }}
  362.                         </h1>
  363.                     </div> 
  364.                 </div>
  365.             </div>
  366.         </div>
  367.     </div>
  368. </div>
  369.     {% for message in app.flashes('success') %}
  370.     <div class="row toast_success" style="top: 100px !important; float: right !important; position: absolute;">
  371.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  372.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  373.         </div>
  374.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  375.             {{ message }}
  376.         </div>
  377.     </div>    
  378.     {% endfor %}
  379.     {% for message in app.flashes('warning') %}
  380.     <div class="row toast_warning" style="top: 100px !important; float: right !important; position: absolute;">
  381.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  382.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  383.         </div>
  384.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  385.             {{ message }}
  386.         </div>
  387.     </div>   
  388.     {% endfor %}
  389.     {% for message in app.flashes('danger') %}
  390.     <div class="row toast_danger" style="top: 100px !important; float: right !important; position: absolute;">
  391.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  392.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  393.         </div>
  394.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  395.             {{ message }}
  396.         </div>
  397.     </div>   
  398.     {% endfor %}
  399.     <div class="container-event">
  400.         <div id="sidebar-active" class="content-event">
  401.           <!-- search form -->
  402.        
  403.             {{ form_start(inscriptionCertyouForm, {attr: {style: 'background-color: #fff !important;'} }) }}
  404.                 <div style="margin-bottom: 10px;">
  405.                     <label style="font-size: 20px; font-weight: bold; font-family: arial; color: #ff6600;">Certificats internationaux II</label>
  406.                 </div>
  407.             
  408.                 <div class="row" style="border: 1px solid #c4c4c4; width: auto !important; padding: 20px !important; ">
  409.                     <div class="col-lg-12 col-md-12 col-sm-12" id="choix">
  410.                         {{ form_row(inscriptionCertyouForm.choix,{'value': certyou.type}) }}
  411.                     </div>
  412.                     <div class="col-lg-12 col-md-12 col-sm-12" id="type">
  413.                         {{ form_row(inscriptionCertyouForm.types) }}
  414.                     </div>
  415.                     <div class="col-lg-6 col-md-6 col-sm-12" id="duree" style="padding: 5px !important; width: 100% !important;">
  416.                         {{ form_row(inscriptionCertyouForm.duree,{'value': certyou.duree}) }}
  417.                     </div>
  418.                     <div class="col-lg-6 col-md-6 col-sm-12" id="lieu" style="padding: 5px !important; width: 100% !important;">
  419.                         {{ form_row(inscriptionCertyouForm.lieu) }}
  420.                     </div>
  421.                     <div class="col-lg-6 col-md-6 col-sm-12" id="session" style="padding: 5px !important; width: 100% !important;">
  422.                         {{ form_row(inscriptionCertyouForm.session) }}
  423.                     </div>
  424.                     <div class="col-lg-12 col-md-12 col-sm-12" id="virtuelle" style="padding: 5px !important; width: 100% !important;">
  425.                         {{ form_row(inscriptionCertyouForm.prixvirtuelle,{'value': certyou.prixvirtuelle~ ' ' ~ certyou.devise}) }}
  426.                     </div>
  427.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel">
  428.                         {{ form_row(inscriptionCertyouForm.prixpresentiel,{'value': certyou.prixpresentiel~ ' ' ~ certyou.devise}) }}
  429.                     </div>
  430.                 </div>
  431.                 
  432.                 <div id="info-perso" class="row" style="margin-bottom: 10px; border: 1px solid #c4c4c4; width: auto !important; padding: 20px !important;">
  433.                     <div class="col-lg-12 col-md-12 col-sm-12">
  434.                         {{ form_row(inscriptionCertyouForm.civilite) }}
  435.                     </div>
  436.                     <div class="col-lg-6 col-md-6 col-sm-12" style="padding: 5px !important; width: 100% !important;">
  437.                         {{ form_row(inscriptionCertyouForm.nom) }}
  438.                     </div>
  439.                     <div class="col-lg-6 col-md-6 col-sm-12" style="padding: 5px !important; width: 100% !important;">
  440.                         {{ form_row(inscriptionCertyouForm.prenoms) }}
  441.                     </div>
  442.                     <div class="col-lg-6 col-md-6 col-sm-12" style="padding: 5px !important; width: 100% !important;">
  443.                         {{ form_row(inscriptionCertyouForm.fonction) }}
  444.                     </div>
  445.                     <div class="col-lg-6 col-md-6 col-sm-12" id="virtuelle" style="padding: 5px !important; width: 100% !important;">
  446.                         {{ form_row(inscriptionCertyouForm.telephone) }}
  447.                     </div>
  448.                     <div class="col-lg-12 col-md-12 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  449.                         {{ form_row(inscriptionCertyouForm.mail) }}
  450.                     </div>
  451.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  452.                         {{ form_row(inscriptionCertyouForm.entreprise) }}
  453.                     </div>
  454.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  455.                         {{ form_row(inscriptionCertyouForm.nbparticipant) }}
  456.                     </div>
  457.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  458.                         {{ form_row(inscriptionCertyouForm.siteweb) }}
  459.                     </div>
  460.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  461.                         {{ form_row(inscriptionCertyouForm.pays) }}
  462.                     </div>
  463.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  464.                         {{ form_row(inscriptionCertyouForm.ville) }}
  465.                     </div>
  466.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  467.                         {{ form_row(inscriptionCertyouForm.boitepostale) }}
  468.                     </div>
  469.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  470.                         {{ form_row(inscriptionCertyouForm.whatsapp) }}
  471.                     </div>
  472.                     <div class="col-lg-6 col-md-6 col-sm-12" id="presentiel" style="padding: 5px !important; width: 100% !important;">
  473.                         {{ form_row(inscriptionCertyouForm.adresse) }}
  474.                     </div>
  475.                     <div class="col-lg-12 col-md-12 col-sm-12" id="presentiel">
  476.                         {{ form_row(inscriptionCertyouForm.commentaire, {attr: {style: 'height: 100px !important;'} }) }}
  477.                     </div>
  478.                     {{ form_row(inscriptionCertyouForm.recaptchaToken) }}
  479.                 </div>
  480.                 <script>
  481.                     grecaptcha.ready(function() {
  482.                         grecaptcha.execute('{{ recaptcha_site_key }}', {
  483.                             action: 'contact'
  484.                         }).then(function(token) {
  485.                             document.getElementById('{{ inscriptionCertyouForm.recaptchaToken.vars.id }}').value = token;
  486.                         });
  487.                     });
  488.                 </script>                
  489.             {{ form_end(inscriptionCertyouForm) }}
  490.     
  491.         </div>
  492.     
  493.        {% include 'section/aside.html.twig' %}
  494.     
  495.     </div>
  496.     {% include 'section/footer.html.twig' %}
  497. {% endblock %}