templates/admin/experience/edit/editGeneralinfo.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2. {% block page_title %}Modification d'informations Génerale {% endblock %}
  3. {% block breadcump_main %}Experiences{% endblock %}
  4. {% block breadcump_subtitle %}Nouvelle experience{% 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 content %}
  14.     <form id="form-general" class="general-info custom-validation" method="POST" action="{{ path('edit_general_info',{'id':experience.id}) }}" enctype="multipart/form-data"  >
  15.         <div class="container-fluid">
  16.             <div class="row">
  17.                 <div class="col-xl-12 px-0">
  18.                     <div class="card">
  19.                         <div class="card-body">                                             
  20.                             <div class="sm:p-4 p-2 pb-0 pt-1" >
  21.                                 <h5 class="text-lg font-semibold mt-5 ">Information General de l’expérience</h5>
  22.                                 <p class="text-gray-700 text-sm">Enregistrer les informations au dessous pour décrire : {{ experience.title }} .</p>
  23.                                 <div class="divider w-2/6 mt-1 mb-5"></div>
  24.                                 <div class="row mb-4 text-sm  ">
  25.                                     <div class="flex items-center">
  26.                                         <p for="" class="form-label font-semibold col-3">Titre</p>
  27.                                         <div class="form-floating mb-3 col-9">
  28.                                             <input value="{{ experience.title }}" required="" class="form-control"  id="floatingnameInput" required="" type="text" name="title"  placeholder="Entrer le nom de l'expérience">
  29.                                             <label for="floatingnameInput">Entrer le nom de l'expérience</label>
  30.                                         </div>
  31.                                     </div>
  32.                                 </div>
  33.                                 <div class="row mb-4 text-sm">
  34.                                     <div class=" flex ">
  35.                                         <p for="" class="form-label font-semibold col-3 "> Résumé </p>
  36.                                         <div class="relative col-9">
  37.                                             <textarea required="" class="form-control text-sm px-5" name="resume" placeholder="Taper une petite description "
  38.                                                       id="floatingTextarea2" style="height: 100px">{{ experience.resume }}</textarea>
  39.                                             <div class="absolute" style="top: 8px;left: 11px;color: #a1a1a1;">
  40.                                                 <i class="bx bx-notepad text-2xl"></i>
  41.                                             </div>
  42.                                         </div>
  43.                                     </div>
  44.                                 </div>
  45.                                 <div class="mb-3 row flex items-start text-sm">
  46.                                     <p for="formrow-inputState" class="form-label font-semibold col-3">Type de coaching</p>
  47.                                     <div class="col-9 px-0">
  48.                                         <div class="flex gap-2 justify-between">
  49.                                             <div class="flex items-center ps-4 w-1/3  rounded dark:border-gray-700">
  50.                                                 <div class="form-check mb-3">
  51.                                                     <input {% if experience.coachingtype == 'private' %} checked{% endif %} class="form-check-input" type="radio" value="private" name="coachingtype"
  52.                                                            id="formRadios1" checked>
  53.                                                     <label class="form-check-label" for="formRadios1">
  54.                                                         Coaching Privé
  55.                                                     </label>
  56.                                                 </div>
  57.                                             </div>
  58.                                             <div class="flex items-center ps-4 w-1/3  rounded dark:border-gray-700">
  59.                                                 <div class="form-check mb-3">
  60.                                                     <input {% if experience.coachingtype == 'groupe' %} checked{% endif %}  class="form-check-input" type="radio" value="groupe" name="coachingtype"
  61.                                                            id="formRadios2" >
  62.                                                     <label class="form-check-label" for="formRadios2">
  63.                                                         Coaching en groupe
  64.                                                     </label>
  65.                                                 </div>
  66.                                             </div>
  67.                                             <div class="flex items-center ps-4 w-1/3  rounded dark:border-gray-700">
  68.                                                 <div class="form-check mb-3">
  69.                                                     <input {% if experience.coachingtype == 'visio' %} checked{% endif %}  class="form-check-input" type="radio" value="visio" name="coachingtype"
  70.                                                            id="formRadios3">
  71.                                                     <label class="form-check-label" for="formRadios3">
  72.                                                         Coaching par Visio
  73.                                                     </label>
  74.                                                 </div>
  75.                                             </div>
  76.                                         </div> 
  77.                                         <p class="text-[10px]  text-gray-600 my-2">*Vous pouvez sélectionné un seul type de coaching.</p>
  78.                                     </div>
  79.                                 </div>
  80.                                 <div class="row">
  81.                                     <div class="col-md-6">
  82.                                         <div class="form-floating mb-3">
  83.                                             <label class="form-label">Destination</label>
  84.                                             <input hidden="" type="text" value="{{ experience.destination.country.id }}" name="country" >
  85.                                             <select required="" name="destination" class="form-select form-select6LG select2-tags" id="floatingSelectGrid" aria-label="Floating label select example">
  86.                                                 {% for destination in experience.destination.country.destinations %}
  87.                                                     <option  {% if destination.id == experience.destination.id %}selected=""{% endif %} value="{{ destination.id }}" >{{ destination.name }}</option>
  88.                                                 {% endfor %}
  89.                                             </select>
  90.                                         </div>
  91.                                     </div>
  92.                                     <div class="col-md-6">
  93.                                         <div class="form-floating mb-3">
  94.                                             <label class="form-label">Sous catégorie</label>
  95.                                             <select multiple="" required="" name="subcategories[]" class="form-select form-select6LG select2" id="floatingSelect" aria-label="Floating label select example">
  96.                                                 {% for subcategory in experience.subcategories[0].category.subcategories %}
  97.                                                     <option {% if subcategory in experience.subcategories %}selected=""{% endif %} value="{{ subcategory.id }}" >{{ subcategory.name }}</option>
  98.                                                 {% endfor %}
  99.                                             </select>
  100.                                         </div>
  101.                                     </div>
  102.                                 </div>
  103.                                 <div class="divider mt-20 mb-3"></div>
  104.                                 <div class="flex mt-4 row pt-3">
  105.                                     <div class="col-md-6">
  106.                                         <p class="text-xs  text-gray-900 mb-2">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
  107.                                             enregistrer par ce formulaire </p>
  108.                                     </div>
  109.                                     <div class="col-md flex justify-end">
  110.                                         <button type="button" style=" color: #ffaa00; border: 1px solid;"
  111.                                                 class="font-medium h-10 cursor-pointer   py-2.5 rounded-lg text-center text-sm  w-40 me-2">
  112.                                             Annuler</button>
  113.                                         <button type="submit" style=" background: #ffaa00;" 
  114.                                                 class="font-medium hover:bg-pri cursor-pointer mary-700 h-10  py-2.5 rounded-lg text-center text-sm text-white w-40">
  115.                                             Enregistrer</button>
  116.                                     </div>
  117.                                 </div>
  118.                             </div>
  119.                         </div>
  120.                         <!-- end card body -->
  121.                     </div>
  122.                     <!-- end card -->
  123.                 </div>
  124.                 <!-- end col -->
  125.                 <!-- end col -->
  126.             </div>
  127.         </div> <!-- container-fluid -->
  128.     </form>
  129. {% endblock %}
  130. {% block javascripts %}
  131.     <!-- apexcharts -->
  132.     <script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
  133.     <script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
  134.     <script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
  135.     <script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
  136.     <script src="{{ asset('admin/js/app.js')}}"></script>
  137.     <script>
  138.         /*
  139.          Template Name: Skote - Admin & Dashboard Template
  140.          Author: Themesbrand
  141.          Website: https://themesbrand.com/
  142.          Contact: themesbrand@gmail.com
  143.          File: Form Advanced Js File
  144.          */
  145.         !function ($) {
  146.             "use strict";
  147.             var AdvancedForm = function () { };
  148.             AdvancedForm.prototype.init = function () {
  149.                 // Select2
  150.                 if ($('.select2').length > 0) {
  151.                     $(".select2").select2();
  152.                 }
  153.                 if ($('.select2-tags').length > 0) {
  154.                     $(".select2-tags").select2({
  155.                         tags: true
  156.                     });
  157.                 }
  158.                 if ($('.select2-limiting-3').length > 0) {
  159.                     $(".select2-limiting-3").select2({
  160.                         maximumSelectionLength: 3
  161.                     });
  162.                 }
  163.                 //Bootstrap-MaxLength
  164.                 $('input#defaultconfig').maxlength({
  165.                     warningClass: "badge bg-info",
  166.                     limitReachedClass: "badge bg-warning"
  167.                 });
  168.                 $('input#thresholdconfig').maxlength({
  169.                     threshold: 20,
  170.                     warningClass: "badge bg-info",
  171.                     limitReachedClass: "badge bg-warning"
  172.                 });
  173.                 $('input#moreoptions').maxlength({
  174.                     alwaysShow: true,
  175.                     warningClass: "badge bg-success",
  176.                     limitReachedClass: "badge bg-danger"
  177.                 });
  178.                 $('input#alloptions').maxlength({
  179.                     alwaysShow: true,
  180.                     warningClass: "badge bg-success",
  181.                     limitReachedClass: "badge bg-danger",
  182.                     separator: ' out of ',
  183.                     preText: 'You typed ',
  184.                     postText: ' chars available.',
  185.                     validate: true
  186.                 });
  187.                 $('textarea#textarea').maxlength({
  188.                     alwaysShow: true,
  189.                     warningClass: "badge bg-info",
  190.                     limitReachedClass: "badge bg-warning"
  191.                 });
  192.                 $('input#placement').maxlength({
  193.                     alwaysShow: true,
  194.                     placement: 'top-left',
  195.                     warningClass: "badge bg-info",
  196.                     limitReachedClass: "badge bg-warning"
  197.                 });
  198.             },
  199.                     //init
  200.                     $.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
  201.         }(window.jQuery),
  202.                 //Datepicker
  203.                         function ($) {
  204.                             "use strict";
  205.                             $.AdvancedForm.init();
  206.                         }(window.jQuery);
  207.     </script>
  208. {% endblock %}