var/cache/dev/twig/bd/bd81c51156313c0c895f6c965c916199.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/category/addSubcategory.html.twig */
  15. class __TwigTemplate_45d157782ad91b28f2bc10780cde4b58 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/addSubcategory.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/addSubcategory.html.twig"));
  46.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/category/addSubcategory.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 "Ajouter sous categorie ";
  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 "Categorie";
  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 "Nouvelle sous category";
  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/addSubcategory.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("Ajouter 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->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_subcategory");
  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 souscategorie </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' style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  187.                                     </label>
  188.                                 </div>
  189.                             </div>
  190.                             <h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du sous categorie</h5>
  191.                             <p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous categorie par ses caracteristiques. </p>
  192.                             <div class=\"row mb-4\">
  193.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  194.                                     <input type=\"text\" name=\"name\"
  195.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  196.                                            id=\"nom\" placeholder=\"\">
  197.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du sous Categorie</label>
  198.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  199.                                         <i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
  200.                                     </div>
  201.                                 </div>
  202.                             </div>
  203.                             <div class=\"row mb-4\">
  204.                                 <div class=\"form-floating\">
  205.                                     <textarea class=\"form-control px-5\" placeholder=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
  206.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du sousategorie</label>
  207.                                     <div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
  208.                                         <i class=\"bx bx-notepad text-2xl\"></i>
  209.                                     </div>
  210.                                 </div>
  211.                                 <div class=\"mb-3 col-md-6\">
  212.                                     <p for=\"\" class=\"form-label font-semibold \">Categorie</p>
  213.                                     <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\">
  214.                                         ";
  215.         // line 64
  216.         $context['_parent'] = $context;
  217.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'64$this->source); })()));
  218.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  219.             // line 65
  220.             yield "                                            <option value=\"";
  221.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse65), "html"nulltrue);
  222.             yield "\" >";
  223.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse65), "html"nulltrue);
  224.             yield "</option>
  225.                                         ";
  226.         }
  227.         $_parent $context['_parent'];
  228.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  229.         $context array_intersect_key($context$_parent) + $_parent;
  230.         // line 67
  231.         yield "                                    </select>
  232.                                 </div>
  233.                             </div>
  234.                             <div class=\"flex gap-20 mt-4\">
  235.                                 <label for=\"example-text-input\" class=\"block font-medium text-gray-700 mr-2 dark:text-zink-200 text-13\">Visibilite du produit dans le menu:</label>
  236.                                 <div class=\"mx-2 flex gap-2\">
  237.                                     <!-- \"Afficher\" button -->
  238.                                     <input type=\"checkbox\" name=\"visibility\" id=\"switch3\" switch=\"bool\" checked />
  239.                                     <label for=\"switch3\" data-on-label=\"Oui\" data-off-label=\"Non\"></label>
  240.                                     <!-- \"Masquer\" button -->
  241.                                 </div>
  242.                             </div>
  243.                             <div class=\"divider mt-16\"></div>
  244.                             <div class=\"flex mt-4 row\">
  245.                                 <div class=\"col-md-6\">
  246.                                     <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>
  247.                                 </div>
  248.                                 <div class=\"col-md flex justify-end\">
  249.                                     <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\">
  250.                                         Annuler</button>
  251.                                     <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>
  252.                                 </div>
  253.                             </div>
  254.                         </form>
  255.                     </div>
  256.                     <!-- end card body -->
  257.                 </div>
  258.                 <!-- end card -->
  259.             </div>
  260.             <!-- end col -->
  261.             <!-- end col -->
  262.         </div>
  263.     </div> <!-- container-fluid -->
  264.     <!-- End main -->
  265. ";
  266.         
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268.         
  269.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  270.         return; yield '';
  271.     }
  272.     // line 112
  273.     public function block_javascripts($context, array $blocks = [])
  274.     {
  275.         $macros $this->macros;
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  278.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  279.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  280.         // line 113
  281.         yield "    <!-- apexcharts -->
  282.     <script src=\"";
  283.         // line 114
  284.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html"nulltrue);
  285.         yield "\"></script>
  286.     <script src=\"";
  287.         // line 115
  288.         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);
  289.         yield "\"></script>
  290.     <script src=\"";
  291.         // line 116
  292.         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);
  293.         yield "\"></script>
  294.     <script src=\"";
  295.         // line 118
  296.         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);
  297.         yield "\"></script>
  298.     <script src=\"";
  299.         // line 120
  300.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  301.         yield "\"></script>
  302.     <script>
  303.                                             /*
  304.                                              Template Name: Skote - Admin & Dashboard Template
  305.                                              Author: Themesbrand
  306.                                              Website: https://themesbrand.com/
  307.                                              Contact: themesbrand@gmail.com
  308.                                              File: Form Advanced Js File
  309.                                              */
  310.                                             !function (\$) {
  311.                                                 \"use strict\";
  312.                                                 var AdvancedForm = function () { };
  313.                                                 AdvancedForm.prototype.init = function () {
  314.                                                     // Select2
  315.                                                     if (\$('.select2').length > 0) {
  316.                                                         \$(\".select2\").select2();
  317.                                                     }
  318.                                                     if (\$('.select2-tags').length > 0) {
  319.                                                         \$(\".select2-tags\").select2({
  320.                                                             tags: true
  321.                                                         });
  322.                                                     }
  323.                                                     if (\$('.select2-limiting-3').length > 0) {
  324.                                                         \$(\".select2-limiting-3\").select2({
  325.                                                             maximumSelectionLength: 3
  326.                                                         });
  327.                                                     }
  328.                                                     //Bootstrap-MaxLength
  329.                                                     \$('input#defaultconfig').maxlength({
  330.                                                         warningClass: \"badge bg-info\",
  331.                                                         limitReachedClass: \"badge bg-warning\"
  332.                                                     });
  333.                                                     \$('input#thresholdconfig').maxlength({
  334.                                                         threshold: 20,
  335.                                                         warningClass: \"badge bg-info\",
  336.                                                         limitReachedClass: \"badge bg-warning\"
  337.                                                     });
  338.                                                     \$('input#moreoptions').maxlength({
  339.                                                         alwaysShow: true,
  340.                                                         warningClass: \"badge bg-success\",
  341.                                                         limitReachedClass: \"badge bg-danger\"
  342.                                                     });
  343.                                                     \$('input#alloptions').maxlength({
  344.                                                         alwaysShow: true,
  345.                                                         warningClass: \"badge bg-success\",
  346.                                                         limitReachedClass: \"badge bg-danger\",
  347.                                                         separator: ' out of ',
  348.                                                         preText: 'You typed ',
  349.                                                         postText: ' chars available.',
  350.                                                         validate: true
  351.                                                     });
  352.                                                     \$('textarea#textarea').maxlength({
  353.                                                         alwaysShow: true,
  354.                                                         warningClass: \"badge bg-info\",
  355.                                                         limitReachedClass: \"badge bg-warning\"
  356.                                                     });
  357.                                                     \$('input#placement').maxlength({
  358.                                                         alwaysShow: true,
  359.                                                         placement: 'top-left',
  360.                                                         warningClass: \"badge bg-info\",
  361.                                                         limitReachedClass: \"badge bg-warning\"
  362.                                                     });
  363.                                                 },
  364.                                                         //init
  365.                                                         \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  366.                                             }(window.jQuery),
  367.                                                     //Datepicker
  368.                                                             function (\$) {
  369.                                                                 \"use strict\";
  370.                                                                 \$.AdvancedForm.init();
  371.                                                             }(window.jQuery);
  372.     </script>
  373. ";
  374.         
  375.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  376.         
  377.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  378.         return; yield '';
  379.     }
  380.     /**
  381.      * @codeCoverageIgnore
  382.      */
  383.     public function getTemplateName()
  384.     {
  385.         return "admin/category/addSubcategory.html.twig";
  386.     }
  387.     /**
  388.      * @codeCoverageIgnore
  389.      */
  390.     public function isTraitable()
  391.     {
  392.         return false;
  393.     }
  394.     /**
  395.      * @codeCoverageIgnore
  396.      */
  397.     public function getDebugInfo()
  398.     {
  399.         return array (  368 => 120,  363 => 118,  358 => 116,  354 => 115,  350 => 114,  347 => 113,  337 => 112,  282 => 67,  271 => 65,  267 => 64,  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,);
  400.     }
  401.     public function getSourceContext()
  402.     {
  403.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  404. {% block page_title %}Ajouter sous categorie {% endblock %}
  405. {% block breadcump_main %}Categorie{% endblock %}
  406. {% block breadcump_subtitle %}Nouvelle sous category{% endblock %}
  407. {% block menu_left_sidebar %}
  408.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  409. {% endblock %}
  410. {% block stylesheets %}
  411.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  412.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  413.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  414. {% endblock %}
  415. {% block title %}{{\"Ajouter sous categorie\"|trans }}{% endblock %} 
  416. {% block content %}
  417.     <div class=\"container-fluid\">
  418.         <div class=\"row\">
  419.             <div class=\"col-xl-12 px-0\">
  420.                 <div class=\"card\">
  421.                     <div class=\"card-body\">
  422.                         <form class=\"p-1 \" method=\"post\" action=\"{{ path('add_subcategory')  }}\" enctype=\"multipart/form-data\"  >
  423.                             <div class=\"row\">
  424.                                 <h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du souscategorie </h5>
  425.                                 <div class=\"m-auto my-1 relative col-10\">
  426.                                     <label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
  427.                                         <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\">
  428.                                         <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;\">
  429.                                             <i class=\"bx bxs-image-alt text-xl text-white\"></i>
  430.                                         </div>
  431.                                         <input type=\"file\" id=\"avatar-upload\" name='image' style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
  432.                                     </label>
  433.                                 </div>
  434.                             </div>
  435.                             <h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du sous categorie</h5>
  436.                             <p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous categorie par ses caracteristiques. </p>
  437.                             <div class=\"row mb-4\">
  438.                                 <div class=\"form-floating col-md-12 col-sm-12 \">
  439.                                     <input type=\"text\" name=\"name\"
  440.                                            class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
  441.                                            id=\"nom\" placeholder=\"\">
  442.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du sous Categorie</label>
  443.                                     <div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
  444.                                         <i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
  445.                                     </div>
  446.                                 </div>
  447.                             </div>
  448.                             <div class=\"row mb-4\">
  449.                                 <div class=\"form-floating\">
  450.                                     <textarea class=\"form-control px-5\" placeholder=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
  451.                                     <label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du sousategorie</label>
  452.                                     <div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
  453.                                         <i class=\"bx bx-notepad text-2xl\"></i>
  454.                                     </div>
  455.                                 </div>
  456.                                 <div class=\"mb-3 col-md-6\">
  457.                                     <p for=\"\" class=\"form-label font-semibold \">Categorie</p>
  458.                                     <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\">
  459.                                         {% for category in categories %}
  460.                                             <option value=\"{{ category.id }}\" >{{ category.name }}</option>
  461.                                         {% endfor %}
  462.                                     </select>
  463.                                 </div>
  464.                             </div>
  465.                             <div class=\"flex gap-20 mt-4\">
  466.                                 <label for=\"example-text-input\" class=\"block font-medium text-gray-700 mr-2 dark:text-zink-200 text-13\">Visibilite du produit dans le menu:</label>
  467.                                 <div class=\"mx-2 flex gap-2\">
  468.                                     <!-- \"Afficher\" button -->
  469.                                     <input type=\"checkbox\" name=\"visibility\" id=\"switch3\" switch=\"bool\" checked />
  470.                                     <label for=\"switch3\" data-on-label=\"Oui\" data-off-label=\"Non\"></label>
  471.                                     <!-- \"Masquer\" button -->
  472.                                 </div>
  473.                             </div>
  474.                             <div class=\"divider mt-16\"></div>
  475.                             <div class=\"flex mt-4 row\">
  476.                                 <div class=\"col-md-6\">
  477.                                     <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>
  478.                                 </div>
  479.                                 <div class=\"col-md flex justify-end\">
  480.                                     <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\">
  481.                                         Annuler</button>
  482.                                     <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>
  483.                                 </div>
  484.                             </div>
  485.                         </form>
  486.                     </div>
  487.                     <!-- end card body -->
  488.                 </div>
  489.                 <!-- end card -->
  490.             </div>
  491.             <!-- end col -->
  492.             <!-- end col -->
  493.         </div>
  494.     </div> <!-- container-fluid -->
  495.     <!-- End main -->
  496. {% endblock %}
  497. {% block javascripts %}
  498.     <!-- apexcharts -->
  499.     <script src=\"{{ asset('admin/libs/parsleyjs/parsley.min.js')}}\"></script>
  500.     <script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
  501.     <script src=\"{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}\"></script>
  502.     <script src=\"{{ asset('admin/js/pages/form-validation.init.js')}}\"></script>
  503.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  504.     <script>
  505.                                             /*
  506.                                              Template Name: Skote - Admin & Dashboard Template
  507.                                              Author: Themesbrand
  508.                                              Website: https://themesbrand.com/
  509.                                              Contact: themesbrand@gmail.com
  510.                                              File: Form Advanced Js File
  511.                                              */
  512.                                             !function (\$) {
  513.                                                 \"use strict\";
  514.                                                 var AdvancedForm = function () { };
  515.                                                 AdvancedForm.prototype.init = function () {
  516.                                                     // Select2
  517.                                                     if (\$('.select2').length > 0) {
  518.                                                         \$(\".select2\").select2();
  519.                                                     }
  520.                                                     if (\$('.select2-tags').length > 0) {
  521.                                                         \$(\".select2-tags\").select2({
  522.                                                             tags: true
  523.                                                         });
  524.                                                     }
  525.                                                     if (\$('.select2-limiting-3').length > 0) {
  526.                                                         \$(\".select2-limiting-3\").select2({
  527.                                                             maximumSelectionLength: 3
  528.                                                         });
  529.                                                     }
  530.                                                     //Bootstrap-MaxLength
  531.                                                     \$('input#defaultconfig').maxlength({
  532.                                                         warningClass: \"badge bg-info\",
  533.                                                         limitReachedClass: \"badge bg-warning\"
  534.                                                     });
  535.                                                     \$('input#thresholdconfig').maxlength({
  536.                                                         threshold: 20,
  537.                                                         warningClass: \"badge bg-info\",
  538.                                                         limitReachedClass: \"badge bg-warning\"
  539.                                                     });
  540.                                                     \$('input#moreoptions').maxlength({
  541.                                                         alwaysShow: true,
  542.                                                         warningClass: \"badge bg-success\",
  543.                                                         limitReachedClass: \"badge bg-danger\"
  544.                                                     });
  545.                                                     \$('input#alloptions').maxlength({
  546.                                                         alwaysShow: true,
  547.                                                         warningClass: \"badge bg-success\",
  548.                                                         limitReachedClass: \"badge bg-danger\",
  549.                                                         separator: ' out of ',
  550.                                                         preText: 'You typed ',
  551.                                                         postText: ' chars available.',
  552.                                                         validate: true
  553.                                                     });
  554.                                                     \$('textarea#textarea').maxlength({
  555.                                                         alwaysShow: true,
  556.                                                         warningClass: \"badge bg-info\",
  557.                                                         limitReachedClass: \"badge bg-warning\"
  558.                                                     });
  559.                                                     \$('input#placement').maxlength({
  560.                                                         alwaysShow: true,
  561.                                                         placement: 'top-left',
  562.                                                         warningClass: \"badge bg-info\",
  563.                                                         limitReachedClass: \"badge bg-warning\"
  564.                                                     });
  565.                                                 },
  566.                                                         //init
  567.                                                         \$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
  568.                                             }(window.jQuery),
  569.                                                     //Datepicker
  570.                                                             function (\$) {
  571.                                                                 \"use strict\";
  572.                                                                 \$.AdvancedForm.init();
  573.                                                             }(window.jQuery);
  574.     </script>
  575. {% endblock %}""admin/category/addSubcategory.html.twig""/home/bookoachroot/public_html/templates/admin/category/addSubcategory.html.twig");
  576.     }
  577. }