var/cache/dev/twig/64/6402158d1b6bb00239af014a7f73a348.php line 56

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/country/edit/editDestination.html.twig */
  15. class __TwigTemplate_a13915ca6dbe756701384d7188799866 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.             'title' => [$this'block_title'],
  30.             'content' => [$this'block_content'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "admin/baseAdmin.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/country/edit/editDestination.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/country/edit/editDestination.html.twig"));
  46.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/country/edit/editDestination.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 2
  54.     public function block_page_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  61.         yield "Modifier Destination";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         return; yield '';
  67.     }
  68.     // line 3
  69.     public function block_breadcump_main($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  76.         yield "Pays";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         return; yield '';
  82.     }
  83.     // line 4
  84.     public function block_breadcump_subtitle($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  91.         yield "Création de destination";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.         return; yield '';
  97.     }
  98.     // line 5
  99.     public function block_menu_left_sidebar($context, array $blocks = [])
  100.     {
  101.         $macros $this->macros;
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  106.         // line 6
  107.         yield "    ";
  108.         yield from         $this->loadTemplate("include/menu/menuAdmin.html.twig""admin/country/edit/editDestination.html.twig"6)->unwrap()->yield(CoreExtension::merge($context, ["menu_active_event" => "2"]));
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.         return; yield '';
  114.     }
  115.     // line 8
  116.     public function block_stylesheets($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  123.         // line 9
  124.         yield "    <link href=\"";
  125.         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);
  126.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  127.     <link href=\"";
  128.         // line 10
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind.min.css"), "html"nulltrue);
  130.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  131.     <link href=\"";
  132.         // line 11
  133.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind2.css"), "html"nulltrue);
  134.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  135. ";
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.         
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140.         return; yield '';
  141.     }
  142.     // line 14
  143.     public function block_title($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Modifier Destination"), "html"nulltrue);
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.         return; yield '';
  156.     }
  157.     // line 15
  158.     public function block_content($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  165.         yield 
  166.     <div class=\"container-fluid\">
  167.         <div class=\"row\">
  168.             <div class=\"col-xl-12 px-0\">
  169.                 <div class=\"card\">
  170.                     <div class=\"card-body\">
  171.                         <form class=\"p-1 \" method=\"post\" action=\"";
  172.         // line 22
  173.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_destination", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'22$this->source); })()), "id", [], "any"falsefalsefalse22)]), "html"nulltrue);
  174.         yield "\" enctype=\"multipart/form-data\"  >
  175.                             <form class=\"p-4 pt-1\" id=\"myform1\">
  176.                                 <h5 class=\"text-lg font-semibold mt-5 \">Détails de destination </h5>
  177.                                 <p class=\"pb-4 text-gray-700 text-sm\">Ici, vous pouvez modifier et consulter la destination . </p>
  178.                                 <div class=\"row mb-4\">
  179.                                     <div class=\"mb-3 col-md-6\">
  180.                                         <p for=\"\" class=\"form-label font-semibold \">Pays</p>
  181.                                         <select id=\"country\" name=\"country\" class=\"select border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-3.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 py-3\">
  182.                                             ";
  183.         // line 30
  184.         $context['_parent'] = $context;
  185.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["countries"]) || array_key_exists("countries"$context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.'30$this->source); })()));
  186.         foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  187.             // line 31
  188.             yield "                                                <option ";
  189.             if ((CoreExtension::getAttribute($this->env$this->source$context["country"], "id", [], "any"falsefalsefalse31) == CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'31$this->source); })()), "country", [], "any"falsefalsefalse31), "id", [], "any"falsefalsefalse31))) {
  190.                 yield "selected";
  191.             }
  192.             yield " value=\"";
  193.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "id", [], "any"falsefalsefalse31), "html"nulltrue);
  194.             yield "\">";
  195.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "name", [], "any"falsefalsefalse31), "html"nulltrue);
  196.             yield "</option>
  197.                                             ";
  198.         }
  199.         $_parent $context['_parent'];
  200.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  201.         $context array_intersect_key($context$_parent) + $_parent;
  202.         // line 32
  203.         yield "     
  204.                                         </select>
  205.                                     </div>
  206.                                     <div class=\"col-md-6 mb-3\">
  207.                                         <p for=\"\" class=\"form-label font-semibold \">Région</p>
  208.                                         <div class=\"form-floating  pe-0 \" id=\"city\">
  209.                                             <input type=\"text\" name=\"name\" value=\"";
  210.         // line 39
  211.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'39$this->source); })()), "name", [], "any"falsefalsefalse39), "html"nulltrue);
  212.         yield "\" class=\"block sm:text-sm form-control p-2.5 rounded-lg w-full mt-0\" id=\"floatingInput\" placeholder=\"lieu\">
  213.                                             <label class=\"mb-2 ps-4 text-sm font-medium text-gray-900 dark:text-white\" for=\"floatingInput\">Destination, ville ou lieu de l'expérience                                                 </label>
  214.                                         </div>
  215.                                     </div>
  216.                                     <div class=\" col-md-6 mb-3 text-base\">
  217.                                         <p for=\"\" class=\"form-label font-semibold \">Type de destination </p>
  218.                                         <select  placeholder=\"choisir les sous catégories\" name=\"typedestination\" class=\"text-sm select\" data-allow-clear=\"1\">
  219.                                             <option value=\"Ville\" ";
  220.         // line 47
  221.         if (CoreExtension::inFilter("Ville"CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'47$this->source); })()), "typedestination", [], "any"falsefalsefalse47))) {
  222.             yield "selected";
  223.         }
  224.         yield ">Ville</option>
  225.                                             <option value=\"Destination\" ";
  226.         // line 48
  227.         if (CoreExtension::inFilter("Destination"CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'48$this->source); })()), "typedestination", [], "any"falsefalsefalse48))) {
  228.             yield "selected";
  229.         }
  230.         yield ">Destination</option>
  231.                                             <option value=\"Desert\" ";
  232.         // line 49
  233.         if (CoreExtension::inFilter("Desert"CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'49$this->source); })()), "typedestination", [], "any"falsefalsefalse49))) {
  234.             yield "selected";
  235.         }
  236.         yield ">Desert</option>
  237.                                             <option value=\"Montagne\" ";
  238.         // line 50
  239.         if (CoreExtension::inFilter("Montagne"CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'50$this->source); })()), "typedestination", [], "any"falsefalsefalse50))) {
  240.             yield "selected";
  241.         }
  242.         yield ">Montagne</option>
  243.                                             <option value=\"Réserve naturelle\" ";
  244.         // line 51
  245.         if (CoreExtension::inFilter("Réserve naturelle"CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'51$this->source); })()), "typedestination", [], "any"falsefalsefalse51))) {
  246.             yield "selected";
  247.         }
  248.         yield ">Réserve naturelle</option>
  249.                                         </select>
  250.                                     </div>
  251.                                     <div class=\" col-md-6 col-sm-12 \">
  252.                                         <p for=\"\" class=\"form-label font-semibold \">Ordre de destination </p>
  253.                                         <div class=\"form-floating \">
  254.                                             <input value=\"";
  255.         // line 61
  256.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'61$this->source); })()), "ordre", [], "any"falsefalsefalse61), "html"nulltrue);
  257.         yield "\" type=\"number\" name=\"ordre\"
  258.                                                    class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  259.                                                    id=\"nom\" placeholder=\"\">
  260.                                             <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">ordre destination </label>
  261.                                             <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  262.                                                 <i class=\"bx bx-sort-a-z\" style=\"font-size: 36px;\"></i>
  263.                                             </div>
  264.                                         </div>
  265.                                     </div>
  266.                                 </div>
  267.                                 <div class=\"divider mt-16\"></div>
  268.                                 <div class=\"flex mt-4 row\">
  269.                                     <div class=\"col-md-6\">
  270.                                         <p class=\"text-xs  text-gray-900 mb-2\">En cliquant sur le bouton de Enregistrer, vous mettez à jours les informations envoyé dans ce formulaire </p>
  271.                                     </div>
  272.                                     <div class=\"col-md flex justify-end\">
  273.                                         <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\">
  274.                                             Annuler</button>
  275.                                         <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>
  276.                                     </div>
  277.                                 </div>
  278.                             </form>
  279.                     </div>
  280.                     <!-- end card body -->
  281.                 </div>
  282.                 <!-- end card -->
  283.             </div>
  284.             <!-- end col -->
  285.             <!-- end col -->
  286.         </div>
  287.     </div> <!-- container-fluid -->
  288.     <!-- End main -->
  289. ";
  290.         
  291.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  292.         
  293.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  294.         return; yield '';
  295.     }
  296.     // line 104
  297.     public function block_javascripts($context, array $blocks = [])
  298.     {
  299.         $macros $this->macros;
  300.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  301.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  302.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  303.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  304.         // line 105
  305.         yield "    <!-- apexcharts -->
  306.     <script src=\"";
  307.         // line 106
  308.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html"nulltrue);
  309.         yield "\"></script>
  310.     <script src=\"";
  311.         // line 107
  312.         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);
  313.         yield "\"></script>
  314.     <script src=\"";
  315.         // line 108
  316.         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);
  317.         yield "\"></script>
  318.     <script src=\"";
  319.         // line 110
  320.         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);
  321.         yield "\"></script>
  322.     <script src=\"";
  323.         // line 112
  324.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  325.         yield "\"></script>
  326.     <script>
  327.         /*
  328.          Template Name: Skote - Admin & Dashboard Template
  329.          Author: Themesbrand
  330.          Website: https://themesbrand.com/
  331.          Contact: themesbrand@gmail.com
  332.          File: Form Advanced Js File
  333.          */
  334.         !function (\$) {
  335.             \"use strict\";
  336.             var AdvancedForm = function () { };
  337.             AdvancedForm.prototype.init = function () {
  338.                 // Select2
  339.                 if (\$('.select2').length > 0) {
  340.                     \$(\".select2\").select2();
  341.                 }
  342.                 if (\$('.select2-tags').length > 0) {
  343.                     \$(\".select2-tags\").select2({
  344.                         tags: true
  345.                     });
  346.                 }
  347.                 if (\$('.select2-limiting-3').length > 0) {
  348.                     \$(\".select2-limiting-3\").select2({
  349.                         maximumSelectionLength: 3
  350.                     });
  351.                 }
  352.                 //Bootstrap-MaxLength
  353.                 \$('input#defaultconfig').maxlength({
  354.                     warningClass: \"badge bg-info\",
  355.                     limitReachedClass: \"badge bg-warning\"
  356.                 });
  357.                 \$('input#thresholdconfig').maxlength({
  358.                     threshold: 20,
  359.                     warningClass: \"badge bg-info\",
  360.                     limitReachedClass: \"badge bg-warning\"
  361.                 });
  362.                 \$('input#moreoptions').maxlength({
  363.                     alwaysShow: true,
  364.                     warningClass: \"badge bg-success\",
  365.                     limitReachedClass: \"badge bg-danger\"
  366.                 });
  367.                 \$('input#alloptions').maxlength({
  368.                     alwaysShow: true,
  369.                     warningClass: \"badge bg-success\",
  370.                     limitReachedClass: \"badge bg-danger\",
  371.                     separator: ' out of ',
  372.                     preText: 'You typed ',
  373.                     postText: ' chars available.',
  374.                     validate: true
  375.                 });
  376.                 \$('textarea#textarea').maxlength({
  377.                     alwaysShow: true,
  378.                     warningClass: \"badge bg-info\",
  379.                     limitReachedClass: \"badge bg-warning\"
  380.                 });
  381.                 \$('input#placement').maxlength({
  382.                     alwaysShow: true,
  383.                     placement: 'top-left',
  384.                     warningClass: \"badge bg-info\",
  385.                     limitReachedClass: \"badge bg-warning\"
  386.                 });
  387.             },
  388.                     //init
  389.                     \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  390.         }(window.jQuery),
  391.                 //Datepicker
  392.                         function (\$) {
  393.                             \"use strict\";
  394.                             \$.AdvancedForm.init();
  395.                         }(window.jQuery);
  396.     </script>
  397. ";
  398.         
  399.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  400.         
  401.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  402.         return; yield '';
  403.     }
  404.     /**
  405.      * @codeCoverageIgnore
  406.      */
  407.     public function getTemplateName()
  408.     {
  409.         return "admin/country/edit/editDestination.html.twig";
  410.     }
  411.     /**
  412.      * @codeCoverageIgnore
  413.      */
  414.     public function isTraitable()
  415.     {
  416.         return false;
  417.     }
  418.     /**
  419.      * @codeCoverageIgnore
  420.      */
  421.     public function getDebugInfo()
  422.     {
  423.         return array (  392 => 112,  387 => 110,  382 => 108,  378 => 107,  374 => 106,  371 => 105,  361 => 104,  308 => 61,  293 => 51,  287 => 50,  281 => 49,  275 => 48,  269 => 47,  258 => 39,  249 => 32,  234 => 31,  230 => 30,  219 => 22,  201 => 15,  181 => 14,  167 => 11,  163 => 10,  158 => 9,  148 => 8,  136 => 6,  126 => 5,  106 => 4,  86 => 3,  66 => 2,  43 => 1,);
  424.     }
  425.     public function getSourceContext()
  426.     {
  427.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  428. {% block page_title %}Modifier Destination{% endblock %}
  429. {% block breadcump_main %}Pays{% endblock %}
  430. {% block breadcump_subtitle %}Création de destination{% endblock %}
  431. {% block menu_left_sidebar %}
  432.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  433. {% endblock %}
  434. {% block stylesheets %}
  435.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  436.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  437.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  438. {% endblock %}
  439. {% block title %}{{\"Modifier Destination\"|trans }}{% endblock %} 
  440. {% block content %} 
  441.     <div class=\"container-fluid\">
  442.         <div class=\"row\">
  443.             <div class=\"col-xl-12 px-0\">
  444.                 <div class=\"card\">
  445.                     <div class=\"card-body\">
  446.                         <form class=\"p-1 \" method=\"post\" action=\"{{ path('edit_destination',{'id':destination.id})}}\" enctype=\"multipart/form-data\"  >
  447.                             <form class=\"p-4 pt-1\" id=\"myform1\">
  448.                                 <h5 class=\"text-lg font-semibold mt-5 \">Détails de destination </h5>
  449.                                 <p class=\"pb-4 text-gray-700 text-sm\">Ici, vous pouvez modifier et consulter la destination . </p>
  450.                                 <div class=\"row mb-4\">
  451.                                     <div class=\"mb-3 col-md-6\">
  452.                                         <p for=\"\" class=\"form-label font-semibold \">Pays</p>
  453.                                         <select id=\"country\" name=\"country\" class=\"select border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-3.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 py-3\">
  454.                                             {% for country in countries %}
  455.                                                 <option {% if country.id == destination.country.id %}selected{% endif %} value=\"{{ country.id }}\">{{ country.name }}</option>
  456.                                             {% endfor %}     
  457.                                         </select>
  458.                                     </div>
  459.                                     <div class=\"col-md-6 mb-3\">
  460.                                         <p for=\"\" class=\"form-label font-semibold \">Région</p>
  461.                                         <div class=\"form-floating  pe-0 \" id=\"city\">
  462.                                             <input type=\"text\" name=\"name\" value=\"{{destination.name}}\" class=\"block sm:text-sm form-control p-2.5 rounded-lg w-full mt-0\" id=\"floatingInput\" placeholder=\"lieu\">
  463.                                             <label class=\"mb-2 ps-4 text-sm font-medium text-gray-900 dark:text-white\" for=\"floatingInput\">Destination, ville ou lieu de l'expérience                                                 </label>
  464.                                         </div>
  465.                                     </div>
  466.                                     <div class=\" col-md-6 mb-3 text-base\">
  467.                                         <p for=\"\" class=\"form-label font-semibold \">Type de destination </p>
  468.                                         <select  placeholder=\"choisir les sous catégories\" name=\"typedestination\" class=\"text-sm select\" data-allow-clear=\"1\">
  469.                                             <option value=\"Ville\" {% if 'Ville' in destination.typedestination %}selected{% endif %}>Ville</option>
  470.                                             <option value=\"Destination\" {% if 'Destination' in destination.typedestination %}selected{% endif %}>Destination</option>
  471.                                             <option value=\"Desert\" {% if 'Desert' in destination.typedestination %}selected{% endif %}>Desert</option>
  472.                                             <option value=\"Montagne\" {% if 'Montagne' in destination.typedestination %}selected{% endif %}>Montagne</option>
  473.                                             <option value=\"Réserve naturelle\" {% if 'Réserve naturelle' in destination.typedestination %}selected{% endif %}>Réserve naturelle</option>
  474.                                         </select>
  475.                                     </div>
  476.                                     <div class=\" col-md-6 col-sm-12 \">
  477.                                         <p for=\"\" class=\"form-label font-semibold \">Ordre de destination </p>
  478.                                         <div class=\"form-floating \">
  479.                                             <input value=\"{{ destination.ordre }}\" type=\"number\" name=\"ordre\"
  480.                                                    class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  481.                                                    id=\"nom\" placeholder=\"\">
  482.                                             <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">ordre destination </label>
  483.                                             <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  484.                                                 <i class=\"bx bx-sort-a-z\" style=\"font-size: 36px;\"></i>
  485.                                             </div>
  486.                                         </div>
  487.                                     </div>
  488.                                 </div>
  489.                                 <div class=\"divider mt-16\"></div>
  490.                                 <div class=\"flex mt-4 row\">
  491.                                     <div class=\"col-md-6\">
  492.                                         <p class=\"text-xs  text-gray-900 mb-2\">En cliquant sur le bouton de Enregistrer, vous mettez à jours les informations envoyé dans ce formulaire </p>
  493.                                     </div>
  494.                                     <div class=\"col-md flex justify-end\">
  495.                                         <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\">
  496.                                             Annuler</button>
  497.                                         <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>
  498.                                     </div>
  499.                                 </div>
  500.                             </form>
  501.                     </div>
  502.                     <!-- end card body -->
  503.                 </div>
  504.                 <!-- end card -->
  505.             </div>
  506.             <!-- end col -->
  507.             <!-- end col -->
  508.         </div>
  509.     </div> <!-- container-fluid -->
  510.     <!-- End main -->
  511. {% endblock %}
  512. {% block javascripts %}
  513.     <!-- apexcharts -->
  514.     <script src=\"{{ asset('admin/libs/parsleyjs/parsley.min.js')}}\"></script>
  515.     <script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
  516.     <script src=\"{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}\"></script>
  517.     <script src=\"{{ asset('admin/js/pages/form-validation.init.js')}}\"></script>
  518.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  519.     <script>
  520.         /*
  521.          Template Name: Skote - Admin & Dashboard Template
  522.          Author: Themesbrand
  523.          Website: https://themesbrand.com/
  524.          Contact: themesbrand@gmail.com
  525.          File: Form Advanced Js File
  526.          */
  527.         !function (\$) {
  528.             \"use strict\";
  529.             var AdvancedForm = function () { };
  530.             AdvancedForm.prototype.init = function () {
  531.                 // Select2
  532.                 if (\$('.select2').length > 0) {
  533.                     \$(\".select2\").select2();
  534.                 }
  535.                 if (\$('.select2-tags').length > 0) {
  536.                     \$(\".select2-tags\").select2({
  537.                         tags: true
  538.                     });
  539.                 }
  540.                 if (\$('.select2-limiting-3').length > 0) {
  541.                     \$(\".select2-limiting-3\").select2({
  542.                         maximumSelectionLength: 3
  543.                     });
  544.                 }
  545.                 //Bootstrap-MaxLength
  546.                 \$('input#defaultconfig').maxlength({
  547.                     warningClass: \"badge bg-info\",
  548.                     limitReachedClass: \"badge bg-warning\"
  549.                 });
  550.                 \$('input#thresholdconfig').maxlength({
  551.                     threshold: 20,
  552.                     warningClass: \"badge bg-info\",
  553.                     limitReachedClass: \"badge bg-warning\"
  554.                 });
  555.                 \$('input#moreoptions').maxlength({
  556.                     alwaysShow: true,
  557.                     warningClass: \"badge bg-success\",
  558.                     limitReachedClass: \"badge bg-danger\"
  559.                 });
  560.                 \$('input#alloptions').maxlength({
  561.                     alwaysShow: true,
  562.                     warningClass: \"badge bg-success\",
  563.                     limitReachedClass: \"badge bg-danger\",
  564.                     separator: ' out of ',
  565.                     preText: 'You typed ',
  566.                     postText: ' chars available.',
  567.                     validate: true
  568.                 });
  569.                 \$('textarea#textarea').maxlength({
  570.                     alwaysShow: true,
  571.                     warningClass: \"badge bg-info\",
  572.                     limitReachedClass: \"badge bg-warning\"
  573.                 });
  574.                 \$('input#placement').maxlength({
  575.                     alwaysShow: true,
  576.                     placement: 'top-left',
  577.                     warningClass: \"badge bg-info\",
  578.                     limitReachedClass: \"badge bg-warning\"
  579.                 });
  580.             },
  581.                     //init
  582.                     \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  583.         }(window.jQuery),
  584.                 //Datepicker
  585.                         function (\$) {
  586.                             \"use strict\";
  587.                             \$.AdvancedForm.init();
  588.                         }(window.jQuery);
  589.     </script>
  590. {% endblock %}""admin/country/edit/editDestination.html.twig""/home/bookoachroot/public_html/templates/admin/country/edit/editDestination.html.twig");
  591.     }
  592. }