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

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2. {% block page_title %}Ajouter Programme {% endblock %}
  3. {% block breadcump_main %}Experiences{% endblock %}
  4. {% block breadcump_subtitle %}Nouveau programe{% 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_program',{'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 active-nav " 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 " id="faq">Points Forts</h3>
  36.                             </div> 
  37.                             <div class="sm:p-4 p-2 pb-0 pt-1" >
  38.                                 <h5 class="text-lg font-semibold mt-2 ">Information sur Le programme</h5>
  39.                                 <p class="text-gray-700 text-sm">Ici, vous pouvez modifier et consulter Le programe du séjour. </p>
  40.                                 <div class="divider w-2/6 mt-1 mb-5"></div>
  41.                                 <div id="day-forms">
  42.                                     <div class="row mb-4 text-sm  ">
  43.                                         <div class="flex items-center">
  44.                                             <p for="" class="form-label font-semibold col-3">Titre </p>
  45.                                             <div class="relative col-8 ">
  46.                                                 <input required="" type="text" name="days[]" 
  47.                                                        class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
  48.                                                        id="titre_programe" placeholder="Écrire le titre ">
  49.                                                 <div class="absolute" style="top: 3px;left: 6px;color: #a1a1a1;">
  50.                                                     <i class="bx bx-grid-small" style="font-size: 36px;"></i>
  51.                                                 </div>
  52.                                             </div>
  53.                                         </div>
  54.                                     </div>
  55.                                     <div class="row pb-9 text-sm">
  56.                                         <div class=" flex ">
  57.                                             <p for="" class="form-label font-semibold col-3 ">Description</p>
  58.                                             <div class="relative col-8">
  59.                                                 <textarea required="" name="descriptions[]" class="form-control text-sm px-5 pe-4"  placeholder="Écrire la description ici"
  60.                                                           id="description_programe" style="height: 100px"></textarea>
  61.                                                 <div class="absolute" style="top: 8px;left: 11px;color: #a1a1a1;">
  62.                                                     <i class="bx bx-notepad text-2xl"></i>
  63.                                                 </div>
  64.                                             </div>
  65.                                         </div>
  66.                                     </div>
  67.                                 </div>
  68.                                 <div id="add-day" class="mt-4  py-2 flex justify-end items-center gap-2  rounded cursor-pointer ">
  69.                                     <p class="m-0 text-base font-semibold">Nouveau programme </p>
  70.                                     <i class="bx bx-plus-circle text-orange text-2xl"></i>
  71.                                 </div>
  72.                                 <div class="divider mt-20 mb-3 hidden sm:block"></div>
  73.                             </div>
  74.                         </div>
  75.                         <!-- end card body -->
  76.                     </div>
  77.                     <!-- end card -->
  78.                     <div class="row">
  79.                         <div class="col-lg-12">
  80.                             <div class="card">
  81.                                 <div class="card-body">
  82.                                     <div class="flex mt-4 row">
  83.                                         <div class="col-md-6">
  84.                                             <p class="text-xs  text-gray-900 mb-2">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
  85.                                                 enregistrer par ce formulaire </p>                                    </div>
  86.                                         <div class="col-md flex justify-end">
  87.                                             <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">
  88.                                                 Annuler</button>
  89.                                             <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>
  90.                                         </div>
  91.                                     </div>
  92.                                 </div>
  93.                             </div>
  94.                         </div>
  95.                     </div>
  96.                 </div>
  97.                 <!-- end col -->
  98.                 <!-- end col -->
  99.             </div>
  100.         </div> <!-- container-fluid -->
  101.     </form>
  102. {% endblock %}
  103. {% block javascripts %}
  104.     <!-- apexcharts -->
  105.     <script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
  106.     <script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
  107.     <script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
  108.     <script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
  109.     <script src="{{ asset('admin/js/pages/programe.js')}}"></script>
  110.     <script src="{{ asset('admin/js/app.js')}}"></script>
  111.     <script>
  112.         /*
  113.          Template Name: Skote - Admin & Dashboard Template
  114.          Author: Themesbrand
  115.          Website: https://themesbrand.com/
  116.          Contact: themesbrand@gmail.com
  117.          File: Form Advanced Js File
  118.          */
  119.         !function ($) {
  120.             "use strict";
  121.             var AdvancedForm = function () { };
  122.             AdvancedForm.prototype.init = function () {
  123.                 // Select2
  124.                 if ($('.select2').length > 0) {
  125.                     $(".select2").select2();
  126.                 }
  127.                 if ($('.select2-tags').length > 0) {
  128.                     $(".select2-tags").select2({
  129.                         tags: true
  130.                     });
  131.                 }
  132.                 if ($('.select2-limiting-3').length > 0) {
  133.                     $(".select2-limiting-3").select2({
  134.                         maximumSelectionLength: 3
  135.                     });
  136.                 }
  137.                 //Bootstrap-MaxLength
  138.                 $('input#defaultconfig').maxlength({
  139.                     warningClass: "badge bg-info",
  140.                     limitReachedClass: "badge bg-warning"
  141.                 });
  142.                 $('input#thresholdconfig').maxlength({
  143.                     threshold: 20,
  144.                     warningClass: "badge bg-info",
  145.                     limitReachedClass: "badge bg-warning"
  146.                 });
  147.                 $('input#moreoptions').maxlength({
  148.                     alwaysShow: true,
  149.                     warningClass: "badge bg-success",
  150.                     limitReachedClass: "badge bg-danger"
  151.                 });
  152.                 $('input#alloptions').maxlength({
  153.                     alwaysShow: true,
  154.                     warningClass: "badge bg-success",
  155.                     limitReachedClass: "badge bg-danger",
  156.                     separator: ' out of ',
  157.                     preText: 'You typed ',
  158.                     postText: ' chars available.',
  159.                     validate: true
  160.                 });
  161.                 $('textarea#textarea').maxlength({
  162.                     alwaysShow: true,
  163.                     warningClass: "badge bg-info",
  164.                     limitReachedClass: "badge bg-warning"
  165.                 });
  166.                 $('input#placement').maxlength({
  167.                     alwaysShow: true,
  168.                     placement: 'top-left',
  169.                     warningClass: "badge bg-info",
  170.                     limitReachedClass: "badge bg-warning"
  171.                 });
  172.             },
  173.                     //init
  174.                     $.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
  175.         }(window.jQuery),
  176.                 //Datepicker
  177.                         function ($) {
  178.                             "use strict";
  179.                             $.AdvancedForm.init();
  180.                         }(window.jQuery);
  181.     </script>
  182. {% endblock %}