templates/admin/experience/add/addHighlights.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2. {% block page_title %}Lister les ponits fort {% endblock %}
  3. {% block breadcump_main %}Experiences{% endblock %}
  4. {% block breadcump_subtitle %}Points fort{% 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('add_highlights',{'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="bar-top sm:flex block gap-2 bg-white p-2 pb-3 mb-8 text-uppercase rounded-2xl flex-wrap border-b border-gray-200">
  21.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 " id="general-info">General Info</h3>
  22.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  23.                                 <h3 class="text-sm  cursor-pointer hover:text-orange  pt-2 " id="gallery">Hébergement</h3>
  24.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  25.                                 <h3 class="text-sm  cursor-pointer hover:text-orange  pt-2 " id="gallery">Gallery</h3>
  26.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  27.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 " id="itineraire">Programme</h3>
  28.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  29.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 " id="highlights">Description</h3>
  30.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  31.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 " id="dispo">Disponibilité</h3>
  32.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  33.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 " id="disponibilite">Tarification</h3>
  34.                                 <span class="border-r mx-2 h-6 hidden sm:flex"></span>
  35.                                 <h3 class="text-sm  cursor-pointer hover:text-orange pt-2 active-nav" id="faq">Points Forts</h3>
  36.                             </div> 
  37.                             <div class="sm:p-4 p-2 pb-0 pt-1" id="myform2">
  38.                                 <div class="row">
  39.                                     <div class="col-md-6">
  40.                                         <div class="form-floating mb-3">
  41.                                             <label class="form-label">Destination</label>
  42.                                             <select  required="" name="destination" class="form-select form-select6LG select2-tags" id="floatingSelectGrid" aria-label="Floating label select example">
  43.                                                 {% for destination in country.destinations %}
  44.                                                     <option value="{{ destination.id }}" >{{ destination.name }}</option>
  45.                                                 {% endfor %}
  46.                                             </select>
  47.                                         </div>
  48.                                     </div>
  49.                                     <div class="col-md-6">
  50.                                         <div class="form-floating mb-3">
  51.                                             <label class="form-label">Sous catégorie</label>
  52.                                             <select  required="" name="subcategory" class="form-select form-select6LG select2" id="floatingSelect" aria-label="Floating label select example">
  53.                                                 {% for subcategory in category.subcategories %}
  54.                                                     <option value="{{ subcategory.id }}" >{{ subcategory.name }}</option>
  55.                                                 {% endfor %}
  56.                                             </select>
  57.                                         </div>
  58.                                     </div>
  59.                                 </div>
  60.                                 <h5 class="text-lg font-semibold mt-5 ">Points Forts</h5>
  61.                                 <p class="text-gray-700 text-sm">Ajouter les points forts qui marque votre expérience. </p>
  62.                                 <div class="divider w-2/6 mt-1 mb-5"></div>
  63.                                 <div id="faq-forms">
  64.                                     <div class="row mb-4 text-sm  highlight-block ">
  65.                                         <div class="flex items-center">
  66.                                             <div class="relative col-8 flex">
  67.                                                 <input required="" type="text" id="highlight1" name="highlights[]"
  68.                                                        class="form-control form-control-lg sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
  69.                                                        placeholder="Points fort ">
  70.                                                 <div class="absolute" style="top: 7px;left: 6px;color: #a1a1a1;">
  71.                                                     <i class="bx bx-list-check" style="font-size: 29px;"></i>
  72.                                                 </div>
  73.                                                 <div class="h-6 rounded cursor-pointer ps-2 delete-icon"><i class="bx bx-x-circle text-2xl"></i></div>
  74.                                             </div>
  75.                                         </div>
  76.                                     </div>
  77.                                 </div>
  78.                                 <div id="add-faq" class="mt-4  py-2 flex items-center justify-end gap-2  rounded cursor-pointer ">
  79.                                     <p class="text-base m-0 font-semibold">Ajouter</p>
  80.                                     <i class="bx bx-plus-circle text-orange text-2xl"></i>
  81.                                 </div>
  82.                             </div>
  83.                         </div>
  84.                         <!-- end card body -->
  85.                     </div>
  86.                     <!-- end card -->
  87.                 </div>
  88.                 <!-- end col -->
  89.                 <div class="row">
  90.                     <div class="col-lg-12">
  91.                         <div class="card">
  92.                             <div class="card-body">
  93.                                 <div class="flex mt-4 row">
  94.                                     <div class="col-md-6">
  95.                                         <p class="text-xs  text-gray-900 mb-2">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
  96.                                             enregistrer par ce formulaire </p>                                    </div>
  97.                                     <div class="col-md flex justify-end">
  98.                                         <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">
  99.                                             Annuler</button>
  100.                                         <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>
  101.                                     </div>
  102.                                 </div>
  103.                             </div>
  104.                         </div>
  105.                     </div>
  106.                 </div>
  107.                 <!-- end col -->
  108.             </div>
  109.         </div> <!-- container-fluid -->
  110.     </form>
  111. {% endblock %}
  112. {% block javascripts %}
  113.     <!-- apexcharts -->
  114.     <script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
  115.     <script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
  116.     <script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
  117.     <script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
  118.     <script src="{{ asset('admin/js/app.js')}}"></script>
  119.     <script src="{{ asset('admin/js/pages/Highlights.js')}}"></script>
  120.     <script>
  121.         /*
  122.          Template Name: Skote - Admin & Dashboard Template
  123.          Author: Themesbrand
  124.          Website: https://themesbrand.com/
  125.          Contact: themesbrand@gmail.com
  126.          File: Form Advanced Js File
  127.          */
  128.         !function ($) {
  129.             "use strict";
  130.             var AdvancedForm = function () { };
  131.             AdvancedForm.prototype.init = function () {
  132.                 // Select2
  133.                 if ($('.select2').length > 0) {
  134.                     $(".select2").select2();
  135.                 }
  136.                 if ($('.select2-tags').length > 0) {
  137.                     $(".select2-tags").select2({
  138.                         tags: true
  139.                     });
  140.                 }
  141.                 if ($('.select2-limiting-3').length > 0) {
  142.                     $(".select2-limiting-3").select2({
  143.                         maximumSelectionLength: 3
  144.                     });
  145.                 }
  146.                 //Bootstrap-MaxLength
  147.                 $('input#defaultconfig').maxlength({
  148.                     warningClass: "badge bg-info",
  149.                     limitReachedClass: "badge bg-warning"
  150.                 });
  151.                 $('input#thresholdconfig').maxlength({
  152.                     threshold: 20,
  153.                     warningClass: "badge bg-info",
  154.                     limitReachedClass: "badge bg-warning"
  155.                 });
  156.                 $('input#moreoptions').maxlength({
  157.                     alwaysShow: true,
  158.                     warningClass: "badge bg-success",
  159.                     limitReachedClass: "badge bg-danger"
  160.                 });
  161.                 $('input#alloptions').maxlength({
  162.                     alwaysShow: true,
  163.                     warningClass: "badge bg-success",
  164.                     limitReachedClass: "badge bg-danger",
  165.                     separator: ' out of ',
  166.                     preText: 'You typed ',
  167.                     postText: ' chars available.',
  168.                     validate: true
  169.                 });
  170.                 $('textarea#textarea').maxlength({
  171.                     alwaysShow: true,
  172.                     warningClass: "badge bg-info",
  173.                     limitReachedClass: "badge bg-warning"
  174.                 });
  175.                 $('input#placement').maxlength({
  176.                     alwaysShow: true,
  177.                     placement: 'top-left',
  178.                     warningClass: "badge bg-info",
  179.                     limitReachedClass: "badge bg-warning"
  180.                 });
  181.             },
  182.                     //init
  183.                     $.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
  184.         }(window.jQuery),
  185.                 //Datepicker
  186.                         function ($) {
  187.                             "use strict";
  188.                             $.AdvancedForm.init();
  189.                         }(window.jQuery);
  190.     </script>
  191. {% endblock %}