var/cache/dev/twig/0d/0df7d8f38f2db0aad7b6bf15fe02a91d.php line 46

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/category/edit/editSubcategory.html.twig */
  15. class __TwigTemplate_3e170a1ca9e668e281123588189afdac 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/category/edit/editSubcategory.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/category/edit/editSubcategory.html.twig"));
  46.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/category/edit/editSubcategory.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 sous catégorie";
  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 "Coach";
  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 sous catégorie";
  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/category/edit/editSubcategory.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 sous categorie"), "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.         // line 16
  166.         yield "    <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 24
  173.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_subcategory", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'24$this->source); })()), "id", [], "any"falsefalsefalse24)]), "html"nulltrue);
  174.         yield "\" enctype=\"multipart/form-data\"  >
  175.                             <div class=\"row\">
  176.                                 <h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du subcategory </h5>
  177.                                 <div class=\"m-auto my-1 relative col-10\">
  178.                                     <label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
  179.                                         <img class=\"w-full h-72 rounded-lg m-auto object-cover\" src=\"";
  180.         // line 29
  181.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/images/juliane-lieberman.jpg"), "html"nulltrue);
  182.         yield "\" alt=\"category image\" id=\"avatar-img\">
  183.                                         <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;\">
  184.                                             <i class=\"bx bxs-image-alt text-xl text-white\"></i>
  185.                                         </div>
  186.                                         <input type=\"file\" id=\"avatar-upload\" name='image' value=\"";
  187.         // line 33
  188.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'33$this->source); })()), "image", [], "any"falsefalsefalse33), "html"nulltrue);
  189.         yield "\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  190.                                     </label>
  191.                                 </div>
  192.                             </div>
  193.                             <h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du sous category</h5>
  194.                             <p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous category par ses caracteristiques. </p>
  195.                             <div class=\"row mb-4\">
  196.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  197.                                     <input type=\"text\" name=\"name\" value=\"";
  198.         // line 43
  199.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'43$this->source); })()), "name", [], "any"falsefalsefalse43), "html"nulltrue);
  200.         yield "\"
  201.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  202.                                            id=\"nom\" placeholder=\"\">
  203.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du sous Category</label>
  204.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  205.                                         <i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
  206.                                     </div>
  207.                                 </div>
  208.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  209.                                     <input value=\"";
  210.         // line 53
  211.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'53$this->source); })()), "ordre", [], "any"falsefalsefalse53), "html"nulltrue);
  212.         yield "\" type=\"number\" name=\"ordre\"
  213.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  214.                                            id=\"nom\" placeholder=\"\">
  215.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Category order</label>
  216.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  217.                                         <i class=\"bx bx-sort-a-z\" style=\"font-size: 36px;\"></i>
  218.                                     </div>
  219.                                 </div>
  220.                                 <div class=\"mb-3 col-md-6\">
  221.                                     <p for=\"\" class=\"form-label font-semibold \">Categorie</p>
  222.                                     <select id=\"country\" name=\"category\" 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\">
  223.                                         ";
  224.         // line 65
  225.         $context['_parent'] = $context;
  226.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'65$this->source); })()));
  227.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  228.             // line 66
  229.             yield "                                            <option ";
  230.             if ((CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse66) == CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'66$this->source); })()), "id", [], "any"falsefalsefalse66))) {
  231.                 yield "selected=\"\"";
  232.             }
  233.             yield " value=\"";
  234.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse66), "html"nulltrue);
  235.             yield "\" >";
  236.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse66), "html"nulltrue);
  237.             yield "</option>
  238.                                         ";
  239.         }
  240.         $_parent $context['_parent'];
  241.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  242.         $context array_intersect_key($context$_parent) + $_parent;
  243.         // line 68
  244.         yield "                                    </select>
  245.                                 </div>
  246.                             </div>
  247.                             <div class=\"row mb-4\">
  248.                                 <div class=\"form-floating\">
  249.                                     <textarea class=\"form-control px-5\" value=\"";
  250.         // line 74
  251.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'74$this->source); })()), "description", [], "any"falsefalsefalse74), "html"nulltrue);
  252.         yield "\" placeholder=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
  253.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du Category</label>
  254.                                     <div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
  255.                                         <i class=\"bx bx-notepad text-2xl\"></i>
  256.                                     </div>
  257.                                 </div>
  258.                             </div>
  259.                             <div class=\"flex gap-20 mt-4\">
  260.                                 <label for=\"example-text-input\" class=\"block font-medium text-gray-700  dark:text-zink-200 text-13\">Visibilite du produit dans le menu:</label>
  261.                                 <div class=\" flex gap-2\">
  262.                                     <!-- \"Afficher\" button -->
  263.                                     <button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
  264.                                         <div class=\"flex items-center\">
  265.                                             <div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
  266.                                                 <input type=\"radio\" name=\"visibility\" id=\"radio-show\" class=\"absolute block w-5 h-5 transition duration-300 ease-linear border-2 border-gray-200 rounded-sm appearance-none cursor-pointer bg-white/80 peer/published checked:bg-white checked:right-0 checked:border-green-500 arrow-none\">
  267.                                                 <label for=\"radio-show\" class=\"block h-5 overflow-hidden transition duration-300 ease-linear border rounded-sm cursor-pointer border-slate-200 bg-slate-200 peer-checked/published:bg-green-500 peer-checked/published:border-green-500\"></label>
  268.                                             </div>
  269.                                         </div>
  270.                                         <span class=\"text-sm font-medium\" for=\"radio-show\">Afficher</span>
  271.                                     </button>
  272.                                     <!-- \"Masquer\" button -->
  273.                                     <button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
  274.                                         <div class=\"flex items-center\">
  275.                                             <div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
  276.                                                 <input type=\"radio\" name=\"visibility\" id=\"radio-hide\" class=\"absolute block w-5 h-5 transition duration-300 ease-linear border-2 border-gray-200 rounded-sm appearance-none cursor-pointer bg-white/80 peer/published checked:bg-white checked:right-0 checked:border-green-500 arrow-none\">
  277.                                                 <label for=\"radio-hide\" class=\"block h-5 overflow-hidden transition duration-300 ease-linear border rounded-sm cursor-pointer border-slate-200 bg-slate-200 peer-checked/published:bg-green-500 peer-checked/published:border-green-500\"></label>
  278.                                             </div>
  279.                                         </div>
  280.                                         <span class=\"text-sm font-medium\" for=\"radio-hide\">Masquer</span>
  281.                                     </button>
  282.                                 </div>
  283.                             </div>
  284.                             <div class=\"divider mt-16\"></div>
  285.                             <div class=\"flex mt-4 row\">
  286.                                 <div class=\"col-md-6\">
  287.                                     <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>
  288.                                 </div>
  289.                                 <div class=\"col-md flex justify-end\">
  290.                                     <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\">
  291.                                         Annuler</button>
  292.                                     <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>
  293.                                 </div>
  294.                             </div>
  295.                         </form>
  296.                     </div>
  297.                     <!-- end card body -->
  298.                 </div>
  299.                 <!-- end card -->
  300.             </div>
  301.             <!-- end col -->
  302.             <!-- end col -->
  303.         </div>
  304.     </div> <!-- container-fluid -->
  305.     <!-- End main -->
  306. ";
  307.         
  308.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  309.         
  310.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  311.         return; yield '';
  312.     }
  313.     // line 141
  314.     public function block_javascripts($context, array $blocks = [])
  315.     {
  316.         $macros $this->macros;
  317.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  319.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  321.         // line 142
  322.         yield "    <!-- apexcharts -->
  323.     <script src=\"";
  324.         // line 143
  325.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html"nulltrue);
  326.         yield "\"></script>
  327.     <script src=\"";
  328.         // line 144
  329.         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);
  330.         yield "\"></script>
  331.     <script src=\"";
  332.         // line 145
  333.         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);
  334.         yield "\"></script>
  335.     <script src=\"";
  336.         // line 147
  337.         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);
  338.         yield "\"></script>
  339.     <script src=\"";
  340.         // line 149
  341.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  342.         yield "\"></script>
  343.     <script>
  344.                                                     /*
  345.                                                      Template Name: Skote - Admin & Dashboard Template
  346.                                                      Author: Themesbrand
  347.                                                      Website: https://themesbrand.com/
  348.                                                      Contact: themesbrand@gmail.com
  349.                                                      File: Form Advanced Js File
  350.                                                      */
  351.                                                     !function (\$) {
  352.                                                         \"use strict\";
  353.                                                         var AdvancedForm = function () { };
  354.                                                         AdvancedForm.prototype.init = function () {
  355.                                                             // Select2
  356.                                                             if (\$('.select2').length > 0) {
  357.                                                                 \$(\".select2\").select2();
  358.                                                             }
  359.                                                             if (\$('.select2-tags').length > 0) {
  360.                                                                 \$(\".select2-tags\").select2({
  361.                                                                     tags: true
  362.                                                                 });
  363.                                                             }
  364.                                                             if (\$('.select2-limiting-3').length > 0) {
  365.                                                                 \$(\".select2-limiting-3\").select2({
  366.                                                                     maximumSelectionLength: 3
  367.                                                                 });
  368.                                                             }
  369.                                                             //Bootstrap-MaxLength
  370.                                                             \$('input#defaultconfig').maxlength({
  371.                                                                 warningClass: \"badge bg-info\",
  372.                                                                 limitReachedClass: \"badge bg-warning\"
  373.                                                             });
  374.                                                             \$('input#thresholdconfig').maxlength({
  375.                                                                 threshold: 20,
  376.                                                                 warningClass: \"badge bg-info\",
  377.                                                                 limitReachedClass: \"badge bg-warning\"
  378.                                                             });
  379.                                                             \$('input#moreoptions').maxlength({
  380.                                                                 alwaysShow: true,
  381.                                                                 warningClass: \"badge bg-success\",
  382.                                                                 limitReachedClass: \"badge bg-danger\"
  383.                                                             });
  384.                                                             \$('input#alloptions').maxlength({
  385.                                                                 alwaysShow: true,
  386.                                                                 warningClass: \"badge bg-success\",
  387.                                                                 limitReachedClass: \"badge bg-danger\",
  388.                                                                 separator: ' out of ',
  389.                                                                 preText: 'You typed ',
  390.                                                                 postText: ' chars available.',
  391.                                                                 validate: true
  392.                                                             });
  393.                                                             \$('textarea#textarea').maxlength({
  394.                                                                 alwaysShow: true,
  395.                                                                 warningClass: \"badge bg-info\",
  396.                                                                 limitReachedClass: \"badge bg-warning\"
  397.                                                             });
  398.                                                             \$('input#placement').maxlength({
  399.                                                                 alwaysShow: true,
  400.                                                                 placement: 'top-left',
  401.                                                                 warningClass: \"badge bg-info\",
  402.                                                                 limitReachedClass: \"badge bg-warning\"
  403.                                                             });
  404.                                                         },
  405.                                                                 //init
  406.                                                                 \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  407.                                                     }(window.jQuery),
  408.                                                             //Datepicker
  409.                                                                     function (\$) {
  410.                                                                         \"use strict\";
  411.                                                                         \$.AdvancedForm.init();
  412.                                                                     }(window.jQuery);
  413.     </script>
  414. ";
  415.         
  416.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  417.         
  418.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  419.         return; yield '';
  420.     }
  421.     /**
  422.      * @codeCoverageIgnore
  423.      */
  424.     public function getTemplateName()
  425.     {
  426.         return "admin/category/edit/editSubcategory.html.twig";
  427.     }
  428.     /**
  429.      * @codeCoverageIgnore
  430.      */
  431.     public function isTraitable()
  432.     {
  433.         return false;
  434.     }
  435.     /**
  436.      * @codeCoverageIgnore
  437.      */
  438.     public function getDebugInfo()
  439.     {
  440.         return array (  413 => 149,  408 => 147,  403 => 145,  399 => 144,  395 => 143,  392 => 142,  382 => 141,  304 => 74,  296 => 68,  281 => 66,  277 => 65,  262 => 53,  249 => 43,  236 => 33,  229 => 29,  221 => 24,  211 => 16,  201 => 15,  181 => 14,  167 => 11,  163 => 10,  158 => 9,  148 => 8,  136 => 6,  126 => 5,  106 => 4,  86 => 3,  66 => 2,  43 => 1,);
  441.     }
  442.     public function getSourceContext()
  443.     {
  444.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  445. {% block page_title %}Modifier sous catégorie{% endblock %}
  446. {% block breadcump_main %}Coach{% endblock %}
  447. {% block breadcump_subtitle %}Création de sous catégorie{% endblock %}
  448. {% block menu_left_sidebar %}
  449.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  450. {% endblock %}
  451. {% block stylesheets %}
  452.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  453.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  454.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  455. {% endblock %}
  456. {% block title %}{{\"Modifier sous categorie\"|trans }}{% endblock %} 
  457. {% block content %}
  458.     <div class=\"container-fluid\">
  459.         <div class=\"row\">
  460.             <div class=\"col-xl-12 px-0\">
  461.                 <div class=\"card\">
  462.                     <div class=\"card-body\">
  463.                         <form class=\"p-1 \" method=\"post\" action=\"{{ path('edit_subcategory',{'id':subcategory.id})}}\" enctype=\"multipart/form-data\"  >
  464.                             <div class=\"row\">
  465.                                 <h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du subcategory </h5>
  466.                                 <div class=\"m-auto my-1 relative col-10\">
  467.                                     <label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
  468.                                         <img class=\"w-full h-72 rounded-lg m-auto object-cover\" src=\"{{ asset('admin/images/juliane-lieberman.jpg') }}\" alt=\"category image\" id=\"avatar-img\">
  469.                                         <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;\">
  470.                                             <i class=\"bx bxs-image-alt text-xl text-white\"></i>
  471.                                         </div>
  472.                                         <input type=\"file\" id=\"avatar-upload\" name='image' value=\"{{ subcategory.image }}\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  473.                                     </label>
  474.                                 </div>
  475.                             </div>
  476.                             <h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du sous category</h5>
  477.                             <p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous category par ses caracteristiques. </p>
  478.                             <div class=\"row mb-4\">
  479.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  480.                                     <input type=\"text\" name=\"name\" value=\"{{ subcategory.name }}\"
  481.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  482.                                            id=\"nom\" placeholder=\"\">
  483.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du sous Category</label>
  484.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  485.                                         <i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
  486.                                     </div>
  487.                                 </div>
  488.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  489.                                     <input value=\"{{ subcategory.ordre }}\" type=\"number\" name=\"ordre\"
  490.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  491.                                            id=\"nom\" placeholder=\"\">
  492.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Category order</label>
  493.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  494.                                         <i class=\"bx bx-sort-a-z\" style=\"font-size: 36px;\"></i>
  495.                                     </div>
  496.                                 </div>
  497.                                 <div class=\"mb-3 col-md-6\">
  498.                                     <p for=\"\" class=\"form-label font-semibold \">Categorie</p>
  499.                                     <select id=\"country\" name=\"category\" 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\">
  500.                                         {% for category in categories %}
  501.                                             <option {% if category.id == subcategory.id %}selected=\"\"{% endif %} value=\"{{ category.id }}\" >{{ category.name }}</option>
  502.                                         {% endfor %}
  503.                                     </select>
  504.                                 </div>
  505.                             </div>
  506.                             <div class=\"row mb-4\">
  507.                                 <div class=\"form-floating\">
  508.                                     <textarea class=\"form-control px-5\" value=\"{{ subcategory.description }}\" placeholder=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
  509.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du Category</label>
  510.                                     <div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
  511.                                         <i class=\"bx bx-notepad text-2xl\"></i>
  512.                                     </div>
  513.                                 </div>
  514.                             </div>
  515.                             <div class=\"flex gap-20 mt-4\">
  516.                                 <label for=\"example-text-input\" class=\"block font-medium text-gray-700  dark:text-zink-200 text-13\">Visibilite du produit dans le menu:</label>
  517.                                 <div class=\" flex gap-2\">
  518.                                     <!-- \"Afficher\" button -->
  519.                                     <button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
  520.                                         <div class=\"flex items-center\">
  521.                                             <div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
  522.                                                 <input type=\"radio\" name=\"visibility\" id=\"radio-show\" class=\"absolute block w-5 h-5 transition duration-300 ease-linear border-2 border-gray-200 rounded-sm appearance-none cursor-pointer bg-white/80 peer/published checked:bg-white checked:right-0 checked:border-green-500 arrow-none\">
  523.                                                 <label for=\"radio-show\" class=\"block h-5 overflow-hidden transition duration-300 ease-linear border rounded-sm cursor-pointer border-slate-200 bg-slate-200 peer-checked/published:bg-green-500 peer-checked/published:border-green-500\"></label>
  524.                                             </div>
  525.                                         </div>
  526.                                         <span class=\"text-sm font-medium\" for=\"radio-show\">Afficher</span>
  527.                                     </button>
  528.                                     <!-- \"Masquer\" button -->
  529.                                     <button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
  530.                                         <div class=\"flex items-center\">
  531.                                             <div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
  532.                                                 <input type=\"radio\" name=\"visibility\" id=\"radio-hide\" class=\"absolute block w-5 h-5 transition duration-300 ease-linear border-2 border-gray-200 rounded-sm appearance-none cursor-pointer bg-white/80 peer/published checked:bg-white checked:right-0 checked:border-green-500 arrow-none\">
  533.                                                 <label for=\"radio-hide\" class=\"block h-5 overflow-hidden transition duration-300 ease-linear border rounded-sm cursor-pointer border-slate-200 bg-slate-200 peer-checked/published:bg-green-500 peer-checked/published:border-green-500\"></label>
  534.                                             </div>
  535.                                         </div>
  536.                                         <span class=\"text-sm font-medium\" for=\"radio-hide\">Masquer</span>
  537.                                     </button>
  538.                                 </div>
  539.                             </div>
  540.                             <div class=\"divider mt-16\"></div>
  541.                             <div class=\"flex mt-4 row\">
  542.                                 <div class=\"col-md-6\">
  543.                                     <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>
  544.                                 </div>
  545.                                 <div class=\"col-md flex justify-end\">
  546.                                     <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\">
  547.                                         Annuler</button>
  548.                                     <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>
  549.                                 </div>
  550.                             </div>
  551.                         </form>
  552.                     </div>
  553.                     <!-- end card body -->
  554.                 </div>
  555.                 <!-- end card -->
  556.             </div>
  557.             <!-- end col -->
  558.             <!-- end col -->
  559.         </div>
  560.     </div> <!-- container-fluid -->
  561.     <!-- End main -->
  562. {% endblock %}
  563. {% block javascripts %}
  564.     <!-- apexcharts -->
  565.     <script src=\"{{ asset('admin/libs/parsleyjs/parsley.min.js')}}\"></script>
  566.     <script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
  567.     <script src=\"{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}\"></script>
  568.     <script src=\"{{ asset('admin/js/pages/form-validation.init.js')}}\"></script>
  569.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  570.     <script>
  571.                                                     /*
  572.                                                      Template Name: Skote - Admin & Dashboard Template
  573.                                                      Author: Themesbrand
  574.                                                      Website: https://themesbrand.com/
  575.                                                      Contact: themesbrand@gmail.com
  576.                                                      File: Form Advanced Js File
  577.                                                      */
  578.                                                     !function (\$) {
  579.                                                         \"use strict\";
  580.                                                         var AdvancedForm = function () { };
  581.                                                         AdvancedForm.prototype.init = function () {
  582.                                                             // Select2
  583.                                                             if (\$('.select2').length > 0) {
  584.                                                                 \$(\".select2\").select2();
  585.                                                             }
  586.                                                             if (\$('.select2-tags').length > 0) {
  587.                                                                 \$(\".select2-tags\").select2({
  588.                                                                     tags: true
  589.                                                                 });
  590.                                                             }
  591.                                                             if (\$('.select2-limiting-3').length > 0) {
  592.                                                                 \$(\".select2-limiting-3\").select2({
  593.                                                                     maximumSelectionLength: 3
  594.                                                                 });
  595.                                                             }
  596.                                                             //Bootstrap-MaxLength
  597.                                                             \$('input#defaultconfig').maxlength({
  598.                                                                 warningClass: \"badge bg-info\",
  599.                                                                 limitReachedClass: \"badge bg-warning\"
  600.                                                             });
  601.                                                             \$('input#thresholdconfig').maxlength({
  602.                                                                 threshold: 20,
  603.                                                                 warningClass: \"badge bg-info\",
  604.                                                                 limitReachedClass: \"badge bg-warning\"
  605.                                                             });
  606.                                                             \$('input#moreoptions').maxlength({
  607.                                                                 alwaysShow: true,
  608.                                                                 warningClass: \"badge bg-success\",
  609.                                                                 limitReachedClass: \"badge bg-danger\"
  610.                                                             });
  611.                                                             \$('input#alloptions').maxlength({
  612.                                                                 alwaysShow: true,
  613.                                                                 warningClass: \"badge bg-success\",
  614.                                                                 limitReachedClass: \"badge bg-danger\",
  615.                                                                 separator: ' out of ',
  616.                                                                 preText: 'You typed ',
  617.                                                                 postText: ' chars available.',
  618.                                                                 validate: true
  619.                                                             });
  620.                                                             \$('textarea#textarea').maxlength({
  621.                                                                 alwaysShow: true,
  622.                                                                 warningClass: \"badge bg-info\",
  623.                                                                 limitReachedClass: \"badge bg-warning\"
  624.                                                             });
  625.                                                             \$('input#placement').maxlength({
  626.                                                                 alwaysShow: true,
  627.                                                                 placement: 'top-left',
  628.                                                                 warningClass: \"badge bg-info\",
  629.                                                                 limitReachedClass: \"badge bg-warning\"
  630.                                                             });
  631.                                                         },
  632.                                                                 //init
  633.                                                                 \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  634.                                                     }(window.jQuery),
  635.                                                             //Datepicker
  636.                                                                     function (\$) {
  637.                                                                         \"use strict\";
  638.                                                                         \$.AdvancedForm.init();
  639.                                                                     }(window.jQuery);
  640.     </script>
  641. {% endblock %}""admin/category/edit/editSubcategory.html.twig""/home/bookoachroot/public_html/templates/admin/category/edit/editSubcategory.html.twig");
  642.     }
  643. }