var/cache/dev/twig/89/89dcab33f32382e866fffed36e1e229d.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* admin/experience/add/addHebergement.html.twig */
  15. class __TwigTemplate_777b1968588d599b92859fb943db2ac7 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'page_title' => [$this'block_page_title'],
  25.             'breadcump_main' => [$this'block_breadcump_main'],
  26.             'breadcump_subtitle' => [$this'block_breadcump_subtitle'],
  27.             'menu_left_sidebar' => [$this'block_menu_left_sidebar'],
  28.             'stylesheets' => [$this'block_stylesheets'],
  29.             'content' => [$this'block_content'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 1
  36.         return "admin/baseAdmin.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/experience/add/addHebergement.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/experience/add/addHebergement.html.twig"));
  45.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/experience/add/addHebergement.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 2
  53.     public function block_page_title($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  60.         yield "Ajouter Hebergement ";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.         return; yield '';
  66.     }
  67.     // line 3
  68.     public function block_breadcump_main($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  75.         yield "Experiences";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.         return; yield '';
  81.     }
  82.     // line 4
  83.     public function block_breadcump_subtitle($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  90.         yield "Nouveau hebergement de l'experience";
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.         return; yield '';
  96.     }
  97.     // line 5
  98.     public function block_menu_left_sidebar($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  105.         // line 6
  106.         yield "    ";
  107.         yield from         $this->loadTemplate("include/menu/menuAdmin.html.twig""admin/experience/add/addHebergement.html.twig"6)->unwrap()->yield(CoreExtension::merge($context, ["menu_active_event" => "2"]));
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.         return; yield '';
  113.     }
  114.     // line 8
  115.     public function block_stylesheets($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  122.         // line 9
  123.         yield "    <link href=\"";
  124.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/css/select2.min.css"), "html"nulltrue);
  125.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  126.     <link href=\"";
  127.         // line 10
  128.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind.min.css"), "html"nulltrue);
  129.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  130.     <link href=\"";
  131.         // line 11
  132.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind2.css"), "html"nulltrue);
  133.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         return; yield '';
  140.     }
  141.     // line 14
  142.     public function block_content($context, array $blocks = [])
  143.     {
  144.         $macros $this->macros;
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  149.         // line 15
  150.         yield "    <form id=\"form-general\" class=\"general-info custom-validation\" method=\"POST\" action=\"";
  151.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_hebergement", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["experience"]) || array_key_exists("experience"$context) ? $context["experience"] : (function () { throw new RuntimeError('Variable "experience" does not exist.'15$this->source); })()), "id", [], "any"falsefalsefalse15)]), "html"nulltrue);
  152.         yield "\" enctype=\"multipart/form-data\"  >
  153.         <div class=\"container-fluid\">
  154.             <div class=\"row\">
  155.                 <div class=\"col-xl-12 px-0\">
  156.                     <div class=\"card\">
  157.                         <div class=\"card-body\">
  158.                             <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\">
  159.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"general-info\">General Info</h3>
  160.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  161.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange  pt-2 \" id=\"gallery\">Hébergement</h3>
  162.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  163.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange active-nav pt-2 \" id=\"gallery\">Gallery</h3>
  164.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  165.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"itineraire\">Programme</h3>
  166.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  167.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"highlights\">Description</h3>
  168.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  169.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"dispo\">Disponibilité</h3>
  170.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  171.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"disponibilite\">Tarification</h3>
  172.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  173.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"faq\">Points Forts</h3>
  174.                             </div>   
  175.                             <div class=\"sm:p-4 p-2 pb-0 pt-1\" >
  176.                                 <h5 class=\"text-lg font-semibold mt-2 mb-2 \">Image principale de l'Hebergement</h5>
  177.                                 <p class=\"pb-4 text-gray-700 text-sm\">Ajouter L'image principale du l'Hebergement, qui s'affichera en premier </p>
  178.                                 <div  class=\"space-y-3 \">
  179.                                     <div class=\"m-auto my-1 relative \">
  180.                                         <label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
  181.                                             <img src=\"";
  182.         // line 46
  183.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/images/categories/Culinaire.jpg"), "html"nulltrue);
  184.         yield "\" class=\"rounded-xl h-64 object-cover w-full\" id=\"avatar-img\">
  185.                                             <div class=\"h-10 w-10 bg-orange rounded-full flex  items-center justify-center\" style=\"position: absolute;right: 43%;bottom: 4px;font-size: 43px;\">
  186.                                                 <i class=\"bx bxs-image-alt text-xl text-white\"></i>
  187.                                             </div>
  188.                                             <input type=\"file\" id=\"avatar-upload\" name=\"image\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  189.                                         </label>
  190.                                     </div>
  191.                                 </div>
  192.                             </div>
  193.                             <h5 class=\"text-lg font-semibold mt-5 \">Décription de l'hebergement</h5>
  194.                             <p class=\"text-gray-700 text-sm\">Enregistrer les points fort de l'hebergement.</p>
  195.                             <div class=\"divider w-2/6 mt-1 mb-5\"></div>
  196.                             <div class=\"row mb-4 text-sm  \">
  197.                                 <div class=\"flex items-center\">
  198.                                     <p for=\"\" class=\"form-label font-semibold col-3\">Nom de la chambre</p>
  199.                                     <div class=\"form-floating mb-3 col-9\">
  200.                                         <input required=\"\" class=\"form-control\"  id=\"floatingnameInput\" type=\"text\" name=\"name\"  placeholder=\"Nom et Type de chambre pour l'hebergement\">
  201.                                         <label for=\"floatingnameInput\">Nom et Type de chambre de l'hebergement</label>
  202.                                     </div>
  203.                                 </div>
  204.                             </div>
  205.                             <div class=\"row mb-4 text-sm\">
  206.                                 <div class=\" flex \">
  207.                                     <p for=\"\" class=\"form-label font-semibold col-3 \"> Description et détails </p>
  208.                                     <div class=\"relative col-9\">
  209.                                         <textarea required=\"\" class=\"form-control text-sm px-5\" name=\"description\" placeholder=\"Taper une petite description \"
  210.                                                   id=\"floatingTextarea2\" style=\"height: 100px\"></textarea>
  211.                                         <div class=\"absolute\" style=\"top: 8px;left: 11px;color: #a1a1a1;\">
  212.                                             <i class=\"bx bx-notepad text-2xl\"></i>
  213.                                         </div>
  214.                                     </div>
  215.                                 </div>
  216.                             </div>
  217.                             <div class=\"mt-2 gallery \" id=\"form-gallery\" action=\"\" >
  218.                                 <h5 class=\"text-lg font-semibold  my-2 \">Images et medias</h5>
  219.                                 <p class=\"text-gray-700 text-sm\">Ajouter des images de l'héberegement, Photos de la chambre, salle de bain... </p>
  220.                                 <div class=\"container mx-auto p-4\">
  221.                                     <div id=\"imagePreviewContainer\" class=\"border-2 border-dashed flex flex-wrap gap-4 grid grid-cols-1 lg:grid-cols-4 mb-4 md:grid-cols-3 sm:grid-cols-2 p-3 \">
  222.                                         <div class=\"text-ini flex flex-col justify-center items-center col-span-12 my-8\">
  223.                                             <i class=\"bx bx-image-alt text-gray-500 text-5xl pb-3\"></i>
  224.                                             <p class=\"col-span-full text-center text-gray-500\">Aucune image sélectionnée pour l'hebergement</p>
  225.                                         </div>
  226.                                     </div>
  227.                                     <div class=\"col-span-12 mb-3\">
  228.                                         <input name=\"medias[]\" class=\"relative m-0 block w-full min-w-0 flex-auto cursor-pointer rounded border border-solid border-neutral-300 bg-clip-padding px-3 py-[0.32rem] font-normal leading-[2.15] text-neutral-700 transition duration-300 ease-in-out file:-mx-3 file:-my-[0.32rem] file:cursor-pointer file:overflow-hidden file:rounded-none file:border-0 file:border-solid file:border-inherit file:bg-neutral-100 file:px-3 file:py-[0.32rem] file:text-neutral-700 file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] hover:file:bg-neutral-200 focus:border-primary focus:text-neutral-700 focus:shadow-te-primary focus:outline-none dark:border-zinc-50 dark:text-zinc-200 dark:file:bg-zinc-50 dark:file:text-zinc-200 dark:focus:border-primary\" id=\"formFileLg\" type=\"file\" multiple>
  229.                                     </div>
  230.                                 </div>
  231.                             </div>
  232.                             <div class=\"divider mt-20 mb-3\"></div>
  233.                         </div>
  234.                         <!-- end card body -->
  235.                     </div>
  236.                     <div class=\"row\">
  237.                         <div class=\"col-lg-12\">
  238.                             <div class=\"card\">
  239.                                 <div class=\"card-body\">
  240.                                     <div class=\"flex mt-4 row\">
  241.                                         <div class=\"col-md-6\">
  242.                                             <p class=\"text-xs  text-gray-900 mb-2\">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
  243.                                                 enregistrer par ce formulaire </p>                                    </div>
  244.                                         <div class=\"col-md flex justify-end\">
  245.                                             <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\">
  246.                                                 Annuler</button>
  247.                                             <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>
  248.                                         </div>
  249.                                     </div>
  250.                                 </div>
  251.                             </div>
  252.                         </div>
  253.                     </div>
  254.                     <!-- end card -->
  255.                 </div>
  256.                 <!-- end col -->
  257.                 <!-- end col -->
  258.             </div>
  259.         </div> <!-- container-fluid -->
  260.     </form>
  261. ";
  262.         
  263.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  264.         
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  266.         return; yield '';
  267.     }
  268.     // line 136
  269.     public function block_javascripts($context, array $blocks = [])
  270.     {
  271.         $macros $this->macros;
  272.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  273.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  274.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  276.         // line 137
  277.         yield "    <!-- apexcharts -->
  278.     <script src=\"";
  279.         // line 138
  280.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html"nulltrue);
  281.         yield "\"></script>
  282.     <script src=\"";
  283.         // line 139
  284.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/js/select2.min.js"), "html"nulltrue);
  285.         yield "\"></script>
  286.     <script src=\"";
  287.         // line 140
  288.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js"), "html"nulltrue);
  289.         yield "\"></script>
  290.     <script src=\"";
  291.         // line 142
  292.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/pages/form-validation.init.js"), "html"nulltrue);
  293.         yield "\"></script>
  294.     <script src=\"";
  295.         // line 144
  296.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  297.         yield "\"></script>
  298.     <script>
  299.                                                 /*
  300.                                                  Template Name: Skote - Admin & Dashboard Template
  301.                                                  Author: Themesbrand
  302.                                                  Website: https://themesbrand.com/
  303.                                                  Contact: themesbrand@gmail.com
  304.                                                  File: Form Advanced Js File
  305.                                                  */
  306.                                                 !function (\$) {
  307.                                                     \"use strict\";
  308.                                                     var AdvancedForm = function () { };
  309.                                                     AdvancedForm.prototype.init = function () {
  310.                                                         // Select2
  311.                                                         if (\$('.select2').length > 0) {
  312.                                                             \$(\".select2\").select2();
  313.                                                         }
  314.                                                         if (\$('.select2-tags').length > 0) {
  315.                                                             \$(\".select2-tags\").select2({
  316.                                                                 tags: true
  317.                                                             });
  318.                                                         }
  319.                                                         if (\$('.select2-limiting-3').length > 0) {
  320.                                                             \$(\".select2-limiting-3\").select2({
  321.                                                                 maximumSelectionLength: 3
  322.                                                             });
  323.                                                         }
  324.                                                         //Bootstrap-MaxLength
  325.                                                         \$('input#defaultconfig').maxlength({
  326.                                                             warningClass: \"badge bg-info\",
  327.                                                             limitReachedClass: \"badge bg-warning\"
  328.                                                         });
  329.                                                         \$('input#thresholdconfig').maxlength({
  330.                                                             threshold: 20,
  331.                                                             warningClass: \"badge bg-info\",
  332.                                                             limitReachedClass: \"badge bg-warning\"
  333.                                                         });
  334.                                                         \$('input#moreoptions').maxlength({
  335.                                                             alwaysShow: true,
  336.                                                             warningClass: \"badge bg-success\",
  337.                                                             limitReachedClass: \"badge bg-danger\"
  338.                                                         });
  339.                                                         \$('input#alloptions').maxlength({
  340.                                                             alwaysShow: true,
  341.                                                             warningClass: \"badge bg-success\",
  342.                                                             limitReachedClass: \"badge bg-danger\",
  343.                                                             separator: ' out of ',
  344.                                                             preText: 'You typed ',
  345.                                                             postText: ' chars available.',
  346.                                                             validate: true
  347.                                                         });
  348.                                                         \$('textarea#textarea').maxlength({
  349.                                                             alwaysShow: true,
  350.                                                             warningClass: \"badge bg-info\",
  351.                                                             limitReachedClass: \"badge bg-warning\"
  352.                                                         });
  353.                                                         \$('input#placement').maxlength({
  354.                                                             alwaysShow: true,
  355.                                                             placement: 'top-left',
  356.                                                             warningClass: \"badge bg-info\",
  357.                                                             limitReachedClass: \"badge bg-warning\"
  358.                                                         });
  359.                                                     },
  360.                                                             //init
  361.                                                             \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  362.                                                 }(window.jQuery),
  363.                                                         //Datepicker
  364.                                                                 function (\$) {
  365.                                                                     \"use strict\";
  366.                                                                     \$.AdvancedForm.init();
  367.                                                                 }(window.jQuery);
  368.     </script>
  369. ";
  370.         
  371.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  372.         
  373.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  374.         return; yield '';
  375.     }
  376.     /**
  377.      * @codeCoverageIgnore
  378.      */
  379.     public function getTemplateName()
  380.     {
  381.         return "admin/experience/add/addHebergement.html.twig";
  382.     }
  383.     /**
  384.      * @codeCoverageIgnore
  385.      */
  386.     public function isTraitable()
  387.     {
  388.         return false;
  389.     }
  390.     /**
  391.      * @codeCoverageIgnore
  392.      */
  393.     public function getDebugInfo()
  394.     {
  395.         return array (  357 => 144,  352 => 142,  347 => 140,  343 => 139,  339 => 138,  336 => 137,  326 => 136,  225 => 46,  190 => 15,  180 => 14,  166 => 11,  162 => 10,  157 => 9,  147 => 8,  135 => 6,  125 => 5,  105 => 4,  85 => 3,  65 => 2,  42 => 1,);
  396.     }
  397.     public function getSourceContext()
  398.     {
  399.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  400. {% block page_title %}Ajouter Hebergement {% endblock %}
  401. {% block breadcump_main %}Experiences{% endblock %}
  402. {% block breadcump_subtitle %}Nouveau hebergement de l'experience{% endblock %}
  403. {% block menu_left_sidebar %}
  404.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  405. {% endblock %}
  406. {% block stylesheets %}
  407.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  408.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  409.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  410. {% endblock %}
  411. {% block content %}
  412.     <form id=\"form-general\" class=\"general-info custom-validation\" method=\"POST\" action=\"{{ path('add_hebergement',{'id':experience.id}) }}\" enctype=\"multipart/form-data\"  >
  413.         <div class=\"container-fluid\">
  414.             <div class=\"row\">
  415.                 <div class=\"col-xl-12 px-0\">
  416.                     <div class=\"card\">
  417.                         <div class=\"card-body\">
  418.                             <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\">
  419.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"general-info\">General Info</h3>
  420.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  421.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange  pt-2 \" id=\"gallery\">Hébergement</h3>
  422.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  423.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange active-nav pt-2 \" id=\"gallery\">Gallery</h3>
  424.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  425.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"itineraire\">Programme</h3>
  426.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  427.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"highlights\">Description</h3>
  428.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  429.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"dispo\">Disponibilité</h3>
  430.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  431.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"disponibilite\">Tarification</h3>
  432.                                 <span class=\"border-r mx-2 h-6 hidden sm:flex\"></span>
  433.                                 <h3 class=\"text-sm  cursor-pointer hover:text-orange pt-2 \" id=\"faq\">Points Forts</h3>
  434.                             </div>   
  435.                             <div class=\"sm:p-4 p-2 pb-0 pt-1\" >
  436.                                 <h5 class=\"text-lg font-semibold mt-2 mb-2 \">Image principale de l'Hebergement</h5>
  437.                                 <p class=\"pb-4 text-gray-700 text-sm\">Ajouter L'image principale du l'Hebergement, qui s'affichera en premier </p>
  438.                                 <div  class=\"space-y-3 \">
  439.                                     <div class=\"m-auto my-1 relative \">
  440.                                         <label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
  441.                                             <img src=\"{{ asset('admin/images/categories/Culinaire.jpg') }}\" class=\"rounded-xl h-64 object-cover w-full\" id=\"avatar-img\">
  442.                                             <div class=\"h-10 w-10 bg-orange rounded-full flex  items-center justify-center\" style=\"position: absolute;right: 43%;bottom: 4px;font-size: 43px;\">
  443.                                                 <i class=\"bx bxs-image-alt text-xl text-white\"></i>
  444.                                             </div>
  445.                                             <input type=\"file\" id=\"avatar-upload\" name=\"image\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  446.                                         </label>
  447.                                     </div>
  448.                                 </div>
  449.                             </div>
  450.                             <h5 class=\"text-lg font-semibold mt-5 \">Décription de l'hebergement</h5>
  451.                             <p class=\"text-gray-700 text-sm\">Enregistrer les points fort de l'hebergement.</p>
  452.                             <div class=\"divider w-2/6 mt-1 mb-5\"></div>
  453.                             <div class=\"row mb-4 text-sm  \">
  454.                                 <div class=\"flex items-center\">
  455.                                     <p for=\"\" class=\"form-label font-semibold col-3\">Nom de la chambre</p>
  456.                                     <div class=\"form-floating mb-3 col-9\">
  457.                                         <input required=\"\" class=\"form-control\"  id=\"floatingnameInput\" type=\"text\" name=\"name\"  placeholder=\"Nom et Type de chambre pour l'hebergement\">
  458.                                         <label for=\"floatingnameInput\">Nom et Type de chambre de l'hebergement</label>
  459.                                     </div>
  460.                                 </div>
  461.                             </div>
  462.                             <div class=\"row mb-4 text-sm\">
  463.                                 <div class=\" flex \">
  464.                                     <p for=\"\" class=\"form-label font-semibold col-3 \"> Description et détails </p>
  465.                                     <div class=\"relative col-9\">
  466.                                         <textarea required=\"\" class=\"form-control text-sm px-5\" name=\"description\" placeholder=\"Taper une petite description \"
  467.                                                   id=\"floatingTextarea2\" style=\"height: 100px\"></textarea>
  468.                                         <div class=\"absolute\" style=\"top: 8px;left: 11px;color: #a1a1a1;\">
  469.                                             <i class=\"bx bx-notepad text-2xl\"></i>
  470.                                         </div>
  471.                                     </div>
  472.                                 </div>
  473.                             </div>
  474.                             <div class=\"mt-2 gallery \" id=\"form-gallery\" action=\"\" >
  475.                                 <h5 class=\"text-lg font-semibold  my-2 \">Images et medias</h5>
  476.                                 <p class=\"text-gray-700 text-sm\">Ajouter des images de l'héberegement, Photos de la chambre, salle de bain... </p>
  477.                                 <div class=\"container mx-auto p-4\">
  478.                                     <div id=\"imagePreviewContainer\" class=\"border-2 border-dashed flex flex-wrap gap-4 grid grid-cols-1 lg:grid-cols-4 mb-4 md:grid-cols-3 sm:grid-cols-2 p-3 \">
  479.                                         <div class=\"text-ini flex flex-col justify-center items-center col-span-12 my-8\">
  480.                                             <i class=\"bx bx-image-alt text-gray-500 text-5xl pb-3\"></i>
  481.                                             <p class=\"col-span-full text-center text-gray-500\">Aucune image sélectionnée pour l'hebergement</p>
  482.                                         </div>
  483.                                     </div>
  484.                                     <div class=\"col-span-12 mb-3\">
  485.                                         <input name=\"medias[]\" class=\"relative m-0 block w-full min-w-0 flex-auto cursor-pointer rounded border border-solid border-neutral-300 bg-clip-padding px-3 py-[0.32rem] font-normal leading-[2.15] text-neutral-700 transition duration-300 ease-in-out file:-mx-3 file:-my-[0.32rem] file:cursor-pointer file:overflow-hidden file:rounded-none file:border-0 file:border-solid file:border-inherit file:bg-neutral-100 file:px-3 file:py-[0.32rem] file:text-neutral-700 file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] hover:file:bg-neutral-200 focus:border-primary focus:text-neutral-700 focus:shadow-te-primary focus:outline-none dark:border-zinc-50 dark:text-zinc-200 dark:file:bg-zinc-50 dark:file:text-zinc-200 dark:focus:border-primary\" id=\"formFileLg\" type=\"file\" multiple>
  486.                                     </div>
  487.                                 </div>
  488.                             </div>
  489.                             <div class=\"divider mt-20 mb-3\"></div>
  490.                         </div>
  491.                         <!-- end card body -->
  492.                     </div>
  493.                     <div class=\"row\">
  494.                         <div class=\"col-lg-12\">
  495.                             <div class=\"card\">
  496.                                 <div class=\"card-body\">
  497.                                     <div class=\"flex mt-4 row\">
  498.                                         <div class=\"col-md-6\">
  499.                                             <p class=\"text-xs  text-gray-900 mb-2\">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
  500.                                                 enregistrer par ce formulaire </p>                                    </div>
  501.                                         <div class=\"col-md flex justify-end\">
  502.                                             <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\">
  503.                                                 Annuler</button>
  504.                                             <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>
  505.                                         </div>
  506.                                     </div>
  507.                                 </div>
  508.                             </div>
  509.                         </div>
  510.                     </div>
  511.                     <!-- end card -->
  512.                 </div>
  513.                 <!-- end col -->
  514.                 <!-- end col -->
  515.             </div>
  516.         </div> <!-- container-fluid -->
  517.     </form>
  518. {% endblock %}
  519. {% block javascripts %}
  520.     <!-- apexcharts -->
  521.     <script src=\"{{ asset('admin/libs/parsleyjs/parsley.min.js')}}\"></script>
  522.     <script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
  523.     <script src=\"{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}\"></script>
  524.     <script src=\"{{ asset('admin/js/pages/form-validation.init.js')}}\"></script>
  525.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  526.     <script>
  527.                                                 /*
  528.                                                  Template Name: Skote - Admin & Dashboard Template
  529.                                                  Author: Themesbrand
  530.                                                  Website: https://themesbrand.com/
  531.                                                  Contact: themesbrand@gmail.com
  532.                                                  File: Form Advanced Js File
  533.                                                  */
  534.                                                 !function (\$) {
  535.                                                     \"use strict\";
  536.                                                     var AdvancedForm = function () { };
  537.                                                     AdvancedForm.prototype.init = function () {
  538.                                                         // Select2
  539.                                                         if (\$('.select2').length > 0) {
  540.                                                             \$(\".select2\").select2();
  541.                                                         }
  542.                                                         if (\$('.select2-tags').length > 0) {
  543.                                                             \$(\".select2-tags\").select2({
  544.                                                                 tags: true
  545.                                                             });
  546.                                                         }
  547.                                                         if (\$('.select2-limiting-3').length > 0) {
  548.                                                             \$(\".select2-limiting-3\").select2({
  549.                                                                 maximumSelectionLength: 3
  550.                                                             });
  551.                                                         }
  552.                                                         //Bootstrap-MaxLength
  553.                                                         \$('input#defaultconfig').maxlength({
  554.                                                             warningClass: \"badge bg-info\",
  555.                                                             limitReachedClass: \"badge bg-warning\"
  556.                                                         });
  557.                                                         \$('input#thresholdconfig').maxlength({
  558.                                                             threshold: 20,
  559.                                                             warningClass: \"badge bg-info\",
  560.                                                             limitReachedClass: \"badge bg-warning\"
  561.                                                         });
  562.                                                         \$('input#moreoptions').maxlength({
  563.                                                             alwaysShow: true,
  564.                                                             warningClass: \"badge bg-success\",
  565.                                                             limitReachedClass: \"badge bg-danger\"
  566.                                                         });
  567.                                                         \$('input#alloptions').maxlength({
  568.                                                             alwaysShow: true,
  569.                                                             warningClass: \"badge bg-success\",
  570.                                                             limitReachedClass: \"badge bg-danger\",
  571.                                                             separator: ' out of ',
  572.                                                             preText: 'You typed ',
  573.                                                             postText: ' chars available.',
  574.                                                             validate: true
  575.                                                         });
  576.                                                         \$('textarea#textarea').maxlength({
  577.                                                             alwaysShow: true,
  578.                                                             warningClass: \"badge bg-info\",
  579.                                                             limitReachedClass: \"badge bg-warning\"
  580.                                                         });
  581.                                                         \$('input#placement').maxlength({
  582.                                                             alwaysShow: true,
  583.                                                             placement: 'top-left',
  584.                                                             warningClass: \"badge bg-info\",
  585.                                                             limitReachedClass: \"badge bg-warning\"
  586.                                                         });
  587.                                                     },
  588.                                                             //init
  589.                                                             \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  590.                                                 }(window.jQuery),
  591.                                                         //Datepicker
  592.                                                                 function (\$) {
  593.                                                                     \"use strict\";
  594.                                                                     \$.AdvancedForm.init();
  595.                                                                 }(window.jQuery);
  596.     </script>
  597. {% endblock %}""admin/experience/add/addHebergement.html.twig""/home/bookoachroot/public_html/templates/admin/experience/add/addHebergement.html.twig");
  598.     }
  599. }