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

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2. {% block page_title %}Ajouter Description {% endblock %}
  3. {% block breadcump_main %}Experiences{% endblock %}
  4. {% block breadcump_subtitle %}Description{% 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_description',{'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-2 ">Description  </h5>
  22.                                 <p class="text-gray-700 text-sm mb-3">Ici ajouter et modifier la description de l'expérience.
  23.                                 </p>
  24.                                 <div class="are-description ">
  25.                                     <textarea required="" name="description" id="descriptionEditor" class="w-full h-64 mt-4">{{ experience.description }}</textarea>
  26.                                 </div>
  27.                                 <h5 class="text-lg font-semibold mt-5 ">Inclus & Non inclus  </h5>
  28.                                 <p class="text-gray-700 text-sm">Lister ce qui est inclus de ce qui est non dan le prix de votre expérience.
  29.                                 </p>
  30.                                 <div class="divider w-2/6 mt-1 mb-5"></div>
  31.                                 <!-- Inclus -->
  32.                                 <div class="row">
  33.                                     <div class="sm:w-4/12 w-full flex flex-col justify-between">
  34.                                         <div>
  35.                                             <p for="" class="form-label font-medium  ">Lister ce qui est <span class="text-green text-uppercase"style="color:#43a32d">inclus</span> durant l'experience </p>
  36.                                             <p class="text-xs w-3/5 text-gray-600 hidden sm:block">Lister ce que vous avez inclus dans cette expérience.</p>
  37.                                         </div>
  38.                                     </div>
  39.                                     <div class="w-full sm:w-8/12">
  40.                                         <div class="row  text-sm">
  41.                                             <div id="inclus-forms">
  42.                                                 {% for included in experience.included %}
  43.                                                     <div class="flex mb-3 inclus-item" >
  44.                                                         <div class="relative col-12  ">
  45.                                                             <div class="flex items-center">
  46.                                                                 <input value="{{ included }}" required="" type="text" name="included[]" class="form-control h-12 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600
  47.                                                                        block w-full p-2.5 ps-3" id="nom" placeholder="Écrire les services exclu ici ">
  48.                                                                 <div  class="add-icon add-inclus h-6 rounded cursor-pointer ps-2">
  49.                                                                     <i class="bx bx-plus-circle text-orange text-2xl"></i>
  50.                                                                 </div>
  51.                                                             </div>
  52.                                                         </div>
  53.                                                     </div>
  54.                                                 {% endfor %}
  55.                                             </div>
  56.                                         </div>
  57.                                     </div>
  58.                                 </div>
  59.                                 <!-- Exclus -->
  60.                                 <div class="row mt-3">
  61.                                     <div class="sm:w-4/12 w-full flex flex-col justify-between">
  62.                                         <div>
  63.                                             <div>
  64.                                                 <p for="" class="form-label font-medium  ">Lister ce qui n'est <span class="text-red-500 text-uppercase">pas inclus</span>  </p>
  65.                                                 <p class="text-xs w-3/5 text-gray-600 hidden sm:block">Lister ce que vous avez exclus dans cette expérience.</p>
  66.                                             </div>
  67.                                         </div>
  68.                                     </div>
  69.                                     <div class="w-full sm:w-8/12">
  70.                                         <div class="row mb-4 text-sm">
  71.                                             <div id="exclus-forms">
  72.                                                 {% for notincluded in experience.notincluded %}
  73.                                                     <div class=" flex exclu-item mb-4" >
  74.                                                         <div class="relative col-12 flex items-center h-12">
  75.                                                             <input value='{{ notincluded }}' required="" type="text" name="notincluded[]" class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600
  76.                                                                    block w-full p-2.5 ps-3" id="nom" placeholder="Écrire les services exclu ici ">
  77.                                                             <div id="add-highlight" class=" add-icon add-exclu  h-6 rounded cursor-pointer ps-2">
  78.                                                                 <i class="bx bx-plus-circle text-red-500 text-2xl"></i>
  79.                                                             </div>
  80.                                                         </div>
  81.                                                     </div>
  82.                                                 {% endfor %}
  83.                                             </div>
  84.                                         </div>
  85.                                     </div>
  86.                                 </div>
  87.                                 <div class="divider mt-20 mb-3 hidden sm:block"></div>
  88.                                 <div class="flex mt-4 row pt-3">
  89.                                     <div class="col-md-6">
  90.                                         <p class="text-xs  text-gray-900 mb-2">En cliquant sur le bouton de Suivant, vous mettez à jours les informations
  91.                                             envoyé dans ce formulaire </p>
  92.                                     </div>
  93.                                     <div class="col-md flex justify-end">
  94.                                         <button type="" style=" color: #ffaa00; border: 1px solid;" 
  95.                                                 class="font-medium h-10 cursor-pointer   py-2.5 rounded-lg text-center text-sm  w-40 me-2">
  96.                                             Annuler</button>
  97.                                         <button type="" style=" background: #ffaa00;" 
  98.                                                 class="font-medium hover:bg-primary-700 h-10 cursor-pointer   py-2.5 rounded-lg text-center text-sm text-white w-40">
  99.                                             Enregistrer</button>
  100.                                     </div>
  101.                                 </div>
  102.                             </div>
  103.                         </div>
  104.                         <!-- end card body -->
  105.                     </div>
  106.                     <!-- end card -->
  107.                 </div>
  108.                 <!-- end col -->
  109.                 <!-- end col -->
  110.             </div>
  111.         </div> <!-- container-fluid -->
  112.     </form>
  113. {% endblock %}
  114. {% block javascripts %}
  115.     <!-- apexcharts -->
  116.     <script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
  117.     <script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
  118.     <script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
  119.     <script src="{{ asset('admin/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js')}}"></script>
  120.     <script src="{{ asset('admin/libs/@chenfengyuan/datepicker/datepicker.min.js')}}"></script>
  121.     <script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
  122.     <script src="{{ asset('admin/js/app.js')}}"></script>
  123.     <script src="{{ asset('admin/js/pages/description.js')}}"></script>
  124.     <script>
  125.         /*
  126.          Template Name: Skote - Admin & Dashboard Template
  127.          Author: Themesbrand
  128.          Website: https://themesbrand.com/
  129.          Contact: themesbrand@gmail.com
  130.          File: Form Advanced Js File
  131.          */
  132.         !function ($) {
  133.             "use strict";
  134.             var AdvancedForm = function () { };
  135.             AdvancedForm.prototype.init = function () {
  136.                 // Select2
  137.                 if ($('.select2').length > 0) {
  138.                     $(".select2").select2();
  139.                 }
  140.                 if ($('.select2-tags').length > 0) {
  141.                     $(".select2-tags").select2({
  142.                         tags: true
  143.                     });
  144.                 }
  145.                 if ($('.select2-limiting-3').length > 0) {
  146.                     $(".select2-limiting-3").select2({
  147.                         maximumSelectionLength: 3
  148.                     });
  149.                 }
  150.                 //Bootstrap-MaxLength
  151.                 $('input#defaultconfig').maxlength({
  152.                     warningClass: "badge bg-info",
  153.                     limitReachedClass: "badge bg-warning"
  154.                 });
  155.                 $('input#thresholdconfig').maxlength({
  156.                     threshold: 20,
  157.                     warningClass: "badge bg-info",
  158.                     limitReachedClass: "badge bg-warning"
  159.                 });
  160.                 $('input#moreoptions').maxlength({
  161.                     alwaysShow: true,
  162.                     warningClass: "badge bg-success",
  163.                     limitReachedClass: "badge bg-danger"
  164.                 });
  165.                 $('input#alloptions').maxlength({
  166.                     alwaysShow: true,
  167.                     warningClass: "badge bg-success",
  168.                     limitReachedClass: "badge bg-danger",
  169.                     separator: ' out of ',
  170.                     preText: 'You typed ',
  171.                     postText: ' chars available.',
  172.                     validate: true
  173.                 });
  174.                 $('textarea#textarea').maxlength({
  175.                     alwaysShow: true,
  176.                     warningClass: "badge bg-info",
  177.                     limitReachedClass: "badge bg-warning"
  178.                 });
  179.                 $('input#placement').maxlength({
  180.                     alwaysShow: true,
  181.                     placement: 'top-left',
  182.                     warningClass: "badge bg-info",
  183.                     limitReachedClass: "badge bg-warning"
  184.                 });
  185.             },
  186.                     //init
  187.                     $.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
  188.         }(window.jQuery),
  189.                 //Datepicker
  190.                         function ($) {
  191.                             "use strict";
  192.                             $.AdvancedForm.init();
  193.                         }(window.jQuery);
  194.     </script>
  195. {% endblock %}