<?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/addSubcategory.html.twig */
class __TwigTemplate_45d157782ad91b28f2bc10780cde4b58 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/addSubcategory.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/addSubcategory.html.twig"));
$this->parent = $this->loadTemplate("admin/baseAdmin.html.twig", "admin/category/addSubcategory.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 "Ajouter sous 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 "Nouvelle sous category";
$__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/addSubcategory.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("Ajouter sous 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 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_subcategory");
yield "\" enctype=\"multipart/form-data\" >
<div class=\"row\">
<h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du souscategorie </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 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/images/juliane-lieberman.jpg"), "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' 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 sous categorie</h5>
<p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous categorie par ses caracteristiques. </p>
<div class=\"row mb-4\">
<div class=\"form-floating col-md-12 col-sm-12 \">
<input type=\"text\" name=\"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 sous Categorie</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=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du sousategorie</label>
<div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
<i class=\"bx bx-notepad text-2xl\"></i>
</div>
</div>
<div class=\"mb-3 col-md-6\">
<p for=\"\" class=\"form-label font-semibold \">Categorie</p>
<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\">
";
// line 64
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 65
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 65), "html", null, true);
yield "\" >";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 65), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
yield " </select>
</div>
</div>
<div class=\"flex gap-20 mt-4\">
<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>
<div class=\"mx-2 flex gap-2\">
<!-- \"Afficher\" button -->
<input type=\"checkbox\" name=\"visibility\" id=\"switch3\" switch=\"bool\" checked />
<label for=\"switch3\" data-on-label=\"Oui\" data-off-label=\"Non\"></label>
<!-- \"Masquer\" 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 -->
<!-- End main -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 112
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 113
yield " <!-- apexcharts -->
<script src=\"";
// line 114
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 115
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 116
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 118
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 120
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/addSubcategory.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Ajouter sous categorie {% endblock %}
{% block breadcump_main %}Categorie{% endblock %}
{% block breadcump_subtitle %}Nouvelle sous category{% 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 %}{{\"Ajouter sous 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('add_subcategory') }}\" enctype=\"multipart/form-data\" >
<div class=\"row\">
<h5 class=\"text-base col-md-2 col-sm-12 px-0 \">Image du souscategorie </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('admin/images/juliane-lieberman.jpg') }}\" 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' 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 sous categorie</h5>
<p class=\"pb-4 text-gray-700 text-xs sm:text-sm\">Decrivez la sous categorie par ses caracteristiques. </p>
<div class=\"row mb-4\">
<div class=\"form-floating col-md-12 col-sm-12 \">
<input type=\"text\" name=\"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 sous Categorie</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=\"Messager nous\" id=\"floatingTextarea2\" name='description' style=\"height: 100px\"></textarea>
<label class=\"mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 \" for=\"floatingTextarea2\">Description du sousategorie</label>
<div class=\"absolute\" style=\"top: 15px;left: 23px;color: #a1a1a1;\">
<i class=\"bx bx-notepad text-2xl\"></i>
</div>
</div>
<div class=\"mb-3 col-md-6\">
<p for=\"\" class=\"form-label font-semibold \">Categorie</p>
<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\">
{% for category in categories %}
<option value=\"{{ category.id }}\" >{{ category.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"flex gap-20 mt-4\">
<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>
<div class=\"mx-2 flex gap-2\">
<!-- \"Afficher\" button -->
<input type=\"checkbox\" name=\"visibility\" id=\"switch3\" switch=\"bool\" checked />
<label for=\"switch3\" data-on-label=\"Oui\" data-off-label=\"Non\"></label>
<!-- \"Masquer\" 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 -->
<!-- End main -->
{% 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/addSubcategory.html.twig", "/home/bookoachroot/public_html/templates/admin/category/addSubcategory.html.twig");
}
}