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