templates/admin/coach/addCoach.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2.     {% block page_title %}Ajouter Coaches{% endblock %}
  3. {% block breadcump_main %}Coach{% endblock %}
  4. {% block breadcump_subtitle %}Création de compte{% endblock %}
  5. {% block menu_left_sidebar %}
  6.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  7. {% endblock %}
  8. {% block stylesheets %}
  9.     <link href="{{ asset('admin/libs/select2/css/select2.min.css') }}" rel="stylesheet" type="text/css">
  10.     <link href="{{ asset('admin/css/tailwind.min.css') }}" rel="stylesheet" type="text/css">
  11.     <link href="{{ asset('admin/css/tailwind2.css') }}" rel="stylesheet" type="text/css">
  12. {% endblock %}
  13. {% block title %}{{"Ajouter coach"|trans }}{% endblock %} 
  14. {% block content %} 
  15.     <form class="p-1 " method="post" action="{{ path('add_coach')}}" enctype="multipart/form-data"  >
  16.     <div class="container-fluid">
  17.         <div class="row">
  18.             <div class="col-xl-12 px-0">
  19.                 <div class="card">
  20.                     <div class="card-body">
  21.                         <div class="m-auto my-3 relative">
  22.                                 <label for="avatar-upload" class="relative flex justify-center" style="cursor: pointer;">
  23.                                     <img class="w-40 h-40 rounded-full ring-2 ring-gray-700 object-cover dark:ring-gray-500 m-auto" src="{{asset('admin/images/users/images.png') }}"  alt="Bordered avatar" id="avatar-img">
  24.                                     <div class="h-10 w-10 bg-gray-300 rounded-full flex  items-center justify-center" style="position: absolute;right: 48%;bottom: 4px;font-size: 35px;">
  25.                                         <i class="bx bxs-image-alt text-gray-600"></i>
  26.                                     </div>
  27.                                     <input type="file" id="avatar-upload" style="display: none;" name="image" accept="image/*" onchange="changeAvatar(event)">
  28.                                 </label>
  29.                                 <p class="pb-4 text-gray-700 text-center text-sm">Ajouter photo de profile du coach </p>
  30.                             </div>
  31.                             <h5 class="text-lg font-semibold mt-5  ">Information personnel du coach </h5>
  32.                             <p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter les informations personnelles du coach. </p>
  33.                             <div class="row mb-4">
  34.                                 <div class="form-floating col-md-6 col-sm-12 ">
  35.                                     <input type="text" name="firstname"
  36.                                            class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
  37.                                            id="nom" placeholder="John">
  38.                                     <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="nom">Nom</label>
  39.                                     <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  40.                                         <i class="bx bxs-user-circle text-2xl"></i>
  41.                                     </div>
  42.                                 </div>
  43.                                 <div class="form-floating col-md-6 col-sm-12 mt-2.5 sm:mt-0">
  44.                                     <input type="text" name="lastname"
  45.                                            class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
  46.                                            id="prenom" placeholder="Doe">
  47.                                     <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="prenom">Prénom</label>
  48.                                     <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  49.                                         <i class="bx bxs-user-circle text-2xl"></i>
  50.                                     </div>
  51.                                 </div>
  52.                             </div>
  53.                             <div class="row mb-4">
  54.                                 <div class="form-floating mb-3 col-md-6 col-sm-12">
  55.                                     <input type="email" name="email"
  56.                                            class="block font-medium form-control  p-2.5 rounded-lg sm:text-sm text-gray-900 w-full ps-5" id="email"
  57.                                            placeholder="name@example.com">
  58.                                     <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 dark:text-white" for="email">Email address</label>
  59.                                     <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  60.                                         <i class="bx bx-envelope text-2xl"></i>
  61.                                     </div>
  62.                                 </div>
  63.                                 <div class="form-floating col-md-6 mb-3 col-md-6">
  64.                                     <input type="tel"  class="block sm:text-sm form-control p-2.5 rounded-lg w-full input-tel py-3" name="phone" id="phone" placeholder="1234567">
  65.                                 </div>
  66.                             </div>
  67.                             <div class="row mb-4">
  68.                                 <div class=" rounded p-1">
  69.                                     <label for="inline-radio" class="ms-2 text-sm font-medium text-gray-500 dark:text-gray-300">Genre:</label>
  70.                                     <div class="flex justify-between w-50  ms-2 pt-1">
  71.                                         <div class="form-check mb-3">
  72.                                             <input value="1" class="form-check-input" type="radio" name="sex"
  73.                                                    id="formRadios1" checked>
  74.                                             <label class="form-check-label" for="formRadios1">
  75.                                                 Homme
  76.                                             </label>
  77.                                         </div>
  78.                                         <div class="form-check mb-3">
  79.                                             <input value="0" class="form-check-input" type="radio" name="sex"
  80.                                                    id="formRadios1" checked>
  81.                                             <label class="form-check-label" for="formRadios1">
  82.                                                 Femme
  83.                                             </label>
  84.                                         </div>
  85.                                     </div>
  86.                                 </div>
  87.                             </div>
  88.                             <div class="row pb-9 text-sm">
  89.                                 <div class="  ">
  90.                                     <p for="" class="form-label font-semibold col-2  ">Biographie</p>
  91.                                     <div class="relative w-full">
  92.                                         <textarea class="form-control text-sm px-5 pe-4" name="description" placeholder="Qui suis-je ?" id="description_programe" style="height: 100px"></textarea>
  93.                                         <div class="absolute" style="top: 8px;left: 11px;color: #a1a1a1;">
  94.                                             <i class="bx bx-notepad text-2xl" style=""></i>
  95.                                         </div>
  96.                                     </div>
  97.                                 </div>
  98.                             </div>
  99.                             <h5 class="text-lg font-semibold mt-5  ">Info de payment </h5>
  100.                             <p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter les informations de paiements. </p>
  101.                             <div class="row mb-3">
  102.                                 <div class="form-floating col-md-6 col-sm-12 ">
  103.                                     <input type="text" value="FGE" name="nom-bank" 
  104.                                            class="block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="JOHN DOE">
  105.                                     <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="nom-bank">Nom de la banque</label>
  106.                                     <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  107.                                         <i class="bx bxs-bank  text-2xl"></i>
  108.                                     </div>
  109.                                 </div>
  110.                                 <div class="form-floating col-md-6 col-sm-12 mt-2.5 mb-3 sm:mt-0">
  111.                                     <input type="text" value="XXXX" name="iban" 
  112.                                            class="iban-input block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="XXXX">
  113.                                     <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="iban-input">Iban</label>
  114.                                     <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  115.                                         <i class="bx bxs-info-circle text-2xl"></i>
  116.                                     </div>
  117.                                 </div>
  118.                             </div>
  119.                             <div class="form-floating col-md-6 col-sm-12 mt-2.5 mb-4 sm:mt-0">
  120.                                 <input type="text" value="XXXX" name="swift" 
  121.                                        class="swift-input block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="XXXX">
  122.                                 <label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="swift-input">Swift</label>
  123.                                 <div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
  124.                                     <i class="bx bxs-info-circle text-2xl"></i>
  125.                                 </div>
  126.                             </div>
  127.                             <h5 class="text-lg font-semibold mt-5 ">Détails de Résidence </h5>
  128.                             <p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter l'adresse du coach. </p>
  129.                             <div class="row mb-4">
  130.                                 <div class="mb-3 col-md-6">
  131.                                     <select id="countries" name="country" class=" select border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-3.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 py-3">
  132.                                         <option value="BE" data-capital="Brussels">Belgium</option>
  133.                                         <option value="CA" data-capital="Ottawa">Canada</option>
  134.                                         <option value="FR" data-capital="Paris" selected>France</option>
  135.                                         <option value="PF" data-capital="Papeete">French Polynesia</option>
  136.                                         <option value="LU" data-capital="Luxembourg City">Luxembourg</option>
  137.                                         <option value="MA" data-capital="Rabat">Morocco</option>
  138.                                         <option value="NL" data-capital="Amsterdam">Netherlands</option>
  139.                                         <option value="NZ" data-capital="Wellington">New Zealand</option>
  140.                                     </select>
  141.                                 </div>
  142.                                 <div class="form-floating mb-3 col-md-6" id="address">
  143.                                     <input type="text" name="address" class="block sm:text-sm form-control p-2.5 rounded-lg w-full mt-0" id="floatingInput" placeholder="Adresse">
  144.                                     <label class="mb-2 ps-4 text-sm font-medium text-gray-900 dark:text-white" for="floatingInput">Adresse
  145.                                     </label>
  146.                                 </div>
  147.                             </div>
  148.                             <div class="divider mt-16"></div>
  149.                             <div class="flex mt-4 row">
  150.                                 <div class="col-md-6">
  151.                                     <p class="text-xs  text-gray-900 mb-2">En cliquant sur le bouton de Enregistrer, vous mettez à jours les informations envoyé dans ce formulaire </p>
  152.                                 </div>
  153.                                 <div class="col-md flex justify-end">
  154.                                     <button type="reset" style=" color: #ffaa00; border: 1px solid;" class="font-medium h-10  py-2.5 rounded-lg text-center text-sm  w-40 me-2">
  155.                                         Annuler</button>
  156.                                     <button type="submit" style=" background: #ffaa00;" class="font-medium hover:bg-primary-700 h-10  py-2.5 rounded-lg text-center text-sm text-white w-40">Enregistrer</button>
  157.                                 </div>
  158.                             </div>
  159.                     </div>
  160.                     <!-- end card body -->
  161.                 </div>
  162.                 <!-- end card -->
  163.             </div>
  164.             <!-- end col -->
  165.             <!-- end col -->
  166.         </div>
  167.     </div> <!-- container-fluid -->
  168.                         </form>
  169.     <!-- End main -->
  170. {% endblock %}
  171. {% block javascripts %}
  172.     <!-- apexcharts -->
  173.     <script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
  174.     <script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
  175.     <script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
  176.     <script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
  177.     <script src="{{ asset('admin/js/app.js')}}"></script>
  178.     <script>
  179.                                         /*
  180.                                          Template Name: Skote - Admin & Dashboard Template
  181.                                          Author: Themesbrand
  182.                                          Website: https://themesbrand.com/
  183.                                          Contact: themesbrand@gmail.com
  184.                                          File: Form Advanced Js File
  185.                                          */
  186.                                         !function ($) {
  187.                                             "use strict";
  188.                                             var AdvancedForm = function () { };
  189.                                             AdvancedForm.prototype.init = function () {
  190.                                                 // Select2
  191.                                                 if ($('.select2').length > 0) {
  192.                                                     $(".select2").select2();
  193.                                                 }
  194.                                                 if ($('.select2-tags').length > 0) {
  195.                                                     $(".select2-tags").select2({
  196.                                                         tags: true
  197.                                                     });
  198.                                                 }
  199.                                                 if ($('.select2-limiting-3').length > 0) {
  200.                                                     $(".select2-limiting-3").select2({
  201.                                                         maximumSelectionLength: 3
  202.                                                     });
  203.                                                 }
  204.                                                 //Bootstrap-MaxLength
  205.                                                 $('input#defaultconfig').maxlength({
  206.                                                     warningClass: "badge bg-info",
  207.                                                     limitReachedClass: "badge bg-warning"
  208.                                                 });
  209.                                                 $('input#thresholdconfig').maxlength({
  210.                                                     threshold: 20,
  211.                                                     warningClass: "badge bg-info",
  212.                                                     limitReachedClass: "badge bg-warning"
  213.                                                 });
  214.                                                 $('input#moreoptions').maxlength({
  215.                                                     alwaysShow: true,
  216.                                                     warningClass: "badge bg-success",
  217.                                                     limitReachedClass: "badge bg-danger"
  218.                                                 });
  219.                                                 $('input#alloptions').maxlength({
  220.                                                     alwaysShow: true,
  221.                                                     warningClass: "badge bg-success",
  222.                                                     limitReachedClass: "badge bg-danger",
  223.                                                     separator: ' out of ',
  224.                                                     preText: 'You typed ',
  225.                                                     postText: ' chars available.',
  226.                                                     validate: true
  227.                                                 });
  228.                                                 $('textarea#textarea').maxlength({
  229.                                                     alwaysShow: true,
  230.                                                     warningClass: "badge bg-info",
  231.                                                     limitReachedClass: "badge bg-warning"
  232.                                                 });
  233.                                                 $('input#placement').maxlength({
  234.                                                     alwaysShow: true,
  235.                                                     placement: 'top-left',
  236.                                                     warningClass: "badge bg-info",
  237.                                                     limitReachedClass: "badge bg-warning"
  238.                                                 });
  239.                                             },
  240.                                                     //init
  241.                                                     $.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
  242.                                         }(window.jQuery),
  243.                                                 //Datepicker
  244.                                                         function ($) {
  245.                                                             "use strict";
  246.                                                             $.AdvancedForm.init();
  247.                                                         }(window.jQuery);
  248.     </script>
  249. {% endblock %}