<?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;
/* Theme/Users/Adminuser/Accueil/accueiladmin.html.twig */
class __TwigTemplate_49a6809c67956b6babd388b5fd508680 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'title' => [$this, 'block_title'],
'userblog_body' => [$this, 'block_userblog_body'],
'javascripttemplate' => [$this, 'block_javascripttemplate'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Theme/Users/Adminuser/layoutadmin.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", "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig", "Theme/Users/Adminuser/Accueil/accueiladmin.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_meta($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", "meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 3
yield "\t";
yield from $this->yieldParentBlock("meta", $context, $blocks);
yield "
\t<meta name=\"author\" content=\"Sprint-pay\"/>
\t<meta name=\"description\" content=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 5, $this->source); })()), "html", null, true);
yield " - Connexion\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
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"));
// line 9
yield "\t";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " | Connexion
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_userblog_body($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", "userblog_body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
// line 13
yield "<section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
<section style=\"min-height: 98px; padding: 15px 50px; background: #2fa84b; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\">
<div class=\"row\">
<div class=\"col-md-12\">
<span style=\"float: right;\">
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Un Article</a>
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#categoryModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Une catégorie</a>
</span>
<h1>Une bonne affaire</h1>
<div>Une bonne affaire</div>
</div>
</div>
</section>
</section>
<div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
<ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
<li><a href=\"#\">Dashboard</a></li>
<li><a href=\"#\">Paramètres</a></li>
<li><h1>Liste des paramètres ";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 32, $this->source); })()), "html", null, true);
yield "</h1></li>
</ul>
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "session", [], "any", false, false, false, 35), "flashbag", [], "any", false, false, false, 35), "get", ["information"], "method", false, false, false, 35));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["infos"]) {
// line 36
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 36)) {
// line 37
yield " <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["infos"], "html", null, true);
yield "
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
// line 44
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['infos'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
yield "
<div style=\"background: #fff; min-height: calc(100vh - 200px);\">
<div class=\"accordion\">
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["type_article"]) || array_key_exists("type_article", $context) ? $context["type_article"] : (function () { throw new RuntimeError('Variable "type_article" does not exist.', 50, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["typearticle"]) {
// line 51
yield " <div class=\"accordion__item\">
<h2 class=\"accordion__title ";
// line 52
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 52) < 3)) {
yield "active";
}
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "name", [], "any", false, false, false, 52), "html", null, true);
yield "</h2>
<div class=\"accordion__body\">
<p>";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "description", [], "any", false, false, false, 54), "html", null, true);
yield "</p>
<div class=\"mt-3 text-right\">
<a href=\"#!\" class=\"update-type-article\" value=\"";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "id", [], "any", false, false, false, 57), "html", null, true);
yield "\" style=\"color: green;\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a href=\"#!\" class=\"suppression_current_categorie\" value=\"";
// line 58
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_supprimer_categorie_article", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "id", [], "any", false, false, false, 58)]), "html", null, true);
yield "\" style=\"color: red;\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
<div class=\"card mt-3\">
";
// line 62
$context["liste_article"] = CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "getFirstArticle", [], "method", false, false, false, 62);
// line 63
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_article"]) || array_key_exists("liste_article", $context) ? $context["liste_article"] : (function () { throw new RuntimeError('Variable "liste_article" does not exist.', 63, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 64
yield " <div class=\"card-body\">
<h4 class=\"card-title text-primary\">
";
// line 66
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 66), "html", null, true);
yield "
<div class=\"dropdown\" style=\"float: right;\">
<button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"bi bi-activity\"></i>
</button>
<div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-start\" style=\"position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 46px, 0px);\">
<h6 class=\"dropdown-header\">Opérations</h6>
<a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "id", [], "any", false, false, false, 74), "html", null, true);
yield "\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_delete_article", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "id", [], "any", false, false, false, 75)]), "html", null, true);
yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
</div>
</h4>
<p class=\"card-description\">
";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 81), "d"), "html", null, true);
yield ".";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 81), "m"), "html", null, true);
yield ".";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 81), "Y"), "html", null, true);
yield "
</p>
<p>
";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 84), "html", null, true);
yield "
</p>
<div class=\"mt-4\">
<a href=\"";
// line 87
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_add_new_detail_article", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "id", [], "any", false, false, false, 87)]), "html", null, true);
yield "\">En savoir plus <span class=\"bi bi-arrow-90deg-right\"></span></a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
yield " </div>
</div>
<div class=\"mt-4\">
<a href=\"";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_articles_typearticle", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["typearticle"], "id", [], "any", false, false, false, 96)]), "html", null, true);
yield "\">Afficher tous les articles <span class=\"bi bi-arrow-90deg-right\"></span></a>
</div>
</div>
<!-- \tEND Item -->
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['typearticle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
yield " </div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- Modal -->
<div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
";
// line 110
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 110, $this->source); })()), 'form_start', ["attr" => ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_admin_article")]]);
yield "\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
";
// line 121
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 121, $this->source); })()), 'errors');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 124
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 124, $this->source); })()), "title", [], "any", false, false, false, 124), 'errors');
yield "
";
// line 125
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 125, $this->source); })()), "title", [], "any", false, false, false, 125), 'label', ["label" => "Nom de l'article"]);
yield "
";
// line 126
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 126, $this->source); })()), "title", [], "any", false, false, false, 126), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 129
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 129, $this->source); })()), "content", [], "any", false, false, false, 129), 'errors');
yield "
";
// line 130
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 130, $this->source); })()), "content", [], "any", false, false, false, 130), 'label', ["label" => "Détail de l'article"]);
yield "
";
// line 131
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 131, $this->source); })()), "content", [], "any", false, false, false, 131), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 134
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "rang", [], "any", false, false, false, 134), 'errors');
yield "
";
// line 135
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 135, $this->source); })()), "rang", [], "any", false, false, false, 135), 'label', ["label" => "Rang dans le classement"]);
yield "
";
// line 136
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 136, $this->source); })()), "rang", [], "any", false, false, false, 136), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 139
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 139, $this->source); })()), "typearticle", [], "any", false, false, false, 139), 'errors');
yield "
";
// line 140
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 140, $this->source); })()), "typearticle", [], "any", false, false, false, 140), 'label', ["label" => "Catégorie de l'article"]);
yield "
";
// line 141
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 141, $this->source); })()), "typearticle", [], "any", false, false, false, 141), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 144
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 144, $this->source); })()), "keywords", [], "any", false, false, false, 144), 'errors');
yield "
";
// line 145
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 145, $this->source); })()), "keywords", [], "any", false, false, false, 145), 'label', ["label" => "Mots clés de l'article séparé par les virgule"]);
yield "
";
// line 146
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 146, $this->source); })()), "keywords", [], "any", false, false, false, 146), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 149
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 149, $this->source); })()), "imgarticle", [], "any", false, false, false, 149), 'errors');
yield "
";
// line 150
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 150, $this->source); })()), "imgarticle", [], "any", false, false, false, 150), 'label', ["label" => "Joindre une image"]);
yield "
";
// line 151
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 151, $this->source); })()), "imgarticle", [], "any", false, false, false, 151), 'widget');
yield "
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
";
// line 162
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 162, $this->source); })()), 'form_end');
yield "
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"categoryModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"categoryModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
";
// line 169
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 169, $this->source); })()), 'form_start', ["attr" => ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_ajout_category_article")]]);
yield "\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter une catégorie d'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
";
// line 180
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 180, $this->source); })()), 'errors');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 183
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 183, $this->source); })()), "name", [], "any", false, false, false, 183), 'errors');
yield "
";
// line 184
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 184, $this->source); })()), "name", [], "any", false, false, false, 184), 'label', ["label" => "Nom de l'article"]);
yield "
";
// line 185
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 185, $this->source); })()), "name", [], "any", false, false, false, 185), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 188
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 188, $this->source); })()), "description", [], "any", false, false, false, 188), 'errors');
yield "
";
// line 189
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 189, $this->source); })()), "description", [], "any", false, false, false, 189), 'label', ["label" => "Détail de l'article"]);
yield "
";
// line 190
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 190, $this->source); })()), "description", [], "any", false, false, false, 190), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 193
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 193, $this->source); })()), "rang", [], "any", false, false, false, 193), 'errors');
yield "
";
// line 194
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 194, $this->source); })()), "rang", [], "any", false, false, false, 194), 'label', ["label" => "Rang dans le classement"]);
yield "
";
// line 195
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 195, $this->source); })()), "rang", [], "any", false, false, false, 195), 'widget');
yield "
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
";
// line 208
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formtype"]) || array_key_exists("formtype", $context) ? $context["formtype"] : (function () { throw new RuntimeError('Variable "formtype" does not exist.', 208, $this->source); })()), 'form_end');
yield "
</div>
</div>
<div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
Patientez un moment pendant le chargement de l'article</br>
<img src=\"";
// line 228
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html", null, true);
yield "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
</div>
<div class=\"content-module-loading\" style=\"display: none;\">
</div>
</div>
</div>
</div>
<div class=\"modal-footer\" style=\"display: block;\">
";
// line 239
yield from $this->loadTemplate("Theme/General/Template/Menu/social.html.twig", "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig", 239)->unwrap()->yield($context);
// line 240
yield " </div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 247
public function block_javascripttemplate($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", "javascripttemplate"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
// line 248
yield "
\$(\".accordion__title.active\").next().slideDown();
\$(\".accordion__title\").on(\"click\", function () {
if( \$(this).hasClass('active') ) {
\t\t\$(this).removeClass(\"active\").next().slideUp();
\t} else {
\t\t\$(\".accordion__title.active\").removeClass(\"active\").next(\".accordion__body\").slideUp();
\$(this).addClass('active').next('.accordion__body').slideDown();
\t}
});
\$('.update-type-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('";
// line 265
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_modification_categorie_produit");
yield "',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_categorie').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet catégorie ?</br></br> <span class='bi bi-info'></span> Rassurez-vous qu'aucun article n'est lié à cette catégorie </br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
\$('.update-content-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('";
// line 289
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_article_categorie");
yield "',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_article').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br> <span class='bi bi-info'></span> Rassurez-vous qu'aucune partie n'est liée à cette catégorie </br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 654 => 289, 627 => 265, 608 => 248, 598 => 247, 582 => 240, 580 => 239, 566 => 228, 543 => 208, 527 => 195, 523 => 194, 519 => 193, 513 => 190, 509 => 189, 505 => 188, 499 => 185, 495 => 184, 491 => 183, 485 => 180, 471 => 169, 461 => 162, 447 => 151, 443 => 150, 439 => 149, 433 => 146, 429 => 145, 425 => 144, 419 => 141, 415 => 140, 411 => 139, 405 => 136, 401 => 135, 397 => 134, 391 => 131, 387 => 130, 383 => 129, 377 => 126, 373 => 125, 369 => 124, 363 => 121, 349 => 110, 338 => 101, 319 => 96, 313 => 92, 302 => 87, 296 => 84, 286 => 81, 277 => 75, 273 => 74, 262 => 66, 258 => 64, 253 => 63, 251 => 62, 244 => 58, 240 => 57, 234 => 54, 225 => 52, 222 => 51, 205 => 50, 198 => 45, 184 => 44, 175 => 38, 172 => 37, 169 => 36, 152 => 35, 146 => 32, 125 => 13, 115 => 12, 101 => 9, 91 => 8, 78 => 5, 72 => 3, 62 => 2, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Theme/Users/Adminuser/layoutadmin.html.twig\" %}
{% block meta %}
\t{{ parent() }}
\t<meta name=\"author\" content=\"Sprint-pay\"/>
\t<meta name=\"description\" content=\"{{ site }} - Connexion\"/>
{% endblock %}
{% block title %}
\t{{ parent() }} | Connexion
{% endblock %}
{% block userblog_body %}
<section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
<section style=\"min-height: 98px; padding: 15px 50px; background: #2fa84b; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\">
<div class=\"row\">
<div class=\"col-md-12\">
<span style=\"float: right;\">
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Un Article</a>
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#categoryModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Une catégorie</a>
</span>
<h1>Une bonne affaire</h1>
<div>Une bonne affaire</div>
</div>
</div>
</section>
</section>
<div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
<ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
<li><a href=\"#\">Dashboard</a></li>
<li><a href=\"#\">Paramètres</a></li>
<li><h1>Liste des paramètres {{ site }}</h1></li>
</ul>
{% for infos in app.session.flashbag.get('information') %}
{% if loop.last %}
<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
{{ infos }}
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endif %}
{% endfor %}
<div style=\"background: #fff; min-height: calc(100vh - 200px);\">
<div class=\"accordion\">
{% for typearticle in type_article %}
<div class=\"accordion__item\">
<h2 class=\"accordion__title {% if loop.index < 3 %}active{% endif %}\">{{ typearticle.name }}</h2>
<div class=\"accordion__body\">
<p>{{ typearticle.description }}</p>
<div class=\"mt-3 text-right\">
<a href=\"#!\" class=\"update-type-article\" value=\"{{ typearticle.id }}\" style=\"color: green;\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a href=\"#!\" class=\"suppression_current_categorie\" value=\"{{ path('users_adminuser_supprimer_categorie_article', {'id': typearticle.id }) }}\" style=\"color: red;\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
<div class=\"card mt-3\">
{% set liste_article = typearticle.getFirstArticle() %}
{% for article in liste_article %}
<div class=\"card-body\">
<h4 class=\"card-title text-primary\">
{{ article.title }}
<div class=\"dropdown\" style=\"float: right;\">
<button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"bi bi-activity\"></i>
</button>
<div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-start\" style=\"position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 46px, 0px);\">
<h6 class=\"dropdown-header\">Opérations</h6>
<a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"{{ article.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"{{ path('users_adminuser_delete_article', {'id': article.id }) }}\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
</div>
</h4>
<p class=\"card-description\">
{{ article.createdAt|date('d') }}.{{ article.createdAt|date('m') }}.{{ article.createdAt|date('Y') }}
</p>
<p>
{{ article.content }}
</p>
<div class=\"mt-4\">
<a href=\"{{ path('users_adminuser_add_new_detail_article', {'id': article.id}) }}\">En savoir plus <span class=\"bi bi-arrow-90deg-right\"></span></a>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"mt-4\">
<a href=\"{{ path('users_adminuser_articles_typearticle', {'id': typearticle.id }) }}\">Afficher tous les articles <span class=\"bi bi-arrow-90deg-right\"></span></a>
</div>
</div>
<!-- \tEND Item -->
{% endfor %}
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- Modal -->
<div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
{{ form_start(form, {'attr': {'action': path('users_adminuser_accueil_admin_article') }}) }}\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
{{ form_errors(form) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.title) }}
{{ form_label(form.title,'Nom de l\\'article') }}
{{ form_widget(form.title) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.content) }}
{{ form_label(form.content,'Détail de l\\'article') }}
{{ form_widget(form.content) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.rang) }}
{{ form_label(form.rang,'Rang dans le classement') }}
{{ form_widget(form.rang) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.typearticle) }}
{{ form_label(form.typearticle,'Catégorie de l\\'article') }}
{{ form_widget(form.typearticle) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.keywords) }}
{{ form_label(form.keywords,'Mots clés de l\\'article séparé par les virgule') }}
{{ form_widget(form.keywords) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.imgarticle) }}
{{ form_label(form.imgarticle,'Joindre une image') }}
{{ form_widget(form.imgarticle) }}
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"categoryModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"categoryModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
{{ form_start(formtype, {'attr': {'action': path('users_adminuser_ajout_category_article') }}) }}\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter une catégorie d'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
{{ form_errors(formtype) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(formtype.name) }}
{{ form_label(formtype.name,'Nom de l\\'article') }}
{{ form_widget(formtype.name) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(formtype.description) }}
{{ form_label(formtype.description,'Détail de l\\'article') }}
{{ form_widget(formtype.description) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(formtype.rang) }}
{{ form_label(formtype.rang,'Rang dans le classement') }}
{{ form_widget(formtype.rang) }}
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
{{ form_end(formtype) }}
</div>
</div>
<div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
Patientez un moment pendant le chargement de l'article</br>
<img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
</div>
<div class=\"content-module-loading\" style=\"display: none;\">
</div>
</div>
</div>
</div>
<div class=\"modal-footer\" style=\"display: block;\">
{% include \"Theme/General/Template/Menu/social.html.twig\" %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripttemplate %}
\$(\".accordion__title.active\").next().slideDown();
\$(\".accordion__title\").on(\"click\", function () {
if( \$(this).hasClass('active') ) {
\t\t\$(this).removeClass(\"active\").next().slideUp();
\t} else {
\t\t\$(\".accordion__title.active\").removeClass(\"active\").next(\".accordion__body\").slideUp();
\$(this).addClass('active').next('.accordion__body').slideDown();
\t}
});
\$('.update-type-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('{{ path('users_adminuser_modification_categorie_produit') }}',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_categorie').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet catégorie ?</br></br> <span class='bi bi-info'></span> Rassurez-vous qu'aucun article n'est lié à cette catégorie </br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
\$('.update-content-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('{{ path('users_adminuser_update_article_categorie') }}',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_article').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br> <span class='bi bi-info'></span> Rassurez-vous qu'aucune partie n'est liée à cette catégorie </br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
{% endblock %}", "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig", "/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Accueil/accueiladmin.html.twig");
}
}