templates/site/site.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>
  6.         {% block title %}
  7.                 IAA E-learning - DOYEN DES INSTITUTS DE FORMATION EN ASSURANCE
  8.         {% endblock %}
  9.         </title>
  10.         <!-- Titre (70 caractères max) -->
  11.     <!-- Description (150-160 caractères) -->
  12.     <meta name="description" content="Le cycle de formation en assurance de l’IAA est approuvé par les instances de contrôle et est reconnu pour compléter le dossier d’agrément pour l’exercice du métier d’agent général en Tunisie.">
  13.     <!-- Indexation par Google -->
  14.     <meta name="robots" content="index, follow">
  15.         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  16.         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  17. <link rel="stylesheet" href="{{ asset('assets/site/css/style.css') }}">
  18.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  19.     </head>
  20.     <body>
  21.         <div class="formation">
  22.             {{ include("site/header.html.twig") }}
  23.             {% block page %}
  24.                 
  25.             {% endblock %}
  26.             {{ include("site/footer.html.twig") }}
  27.         </div>
  28.         <script>
  29. $('#imgavatar').change(function () {
  30.         console.log("userPhoto")
  31.         var form = document.getElementById('imgavatar').files[0]
  32.         console.log($(this).data('userid'))
  33.         var formData = new FormData()
  34.         formData.append('photoDeProfilFile', form)
  35.         var url = "{{ path('app_modifier_photo_de_profil', {'id':'mon_id'}) }}"
  36.         url = url = url.replace('mon_id', $(this).data('userid'))
  37.         $.ajax({
  38.           url: url,
  39.           method: 'POST',
  40.           data: formData,
  41.           contentType: false,
  42.           processData: false,
  43.           cache: false,
  44.           dataType: 'json',
  45.           success: function (r) {
  46.             console.log(r)
  47.           }
  48.         })
  49.       })
  50.       $('#updateProfil').click(function () {
  51.         var url = "{{ path('app_user_editprofil') }}"
  52.         $.post(url,
  53.         {
  54.             civilite: $("#civilite").val(),
  55.             nom: $("#nom").val(),
  56.             prenom: $("#prenom").val(),
  57.             email: $("#email").val(),
  58.             tel: $("#tel").val(),
  59.             adresse: $("#adresse").val(),
  60.             codePostal: $("#codePostal").val(),
  61.             ville: $("#ville").val(),
  62.         },
  63.         function(data, status){
  64.             location.reload();
  65.         });
  66.         
  67.         
  68.       })
  69.       $('#showform').click(function () {
  70.             console.log('dssss')
  71.             $(".editform").show()
  72.             $(".details-client").hide()
  73.         });
  74.          $('.inscrire').click(function () {
  75.              
  76.             $("#inscription").show()
  77.             $("#login").hide()
  78.         });
  79.  
  80.  $('.login').click(function () {
  81.              
  82.             $("#login").show()
  83.             $("#inscription").hide()
  84.         }); 
  85.         $('#btnformcontact').click(function () {
  86.             var envoi = 1
  87.             if($("#nom").val() == ""){
  88.                 envoi = 0;
  89.                 $("#nom").css("border", "1px solid red")
  90.             }
  91.             if($("#telephone").val() == ""){
  92.                 envoi = 0;
  93.                 $("#telephone").css("border", "1px solid red")
  94.             }
  95.             if(envoi == 1){
  96.                 var url = "{{ path('envoi_mail_contact_site') }}"
  97.                 $.post(url,
  98.                 {
  99.                     nom: $("#nom").val(),
  100.                     sujet: $("#sujet").val(),
  101.                     email: $("#email").val(),
  102.                     telephone: $("#telephone").val(),
  103.                     message: $("#message").val(),
  104.                 },
  105.                 function(data, status){
  106.                     location.reload();
  107.                 });
  108.             }
  109.             
  110.         });
  111.         </script>
  112.                 </body>
  113.             </html>