<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* admin/category/edit/editCategory.html.twig */
class __TwigTemplate_b9dad6dcd5a6a5da24bec1ab77ec691d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_title' => [$this, 'block_page_title'],
'breadcump_main' => [$this, 'block_breadcump_main'],
'breadcump_subtitle' => [$this, 'block_breadcump_subtitle'],
'menu_left_sidebar' => [$this, 'block_menu_left_sidebar'],
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "admin/baseAdmin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/category/edit/editCategory.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/category/edit/editCategory.html.twig"));
$this->parent = $this->loadTemplate("admin/baseAdmin.html.twig", "admin/category/edit/editCategory.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_page_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
yield "Modifier Categorie";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 3
public function block_breadcump_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
yield "Categorie";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 4
public function block_breadcump_subtitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
yield "Modification de catégorie";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_menu_left_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
// line 6
yield " ";
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"]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
yield " <link href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/css/select2.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind2.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 14
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Modifier categorie"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 15
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 16
yield " <div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xl-12 px-0\">
<div class=\"card\">
<div class=\"card-body\">
<form class=\"p-1 \" method=\"post\" action=\"";
// line 22
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", false, false, false, 22)]), "html", null, true);
yield "\" enctype=\"multipart/form-data\" >
<div class=\"row\">
<h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du category </h5>
<div class=\"m-auto my-1 relative col-10\">
<label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
<img class=\"w-full h-72 rounded-lg m-auto object-cover\" src=\"";
// line 27
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", false, false, false, 27))), "html", null, true);
yield "\" alt=\"category image\" id=\"avatar-img\">
<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;\">
<i class=\"bx bxs-image-alt text-xl text-white\"></i>
</div>
<input type=\"file\" id=\"avatar-upload\" name='image' value=\"";
// line 31
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", false, false, false, 31), "html", null, true);
yield "\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
</label>
</div>
</div>
<h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du category</h5>
<p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la category par ses caracteristiques. </p>
<div class=\"row mb-4\">
<div class=\"form-floating col-md-12 col-sm-12 \">
<input type=\"text\" name=\"name\" value=\"";
// line 39
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", false, false, false, 39), "html", null, true);
yield "\"
class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
id=\"nom\" placeholder=\"\">
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du Category</label>
<div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
<i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
</div>
</div>
</div>
<div class=\"row mb-4\">
<div class=\"form-floating\">
<textarea class=\"form-control px-5\" placeholder=\"description du category\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\">";
// line 51
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", false, false, false, 51), "html", null, true);
yield "</textarea>
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du Category</label>
<div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
<i class=\"bx bx-notepad text-2xl\"></i>
</div>
</div>
</div>
<div class=\"form-floating col-md-12 col-sm-12 mb-4\">
<input value=\"";
// line 61
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", false, false, false, 61), "html", null, true);
yield "\" type=\"number\" name=\"ordre\"
class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
id=\"nom\" placeholder=\"\">
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Category order</label>
<div class=\"absolute\" style=\"top: 15px;left: 13px;color: #a1a1a1;\">
<i class=\"bx bx-sort-a-z\" style=\"font-size: 29px;\"></i>
</div>
</div>
<div class=\"mb-3 flex items-center text-base\">
<label for=\"example-color-input\" class=\"pr-24\">Color</label>
<div class=\"\">
<input class=\"form-control form-control-color mw-100\" type=\"color\" name='color' value=\"";
// line 73
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", false, false, false, 73), "html", null, true);
yield "\" id=\"example-color-input\">
</div>
<p class=\"text-xs text-gray-500 pl-4\">*Color principale de la sous categorie</p>
</div>
<div class=\"flex gap-20 mt-4\">
<label for=\"example-text-input\" class=\"block font-medium text-gray-700 dark:text-zink-200 text-13\">Visibilite du Category :</label>
<div class=\" flex gap-2\">
<!-- \"Afficher\" button -->
<button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
<div class=\"flex items-center\">
<div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
<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\">
<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>
</div>
</div>
<span class=\"text-sm font-medium\" for=\"radio-show\">Afficher</span>
</button>
<!-- \"Masquer\" button -->
<button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
<div class=\"flex items-center\">
<div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
<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\">
<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>
</div>
</div>
<span class=\"text-sm font-medium\" for=\"radio-hide\">Masquer </span>
</button>
</div>
</div>
<div class=\"divider mt-16\"></div>
<div class=\"flex mt-4 row\">
<div class=\"col-md-6\">
<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>
</div>
<div class=\"col-md flex justify-end\">
<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\">
Annuler</button>
<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>
</div>
</div>
</form>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<!-- end col -->
</div>
</div> <!-- container-fluid -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 134
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 135
yield " <!-- apexcharts -->
<script src=\"";
// line 136
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 137
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/js/select2.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 138
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", null, true);
yield "\"></script>
<script src=\"";
// line 140
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/pages/form-validation.init.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 142
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html", null, true);
yield "\"></script>
<script>
/*
Template Name: Skote - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: themesbrand@gmail.com
File: Form Advanced Js File
*/
!function (\$) {
\"use strict\";
var AdvancedForm = function () { };
AdvancedForm.prototype.init = function () {
// Select2
if (\$('.select2').length > 0) {
\$(\".select2\").select2();
}
if (\$('.select2-tags').length > 0) {
\$(\".select2-tags\").select2({
tags: true
});
}
if (\$('.select2-limiting-3').length > 0) {
\$(\".select2-limiting-3\").select2({
maximumSelectionLength: 3
});
}
//Bootstrap-MaxLength
\$('input#defaultconfig').maxlength({
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#thresholdconfig').maxlength({
threshold: 20,
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#moreoptions').maxlength({
alwaysShow: true,
warningClass: \"badge bg-success\",
limitReachedClass: \"badge bg-danger\"
});
\$('input#alloptions').maxlength({
alwaysShow: true,
warningClass: \"badge bg-success\",
limitReachedClass: \"badge bg-danger\",
separator: ' out of ',
preText: 'You typed ',
postText: ' chars available.',
validate: true
});
\$('textarea#textarea').maxlength({
alwaysShow: true,
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#placement').maxlength({
alwaysShow: true,
placement: 'top-left',
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
},
//init
\$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
}(window.jQuery),
//Datepicker
function (\$) {
\"use strict\";
\$.AdvancedForm.init();
}(window.jQuery);
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "admin/category/edit/editCategory.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Modifier Categorie{% endblock %}
{% block breadcump_main %}Categorie{% endblock %}
{% block breadcump_subtitle %}Modification de catégorie{% endblock %}
{% block menu_left_sidebar %}
{% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
{% endblock %}
{% block stylesheets %}
<link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
{% endblock %}
{% block title %}{{\"Modifier categorie\"|trans }}{% endblock %}
{% block content %}
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xl-12 px-0\">
<div class=\"card\">
<div class=\"card-body\">
<form class=\"p-1 \" method=\"post\" action=\"{{ path('edit_category',{'id':category.id})}}\" enctype=\"multipart/form-data\" >
<div class=\"row\">
<h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du category </h5>
<div class=\"m-auto my-1 relative col-10\">
<label for=\"avatar-upload\" class=\"relative flex justify-center\" style=\"cursor: pointer;\">
<img class=\"w-full h-72 rounded-lg m-auto object-cover\" src=\"{{ asset(''~category.image)}}\" alt=\"category image\" id=\"avatar-img\">
<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;\">
<i class=\"bx bxs-image-alt text-xl text-white\"></i>
</div>
<input type=\"file\" id=\"avatar-upload\" name='image' value=\"{{ category.image }}\" style=\"display: none;\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
</label>
</div>
</div>
<h5 class=\"text-base sm:text-lg font-semibold mt-5 \">Information General du category</h5>
<p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la category par ses caracteristiques. </p>
<div class=\"row mb-4\">
<div class=\"form-floating col-md-12 col-sm-12 \">
<input type=\"text\" name=\"name\" value=\"{{ category.name }}\"
class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
id=\"nom\" placeholder=\"\">
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Nom du Category</label>
<div class=\"absolute\" style=\"top: 11px;left: 17px;color: #a1a1a1;\">
<i class=\"bx bx-grid-small\" style=\"font-size: 36px;\"></i>
</div>
</div>
</div>
<div class=\"row mb-4\">
<div class=\"form-floating\">
<textarea class=\"form-control px-5\" placeholder=\"description du category\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\">{{ category.description }}</textarea>
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du Category</label>
<div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
<i class=\"bx bx-notepad text-2xl\"></i>
</div>
</div>
</div>
<div class=\"form-floating col-md-12 col-sm-12 mb-4\">
<input value=\"{{ category.ordre }}\" type=\"number\" name=\"ordre\"
class=\"form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5\"
id=\"nom\" placeholder=\"\">
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"nom\">Category order</label>
<div class=\"absolute\" style=\"top: 15px;left: 13px;color: #a1a1a1;\">
<i class=\"bx bx-sort-a-z\" style=\"font-size: 29px;\"></i>
</div>
</div>
<div class=\"mb-3 flex items-center text-base\">
<label for=\"example-color-input\" class=\"pr-24\">Color</label>
<div class=\"\">
<input class=\"form-control form-control-color mw-100\" type=\"color\" name='color' value=\"{{ category.color }}\" id=\"example-color-input\">
</div>
<p class=\"text-xs text-gray-500 pl-4\">*Color principale de la sous categorie</p>
</div>
<div class=\"flex gap-20 mt-4\">
<label for=\"example-text-input\" class=\"block font-medium text-gray-700 dark:text-zink-200 text-13\">Visibilite du Category :</label>
<div class=\" flex gap-2\">
<!-- \"Afficher\" button -->
<button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
<div class=\"flex items-center\">
<div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
<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\">
<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>
</div>
</div>
<span class=\"text-sm font-medium\" for=\"radio-show\">Afficher</span>
</button>
<!-- \"Masquer\" button -->
<button type=\"button\" class=\"flex font-medium items-center px-2 text-gray-900 text-lg w-full\">
<div class=\"flex items-center\">
<div class=\"relative inline-block w-10 mr-2 align-middle transition duration-200 ease-in\">
<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\">
<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>
</div>
</div>
<span class=\"text-sm font-medium\" for=\"radio-hide\">Masquer </span>
</button>
</div>
</div>
<div class=\"divider mt-16\"></div>
<div class=\"flex mt-4 row\">
<div class=\"col-md-6\">
<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>
</div>
<div class=\"col-md flex justify-end\">
<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\">
Annuler</button>
<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>
</div>
</div>
</form>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<!-- end col -->
</div>
</div> <!-- container-fluid -->
{% endblock %}
{% block javascripts %}
<!-- apexcharts -->
<script src=\"{{ asset('admin/libs/parsleyjs/parsley.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}\"></script>
<script src=\"{{ asset('admin/js/pages/form-validation.init.js')}}\"></script>
<script src=\"{{ asset('admin/js/app.js')}}\"></script>
<script>
/*
Template Name: Skote - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: themesbrand@gmail.com
File: Form Advanced Js File
*/
!function (\$) {
\"use strict\";
var AdvancedForm = function () { };
AdvancedForm.prototype.init = function () {
// Select2
if (\$('.select2').length > 0) {
\$(\".select2\").select2();
}
if (\$('.select2-tags').length > 0) {
\$(\".select2-tags\").select2({
tags: true
});
}
if (\$('.select2-limiting-3').length > 0) {
\$(\".select2-limiting-3\").select2({
maximumSelectionLength: 3
});
}
//Bootstrap-MaxLength
\$('input#defaultconfig').maxlength({
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#thresholdconfig').maxlength({
threshold: 20,
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#moreoptions').maxlength({
alwaysShow: true,
warningClass: \"badge bg-success\",
limitReachedClass: \"badge bg-danger\"
});
\$('input#alloptions').maxlength({
alwaysShow: true,
warningClass: \"badge bg-success\",
limitReachedClass: \"badge bg-danger\",
separator: ' out of ',
preText: 'You typed ',
postText: ' chars available.',
validate: true
});
\$('textarea#textarea').maxlength({
alwaysShow: true,
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
\$('input#placement').maxlength({
alwaysShow: true,
placement: 'top-left',
warningClass: \"badge bg-info\",
limitReachedClass: \"badge bg-warning\"
});
},
//init
\$.AdvancedForm = new AdvancedForm, \$.AdvancedForm.Constructor = AdvancedForm
}(window.jQuery),
//Datepicker
function (\$) {
\"use strict\";
\$.AdvancedForm.init();
}(window.jQuery);
</script>
{% endblock %}", "admin/category/edit/editCategory.html.twig", "/home/bookoachroot/public_html/templates/admin/category/edit/editCategory.html.twig");
}
}