var/cache/dev/twig/26/26e8f5775961fe5095011547e0ecb31e.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* Theme/Users/Adminuser/Accueil/accueiladmin.html.twig */
  15. class __TwigTemplate_49a6809c67956b6babd388b5fd508680 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'meta' => [$this'block_meta'],
  25.             'title' => [$this'block_title'],
  26.             'userblog_body' => [$this'block_userblog_body'],
  27.             'javascripttemplate' => [$this'block_javascripttemplate'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "Theme/Users/Adminuser/layoutadmin.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"));
  42.         $this->parent $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig""Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"1);
  43.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 2
  50.     public function block_meta($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  57.         // line 3
  58.         yield "\t";
  59.         yield from $this->yieldParentBlock("meta"$context$blocks);
  60.         yield "
  61. \t<meta name=\"author\" content=\"Sprint-pay\"/>
  62. \t<meta name=\"description\" content=\"";
  63.         // line 5
  64.         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"nulltrue);
  65.         yield " - Connexion\"/>
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         return; yield '';
  72.     }
  73.     // line 8
  74.     public function block_title($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  81.         // line 9
  82.         yield "\t";
  83.         yield from $this->yieldParentBlock("title"$context$blocks);
  84.         yield " | Connexion
  85. ";
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.         return; yield '';
  91.     }
  92.     // line 12
  93.     public function block_userblog_body($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  100.         // line 13
  101.         yield "<section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
  102.     <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);\">
  103.         <div class=\"row\">
  104.             <div class=\"col-md-12\">
  105.                 <span style=\"float: right;\">
  106.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Un Article</a>
  107.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#categoryModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Une catégorie</a>
  108.                 </span>
  109.                 
  110.                 <h1>Une bonne affaire</h1>
  111.                 <div>Une bonne affaire</div>
  112.             </div>
  113.         </div>
  114.     </section>
  115. </section>
  116. <div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
  117.     <ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
  118.       <li><a href=\"#\">Dashboard</a></li>
  119.       <li><a href=\"#\">Paramètres</a></li>
  120.       <li><h1>Liste des paramètres ";
  121.         // line 32
  122.         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"nulltrue);
  123.         yield "</h1></li>
  124.     </ul>
  125.     ";
  126.         // line 35
  127.         $context['_parent'] = $context;
  128.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse35), "flashbag", [], "any"falsefalsefalse35), "get", ["information"], "method"falsefalsefalse35));
  129.         $context['loop'] = [
  130.           'parent' => $context['_parent'],
  131.           'index0' => 0,
  132.           'index'  => 1,
  133.           'first'  => true,
  134.         ];
  135.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  136.             $length count($context['_seq']);
  137.             $context['loop']['revindex0'] = $length 1;
  138.             $context['loop']['revindex'] = $length;
  139.             $context['loop']['length'] = $length;
  140.             $context['loop']['last'] = === $length;
  141.         }
  142.         foreach ($context['_seq'] as $context["_key"] => $context["infos"]) {
  143.             // line 36
  144.             yield "        ";
  145.             if (CoreExtension::getAttribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse36)) {
  146.                 // line 37
  147.                 yield "          <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  148.               ";
  149.                 // line 38
  150.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["infos"], "html"nulltrue);
  151.                 yield "
  152.               <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  153.                   <span aria-hidden=\"true\">&times;</span>
  154.               </button>
  155.           </div>
  156.         ";
  157.             }
  158.             // line 44
  159.             yield "    ";
  160.             ++$context['loop']['index0'];
  161.             ++$context['loop']['index'];
  162.             $context['loop']['first'] = false;
  163.             if (isset($context['loop']['length'])) {
  164.                 --$context['loop']['revindex0'];
  165.                 --$context['loop']['revindex'];
  166.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  167.             }
  168.         }
  169.         $_parent $context['_parent'];
  170.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['infos'], $context['_parent'], $context['loop']);
  171.         $context array_intersect_key($context$_parent) + $_parent;
  172.         // line 45
  173.         yield "
  174.     <div style=\"background: #fff; min-height: calc(100vh - 200px);\">
  175.       <div class=\"accordion\">
  176.         ";
  177.         // line 50
  178.         $context['_parent'] = $context;
  179.         $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); })()));
  180.         $context['loop'] = [
  181.           'parent' => $context['_parent'],
  182.           'index0' => 0,
  183.           'index'  => 1,
  184.           'first'  => true,
  185.         ];
  186.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  187.             $length count($context['_seq']);
  188.             $context['loop']['revindex0'] = $length 1;
  189.             $context['loop']['revindex'] = $length;
  190.             $context['loop']['length'] = $length;
  191.             $context['loop']['last'] = === $length;
  192.         }
  193.         foreach ($context['_seq'] as $context["_key"] => $context["typearticle"]) {
  194.             // line 51
  195.             yield "        <div class=\"accordion__item\">
  196.           <h2 class=\"accordion__title ";
  197.             // line 52
  198.             if ((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse52) < 3)) {
  199.                 yield "active";
  200.             }
  201.             yield "\">";
  202.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["typearticle"], "name", [], "any"falsefalsefalse52), "html"nulltrue);
  203.             yield "</h2>
  204.           <div class=\"accordion__body\">
  205.             <p>";
  206.             // line 54
  207.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["typearticle"], "description", [], "any"falsefalsefalse54), "html"nulltrue);
  208.             yield "</p>
  209.             
  210.             <div class=\"mt-3 text-right\">
  211.               <a href=\"#!\" class=\"update-type-article\" value=\"";
  212.             // line 57
  213.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["typearticle"], "id", [], "any"falsefalsefalse57), "html"nulltrue);
  214.             yield "\" style=\"color: green;\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  215.               <a href=\"#!\" class=\"suppression_current_categorie\" value=\"";
  216.             // line 58
  217.             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"falsefalsefalse58)]), "html"nulltrue);
  218.             yield "\" style=\"color: red;\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
  219.             </div>
  220.             <div class=\"card mt-3\">
  221.               ";
  222.             // line 62
  223.             $context["liste_article"] = CoreExtension::getAttribute($this->env$this->source$context["typearticle"], "getFirstArticle", [], "method"falsefalsefalse62);
  224.             // line 63
  225.             yield "              ";
  226.             $context['_parent'] = $context;
  227.             $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); })()));
  228.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  229.                 // line 64
  230.                 yield "              <div class=\"card-body\">
  231.                 <h4 class=\"card-title text-primary\">
  232.                   ";
  233.                 // line 66
  234.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse66), "html"nulltrue);
  235.                 yield "
  236.                 
  237.                   <div class=\"dropdown\" style=\"float: right;\">
  238.                     <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  239.                       <i class=\"bi bi-activity\"></i>
  240.                     </button>
  241.                     <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);\">
  242.                       <h6 class=\"dropdown-header\">Opérations</h6>
  243.                       <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"";
  244.                 // line 74
  245.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse74), "html"nulltrue);
  246.                 yield "\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  247.                       <a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"";
  248.                 // line 75
  249.                 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"falsefalsefalse75)]), "html"nulltrue);
  250.                 yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
  251.                     </div>
  252.                   </div>
  253.                 </h4>
  254.                 <p class=\"card-description\">
  255.                   ";
  256.                 // line 81
  257.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse81), "d"), "html"nulltrue);
  258.                 yield ".";
  259.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse81), "m"), "html"nulltrue);
  260.                 yield ".";
  261.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse81), "Y"), "html"nulltrue);
  262.                 yield "
  263.                 </p>
  264.                 <p>
  265.                   ";
  266.                 // line 84
  267.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse84), "html"nulltrue);
  268.                 yield "
  269.                 </p>
  270.                 <div class=\"mt-4\">
  271.                   <a href=\"";
  272.                 // line 87
  273.                 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"falsefalsefalse87)]), "html"nulltrue);
  274.                 yield "\">En savoir plus <span class=\"bi bi-arrow-90deg-right\"></span></a>
  275.                 </div>
  276.               </div>
  277.               
  278.               ";
  279.             }
  280.             $_parent $context['_parent'];
  281.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  282.             $context array_intersect_key($context$_parent) + $_parent;
  283.             // line 92
  284.             yield "            </div>
  285.           </div>
  286.           <div class=\"mt-4\">
  287.             <a href=\"";
  288.             // line 96
  289.             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"falsefalsefalse96)]), "html"nulltrue);
  290.             yield "\">Afficher tous les articles <span class=\"bi bi-arrow-90deg-right\"></span></a>
  291.           </div>
  292.         </div>
  293.         <!-- \tEND Item -->
  294.         ";
  295.             ++$context['loop']['index0'];
  296.             ++$context['loop']['index'];
  297.             $context['loop']['first'] = false;
  298.             if (isset($context['loop']['length'])) {
  299.                 --$context['loop']['revindex0'];
  300.                 --$context['loop']['revindex'];
  301.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  302.             }
  303.         }
  304.         $_parent $context['_parent'];
  305.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['typearticle'], $context['_parent'], $context['loop']);
  306.         $context array_intersect_key($context$_parent) + $_parent;
  307.         // line 101
  308.         yield "      </div>
  309.     </div>
  310. </div>
  311. <!-- content-wrapper ends -->
  312. <!-- Modal -->
  313. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  314.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  315.     ";
  316.         // line 110
  317.         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")]]);
  318.         yield "\t
  319.     <div class=\"modal-content\">
  320.       <div class=\"modal-header\">
  321.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
  322.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  323.           <span aria-hidden=\"true\">&times;</span>
  324.         </button>
  325.       </div>
  326.       <div class=\"modal-body\">\t
  327.         <div class=\"row\">
  328.           <div class=\"col-md-12\">
  329.             ";
  330.         // line 121
  331.         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');
  332.         yield "
  333.           </div>
  334.           <div class=\"col-md-12 mt-3\">
  335.             ";
  336.         // line 124
  337.         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"falsefalsefalse124), 'errors');
  338.         yield "
  339.             ";
  340.         // line 125
  341.         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"falsefalsefalse125), 'label', ["label" => "Nom de l'article"]);
  342.         yield "
  343.             ";
  344.         // line 126
  345.         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"falsefalsefalse126), 'widget');
  346.         yield "
  347.           </div>
  348.           <div class=\"col-md-12 mt-3\">
  349.             ";
  350.         // line 129
  351.         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"falsefalsefalse129), 'errors');
  352.         yield "
  353.             ";
  354.         // line 130
  355.         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"falsefalsefalse130), 'label', ["label" => "Détail de l'article"]);
  356.         yield "
  357.             ";
  358.         // line 131
  359.         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"falsefalsefalse131), 'widget');
  360.         yield "
  361.           </div>
  362.           <div class=\"col-md-12 mt-3\">
  363.             ";
  364.         // line 134
  365.         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"falsefalsefalse134), 'errors');
  366.         yield "
  367.             ";
  368.         // line 135
  369.         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"falsefalsefalse135), 'label', ["label" => "Rang dans le classement"]);
  370.         yield "
  371.             ";
  372.         // line 136
  373.         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"falsefalsefalse136), 'widget');
  374.         yield "
  375.           </div>
  376.           <div class=\"col-md-12 mt-3\">
  377.             ";
  378.         // line 139
  379.         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"falsefalsefalse139), 'errors');
  380.         yield "
  381.             ";
  382.         // line 140
  383.         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"falsefalsefalse140), 'label', ["label" => "Catégorie de l'article"]);
  384.         yield "
  385.             ";
  386.         // line 141
  387.         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"falsefalsefalse141), 'widget');
  388.         yield "
  389.           </div>
  390.           <div class=\"col-md-12 mt-3\">
  391.             ";
  392.         // line 144
  393.         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"falsefalsefalse144), 'errors');
  394.         yield "
  395.             ";
  396.         // line 145
  397.         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"falsefalsefalse145), 'label', ["label" => "Mots clés de l'article séparé par les virgule"]);
  398.         yield "
  399.             ";
  400.         // line 146
  401.         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"falsefalsefalse146), 'widget');
  402.         yield "
  403.           </div>
  404.           <div class=\"col-md-12 mt-3\">
  405.             ";
  406.         // line 149
  407.         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"falsefalsefalse149), 'errors');
  408.         yield "
  409.             ";
  410.         // line 150
  411.         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"falsefalsefalse150), 'label', ["label" => "Joindre une image"]);
  412.         yield "
  413.             ";
  414.         // line 151
  415.         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"falsefalsefalse151), 'widget');
  416.         yield "
  417.           </div>
  418.          <div class=\"clear\"></div>
  419.         </div>
  420.       </div>
  421.       <div class=\"modal-footer\">
  422.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  423.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  424.       </div>
  425.     </div>
  426.     ";
  427.         // line 162
  428.         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');
  429.         yield "
  430.   </div>
  431. </div>
  432. <!-- Modal -->
  433. <div class=\"modal fade\" id=\"categoryModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"categoryModalCenter\" aria-hidden=\"true\">
  434.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  435.     ";
  436.         // line 169
  437.         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")]]);
  438.         yield "\t
  439.     <div class=\"modal-content\">
  440.       <div class=\"modal-header\">
  441.         <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter une catégorie d'article</h2>
  442.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  443.           <span aria-hidden=\"true\">&times;</span>
  444.         </button>
  445.       </div>
  446.       <div class=\"modal-body\">\t
  447.         <div class=\"row\">
  448.           <div class=\"col-md-12\">
  449.             ";
  450.         // line 180
  451.         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');
  452.         yield "
  453.           </div>
  454.           <div class=\"col-md-12 mt-3\">
  455.             ";
  456.         // line 183
  457.         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"falsefalsefalse183), 'errors');
  458.         yield "
  459.             ";
  460.         // line 184
  461.         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"falsefalsefalse184), 'label', ["label" => "Nom de l'article"]);
  462.         yield "
  463.             ";
  464.         // line 185
  465.         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"falsefalsefalse185), 'widget');
  466.         yield "
  467.           </div>
  468.           <div class=\"col-md-12 mt-3\">
  469.             ";
  470.         // line 188
  471.         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"falsefalsefalse188), 'errors');
  472.         yield "
  473.             ";
  474.         // line 189
  475.         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"falsefalsefalse189), 'label', ["label" => "Détail de l'article"]);
  476.         yield "
  477.             ";
  478.         // line 190
  479.         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"falsefalsefalse190), 'widget');
  480.         yield "
  481.           </div>
  482.           <div class=\"col-md-12 mt-3\">
  483.             ";
  484.         // line 193
  485.         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"falsefalsefalse193), 'errors');
  486.         yield "
  487.             ";
  488.         // line 194
  489.         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"falsefalsefalse194), 'label', ["label" => "Rang dans le classement"]);
  490.         yield "
  491.             ";
  492.         // line 195
  493.         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"falsefalsefalse195), 'widget');
  494.         yield "
  495.           </div>
  496.          <div class=\"clear\"></div>
  497.         </div>
  498.         
  499.       </div>
  500.       <div class=\"modal-footer\">
  501.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  502.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  503.       </div>
  504.     </div>
  505.     ";
  506.         // line 208
  507.         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');
  508.         yield "
  509.   </div>
  510. </div>
  511. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  512.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  513.   <div class=\"modal-content\">
  514.     <div class=\"modal-header\">
  515.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  516.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  517.         <span aria-hidden=\"true\">&times;</span>
  518.       </button>
  519.     </div>
  520.     <div class=\"modal-body\">
  521.       <div class=\"row\">
  522.         <div class=\"col-md-12\">
  523.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  524.             Patientez un moment pendant le chargement de l'article</br>
  525.             <img src=\"";
  526.         // line 228
  527.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html"nulltrue);
  528.         yield "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  529.           </div>
  530.       
  531.           <div class=\"content-module-loading\" style=\"display: none;\">
  532.           
  533.           </div>
  534.         </div>
  535.       </div>
  536.     </div>
  537.     <div class=\"modal-footer\" style=\"display: block;\">
  538.       ";
  539.         // line 239
  540.         yield from         $this->loadTemplate("Theme/General/Template/Menu/social.html.twig""Theme/Users/Adminuser/Accueil/accueiladmin.html.twig"239)->unwrap()->yield($context);
  541.         // line 240
  542.         yield "    </div>
  543.   </div>
  544.   </div>
  545.   </div>
  546.   
  547. ";
  548.         
  549.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  550.         
  551.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  552.         return; yield '';
  553.     }
  554.     // line 247
  555.     public function block_javascripttemplate($context, array $blocks = [])
  556.     {
  557.         $macros $this->macros;
  558.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  559.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  560.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  561.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  562.         // line 248
  563.         yield "
  564. \$(\".accordion__title.active\").next().slideDown();
  565. \$(\".accordion__title\").on(\"click\", function () {
  566.   if( \$(this).hasClass('active') ) {
  567. \t\t\$(this).removeClass(\"active\").next().slideUp();
  568. \t} else {
  569. \t\t\$(\".accordion__title.active\").removeClass(\"active\").next(\".accordion__body\").slideUp();
  570.     \$(this).addClass('active').next('.accordion__body').slideDown();
  571. \t}
  572. });
  573. \$('.update-type-article').click(function(){
  574. \tvar id = \$(this).attr('value');
  575. \t\$('#modalGestionCatalogueSelect').modal('show');
  576. \t\$('.wait-chargement-content-module').show();
  577. \t\$('.content-module-loading').hide();
  578. \t\$.get('";
  579.         // line 265
  580.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_modification_categorie_produit");
  581.         yield "',{ id: id }, function(data){
  582. \t\t\$('.wait-chargement-content-module').hide();
  583. \t\t\$('.content-module-loading').show();
  584. \t\t\$('.content-module-loading').html(data);
  585. \t});
  586. });
  587. \$('.suppression_current_categorie').click(function(){
  588. \tid = \$(this).attr('value');
  589. \tresetNotif();
  590. \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) {
  591. \t\tif(e){
  592. \t\t\t  document.location.href= ''+id;
  593. \t\t} else {
  594. \t\t\talertify.success(\"Opération annulée avec succès !\");
  595. \t\t}
  596. \t});
  597. });
  598. \$('.update-content-article').click(function(){
  599. \tvar id = \$(this).attr('value');
  600. \t\$('#modalGestionCatalogueSelect').modal('show');
  601. \t\$('.wait-chargement-content-module').show();
  602. \t\$('.content-module-loading').hide();
  603. \t\$.get('";
  604.         // line 289
  605.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_article_categorie");
  606.         yield "',{ id: id }, function(data){
  607. \t\t\$('.wait-chargement-content-module').hide();
  608. \t\t\$('.content-module-loading').show();
  609. \t\t\$('.content-module-loading').html(data);
  610. \t});
  611. });
  612. \$('.suppression_current_article').click(function(){
  613. \tid = \$(this).attr('value');
  614. \tresetNotif();
  615. \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) {
  616. \t\tif(e){
  617. \t\t\t  document.location.href= ''+id;
  618. \t\t} else {
  619. \t\t\talertify.success(\"Opération annulée avec succès !\");
  620. \t\t}
  621. \t});
  622. });
  623. ";
  624.         
  625.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  626.         
  627.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  628.         return; yield '';
  629.     }
  630.     /**
  631.      * @codeCoverageIgnore
  632.      */
  633.     public function getTemplateName()
  634.     {
  635.         return "Theme/Users/Adminuser/Accueil/accueiladmin.html.twig";
  636.     }
  637.     /**
  638.      * @codeCoverageIgnore
  639.      */
  640.     public function isTraitable()
  641.     {
  642.         return false;
  643.     }
  644.     /**
  645.      * @codeCoverageIgnore
  646.      */
  647.     public function getDebugInfo()
  648.     {
  649.         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,);
  650.     }
  651.     public function getSourceContext()
  652.     {
  653.         return new Source("{% extends \"Theme/Users/Adminuser/layoutadmin.html.twig\" %}
  654. {% block meta %}
  655. \t{{ parent() }}
  656. \t<meta name=\"author\" content=\"Sprint-pay\"/>
  657. \t<meta name=\"description\" content=\"{{ site }} - Connexion\"/>
  658. {% endblock %}
  659. {% block title %}
  660. \t{{ parent() }} | Connexion
  661. {% endblock %}
  662. {% block userblog_body %}
  663. <section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
  664.     <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);\">
  665.         <div class=\"row\">
  666.             <div class=\"col-md-12\">
  667.                 <span style=\"float: right;\">
  668.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Un Article</a>
  669.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#categoryModalCenter\" class=\"btn btn-primary mt-2\">Ajouter Une catégorie</a>
  670.                 </span>
  671.                 
  672.                 <h1>Une bonne affaire</h1>
  673.                 <div>Une bonne affaire</div>
  674.             </div>
  675.         </div>
  676.     </section>
  677. </section>
  678. <div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
  679.     <ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
  680.       <li><a href=\"#\">Dashboard</a></li>
  681.       <li><a href=\"#\">Paramètres</a></li>
  682.       <li><h1>Liste des paramètres {{ site }}</h1></li>
  683.     </ul>
  684.     {% for infos in app.session.flashbag.get('information') %}
  685.         {% if loop.last %}
  686.           <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  687.               {{ infos }}
  688.               <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  689.                   <span aria-hidden=\"true\">&times;</span>
  690.               </button>
  691.           </div>
  692.         {% endif %}
  693.     {% endfor %}
  694.     <div style=\"background: #fff; min-height: calc(100vh - 200px);\">
  695.       <div class=\"accordion\">
  696.         {% for typearticle in type_article %}
  697.         <div class=\"accordion__item\">
  698.           <h2 class=\"accordion__title {% if loop.index < 3 %}active{% endif %}\">{{ typearticle.name }}</h2>
  699.           <div class=\"accordion__body\">
  700.             <p>{{ typearticle.description }}</p>
  701.             
  702.             <div class=\"mt-3 text-right\">
  703.               <a href=\"#!\" class=\"update-type-article\" value=\"{{ typearticle.id }}\" style=\"color: green;\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  704.               <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>
  705.             </div>
  706.             <div class=\"card mt-3\">
  707.               {% set liste_article = typearticle.getFirstArticle() %}
  708.               {% for article in liste_article %}
  709.               <div class=\"card-body\">
  710.                 <h4 class=\"card-title text-primary\">
  711.                   {{ article.title }}
  712.                 
  713.                   <div class=\"dropdown\" style=\"float: right;\">
  714.                     <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  715.                       <i class=\"bi bi-activity\"></i>
  716.                     </button>
  717.                     <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);\">
  718.                       <h6 class=\"dropdown-header\">Opérations</h6>
  719.                       <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"{{ article.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  720.                       <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>
  721.                     </div>
  722.                   </div>
  723.                 </h4>
  724.                 <p class=\"card-description\">
  725.                   {{ article.createdAt|date('d') }}.{{ article.createdAt|date('m') }}.{{ article.createdAt|date('Y') }}
  726.                 </p>
  727.                 <p>
  728.                   {{ article.content }}
  729.                 </p>
  730.                 <div class=\"mt-4\">
  731.                   <a href=\"{{ path('users_adminuser_add_new_detail_article', {'id': article.id}) }}\">En savoir plus <span class=\"bi bi-arrow-90deg-right\"></span></a>
  732.                 </div>
  733.               </div>
  734.               
  735.               {% endfor %}
  736.             </div>
  737.           </div>
  738.           <div class=\"mt-4\">
  739.             <a href=\"{{ path('users_adminuser_articles_typearticle', {'id': typearticle.id }) }}\">Afficher tous les articles <span class=\"bi bi-arrow-90deg-right\"></span></a>
  740.           </div>
  741.         </div>
  742.         <!-- \tEND Item -->
  743.         {% endfor %}
  744.       </div>
  745.     </div>
  746. </div>
  747. <!-- content-wrapper ends -->
  748. <!-- Modal -->
  749. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  750.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  751.     {{ form_start(form, {'attr': {'action': path('users_adminuser_accueil_admin_article') }}) }}\t
  752.     <div class=\"modal-content\">
  753.       <div class=\"modal-header\">
  754.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
  755.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  756.           <span aria-hidden=\"true\">&times;</span>
  757.         </button>
  758.       </div>
  759.       <div class=\"modal-body\">\t
  760.         <div class=\"row\">
  761.           <div class=\"col-md-12\">
  762.             {{ form_errors(form) }}
  763.           </div>
  764.           <div class=\"col-md-12 mt-3\">
  765.             {{ form_errors(form.title) }}
  766.             {{ form_label(form.title,'Nom de l\\'article') }}
  767.             {{ form_widget(form.title) }}
  768.           </div>
  769.           <div class=\"col-md-12 mt-3\">
  770.             {{ form_errors(form.content) }}
  771.             {{ form_label(form.content,'Détail de l\\'article') }}
  772.             {{ form_widget(form.content) }}
  773.           </div>
  774.           <div class=\"col-md-12 mt-3\">
  775.             {{ form_errors(form.rang) }}
  776.             {{ form_label(form.rang,'Rang dans le classement') }}
  777.             {{ form_widget(form.rang) }}
  778.           </div>
  779.           <div class=\"col-md-12 mt-3\">
  780.             {{ form_errors(form.typearticle) }}
  781.             {{ form_label(form.typearticle,'Catégorie de l\\'article') }}
  782.             {{ form_widget(form.typearticle) }}
  783.           </div>
  784.           <div class=\"col-md-12 mt-3\">
  785.             {{ form_errors(form.keywords) }}
  786.             {{ form_label(form.keywords,'Mots clés de l\\'article séparé par les virgule') }}
  787.             {{ form_widget(form.keywords) }}
  788.           </div>
  789.           <div class=\"col-md-12 mt-3\">
  790.             {{ form_errors(form.imgarticle) }}
  791.             {{ form_label(form.imgarticle,'Joindre une image') }}
  792.             {{ form_widget(form.imgarticle) }}
  793.           </div>
  794.          <div class=\"clear\"></div>
  795.         </div>
  796.       </div>
  797.       <div class=\"modal-footer\">
  798.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  799.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  800.       </div>
  801.     </div>
  802.     {{ form_end(form) }}
  803.   </div>
  804. </div>
  805. <!-- Modal -->
  806. <div class=\"modal fade\" id=\"categoryModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"categoryModalCenter\" aria-hidden=\"true\">
  807.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  808.     {{ form_start(formtype, {'attr': {'action': path('users_adminuser_ajout_category_article') }}) }}\t
  809.     <div class=\"modal-content\">
  810.       <div class=\"modal-header\">
  811.         <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter une catégorie d'article</h2>
  812.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  813.           <span aria-hidden=\"true\">&times;</span>
  814.         </button>
  815.       </div>
  816.       <div class=\"modal-body\">\t
  817.         <div class=\"row\">
  818.           <div class=\"col-md-12\">
  819.             {{ form_errors(formtype) }}
  820.           </div>
  821.           <div class=\"col-md-12 mt-3\">
  822.             {{ form_errors(formtype.name) }}
  823.             {{ form_label(formtype.name,'Nom de l\\'article') }}
  824.             {{ form_widget(formtype.name) }}
  825.           </div>
  826.           <div class=\"col-md-12 mt-3\">
  827.             {{ form_errors(formtype.description) }}
  828.             {{ form_label(formtype.description,'Détail de l\\'article') }}
  829.             {{ form_widget(formtype.description) }}
  830.           </div>
  831.           <div class=\"col-md-12 mt-3\">
  832.             {{ form_errors(formtype.rang) }}
  833.             {{ form_label(formtype.rang,'Rang dans le classement') }}
  834.             {{ form_widget(formtype.rang) }}
  835.           </div>
  836.          <div class=\"clear\"></div>
  837.         </div>
  838.         
  839.       </div>
  840.       <div class=\"modal-footer\">
  841.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  842.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  843.       </div>
  844.     </div>
  845.     {{ form_end(formtype) }}
  846.   </div>
  847. </div>
  848. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  849.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  850.   <div class=\"modal-content\">
  851.     <div class=\"modal-header\">
  852.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  853.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  854.         <span aria-hidden=\"true\">&times;</span>
  855.       </button>
  856.     </div>
  857.     <div class=\"modal-body\">
  858.       <div class=\"row\">
  859.         <div class=\"col-md-12\">
  860.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  861.             Patientez un moment pendant le chargement de l'article</br>
  862.             <img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  863.           </div>
  864.       
  865.           <div class=\"content-module-loading\" style=\"display: none;\">
  866.           
  867.           </div>
  868.         </div>
  869.       </div>
  870.     </div>
  871.     <div class=\"modal-footer\" style=\"display: block;\">
  872.       {% include \"Theme/General/Template/Menu/social.html.twig\" %}
  873.     </div>
  874.   </div>
  875.   </div>
  876.   </div>
  877.   
  878. {% endblock %}
  879. {% block javascripttemplate %}
  880. \$(\".accordion__title.active\").next().slideDown();
  881. \$(\".accordion__title\").on(\"click\", function () {
  882.   if( \$(this).hasClass('active') ) {
  883. \t\t\$(this).removeClass(\"active\").next().slideUp();
  884. \t} else {
  885. \t\t\$(\".accordion__title.active\").removeClass(\"active\").next(\".accordion__body\").slideUp();
  886.     \$(this).addClass('active').next('.accordion__body').slideDown();
  887. \t}
  888. });
  889. \$('.update-type-article').click(function(){
  890. \tvar id = \$(this).attr('value');
  891. \t\$('#modalGestionCatalogueSelect').modal('show');
  892. \t\$('.wait-chargement-content-module').show();
  893. \t\$('.content-module-loading').hide();
  894. \t\$.get('{{ path('users_adminuser_modification_categorie_produit') }}',{ id: id }, function(data){
  895. \t\t\$('.wait-chargement-content-module').hide();
  896. \t\t\$('.content-module-loading').show();
  897. \t\t\$('.content-module-loading').html(data);
  898. \t});
  899. });
  900. \$('.suppression_current_categorie').click(function(){
  901. \tid = \$(this).attr('value');
  902. \tresetNotif();
  903. \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) {
  904. \t\tif(e){
  905. \t\t\t  document.location.href= ''+id;
  906. \t\t} else {
  907. \t\t\talertify.success(\"Opération annulée avec succès !\");
  908. \t\t}
  909. \t});
  910. });
  911. \$('.update-content-article').click(function(){
  912. \tvar id = \$(this).attr('value');
  913. \t\$('#modalGestionCatalogueSelect').modal('show');
  914. \t\$('.wait-chargement-content-module').show();
  915. \t\$('.content-module-loading').hide();
  916. \t\$.get('{{ path('users_adminuser_update_article_categorie') }}',{ id: id }, function(data){
  917. \t\t\$('.wait-chargement-content-module').hide();
  918. \t\t\$('.content-module-loading').show();
  919. \t\t\$('.content-module-loading').html(data);
  920. \t});
  921. });
  922. \$('.suppression_current_article').click(function(){
  923. \tid = \$(this).attr('value');
  924. \tresetNotif();
  925. \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) {
  926. \t\tif(e){
  927. \t\t\t  document.location.href= ''+id;
  928. \t\t} else {
  929. \t\t\talertify.success(\"Opération annulée avec succès !\");
  930. \t\t}
  931. \t});
  932. });
  933. {% endblock %}""Theme/Users/Adminuser/Accueil/accueiladmin.html.twig""/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Accueil/accueiladmin.html.twig");
  934.     }
  935. }