var/cache/dev/twig/80/8032b7cbf483a878f8231e87cc9ebaf5.php line 42

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/Partenaire/accueilpartenaire.html.twig */
  15. class __TwigTemplate_e691a19caee219fea90233d31feb950d 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/Partenaire/accueilpartenaire.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/Partenaire/accueilpartenaire.html.twig"));
  42.         $this->parent $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig""Theme/Users/Adminuser/Partenaire/accueilpartenaire.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 slide</a>
  107.                 </span>
  108.                 
  109.                 <h1>Une bonne affaire</h1>
  110.                 <div>Une bonne affaire</div>
  111.             </div>
  112.         </div>
  113.     </section>
  114. </section>
  115. <div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
  116.     <ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
  117.       <li><a href=\"#!\">Dashboard</a></li>
  118.       <li><a href=\"#\">Partenaires</a></li>
  119.       <li><h1>Tous les partenaires</h1></li>
  120.     </ul>
  121.       ";
  122.         // line 35
  123.         $context['_parent'] = $context;
  124.         $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));
  125.         $context['loop'] = [
  126.           'parent' => $context['_parent'],
  127.           'index0' => 0,
  128.           'index'  => 1,
  129.           'first'  => true,
  130.         ];
  131.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  132.             $length count($context['_seq']);
  133.             $context['loop']['revindex0'] = $length 1;
  134.             $context['loop']['revindex'] = $length;
  135.             $context['loop']['length'] = $length;
  136.             $context['loop']['last'] = === $length;
  137.         }
  138.         foreach ($context['_seq'] as $context["_key"] => $context["infos"]) {
  139.             // line 36
  140.             yield "          ";
  141.             if (CoreExtension::getAttribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse36)) {
  142.                 // line 37
  143.                 yield "            <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  144.                 ";
  145.                 // line 38
  146.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["infos"], "html"nulltrue);
  147.                 yield "
  148.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  149.                     <span aria-hidden=\"true\">&times;</span>
  150.                 </button>
  151.             </div>
  152.           ";
  153.             }
  154.             // line 44
  155.             yield "      ";
  156.             ++$context['loop']['index0'];
  157.             ++$context['loop']['index'];
  158.             $context['loop']['first'] = false;
  159.             if (isset($context['loop']['length'])) {
  160.                 --$context['loop']['revindex0'];
  161.                 --$context['loop']['revindex'];
  162.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  163.             }
  164.         }
  165.         $_parent $context['_parent'];
  166.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['infos'], $context['_parent'], $context['loop']);
  167.         $context array_intersect_key($context$_parent) + $_parent;
  168.         // line 45
  169.         yield "
  170.     <div style=\"background: #fff; min-height: calc(100vh - 200px);\">
  171.         <div class=\"post-list post-list_grid\">
  172. \t\t\t";
  173.         // line 49
  174.         $context['_parent'] = $context;
  175.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_partenaire"]) || array_key_exists("liste_partenaire"$context) ? $context["liste_partenaire"] : (function () { throw new RuntimeError('Variable "liste_partenaire" does not exist.'49$this->source); })()));
  176.         foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
  177.             // line 50
  178.             yield "            <!-- Post 1 -->
  179.             <div class=\"post-list__post post\">
  180.                 <figure class=\"post__preview-img\">
  181.                     <a href=\"#\"><img src=\"";
  182.             // line 53
  183.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["partenaire"]), "html"nulltrue);
  184.             yield "\" alt=\"";
  185.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "name", [], "any"falsefalsefalse53), "html"nulltrue);
  186.             yield "\"/></a>
  187.                 </figure>
  188.                 
  189.                 <div class=\"post__header\">
  190.                     <div class=\"dropdown\" style=\"float: right;\">
  191.                         <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  192.                           <i class=\"bi bi-activity\"></i>
  193.                         </button>
  194.                         <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
  195.                           <h6 class=\"dropdown-header\">Opérations</h6>
  196.                           <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"";
  197.             // line 63
  198.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  199.             yield "\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  200.                           <a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"";
  201.             // line 64
  202.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_delete_partenaire", ["id" => CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "id", [], "any"falsefalsefalse64)]), "html"nulltrue);
  203.             yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
  204.                         </div>
  205.                     </div>
  206.                     <time datetime=\"2019-11-16\" class=\"post__time\">";
  207.             // line 67
  208.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "date", [], "any"falsefalsefalse67), "d"), "html"nulltrue);
  209.             yield ".";
  210.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "date", [], "any"falsefalsefalse67), "m"), "html"nulltrue);
  211.             yield ".";
  212.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "date", [], "any"falsefalsefalse67), "Y"), "html"nulltrue);
  213.             yield "</time>
  214.                     <h2>
  215.                         <a href=\"#\">";
  216.             // line 69
  217.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["partenaire"], "name", [], "any"falsefalsefalse69), "html"nulltrue);
  218.             yield "</a>
  219.                     </h2>
  220.                 </div>
  221.                 
  222.                 <div class=\"post__meta\">
  223.                     <a href=\"#\">";
  224.             // line 74
  225.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["partenaire"], "user", [], "any"falsefalsefalse74), "name", [40], "method"falsefalsefalse74), "html"nulltrue);
  226.             yield "</a>
  227.                     <a href=\"#\" class=\"post__comments\">0</a>
  228.                 </div>
  229.             </div>
  230.             ";
  231.         }
  232.         $_parent $context['_parent'];
  233.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
  234.         $context array_intersect_key($context$_parent) + $_parent;
  235.         // line 79
  236.         yield "        </div>
  237.     </div>
  238. </div>
  239. <!-- content-wrapper ends -->
  240. <!-- Modal -->
  241. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  242.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  243.     ";
  244.         // line 88
  245.         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.'88$this->source); })()), 'form_start', ["attr" => ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_partenaire")]]);
  246.         yield "\t
  247.     <div class=\"modal-content\">
  248.       <div class=\"modal-header\">
  249.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
  250.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  251.           <span aria-hidden=\"true\">&times;</span>
  252.         </button>
  253.       </div>
  254.       <div class=\"modal-body\">\t
  255.         <div class=\"row\">
  256.           <div class=\"col-md-12\">
  257.             ";
  258.         // line 99
  259.         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.'99$this->source); })()), 'errors');
  260.         yield "
  261.           </div>
  262.           <div class=\"col-md-12 mt-3\">
  263.             ";
  264.         // line 102
  265.         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.'102$this->source); })()), "name", [], "any"falsefalsefalse102), 'errors');
  266.         yield "
  267.             ";
  268.         // line 103
  269.         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.'103$this->source); })()), "name", [], "any"falsefalsefalse103), 'label', ["label" => "Nom du partenaire"]);
  270.         yield "
  271.             ";
  272.         // line 104
  273.         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.'104$this->source); })()), "name", [], "any"falsefalsefalse104), 'widget');
  274.         yield "
  275.           </div>
  276.           <div class=\"col-md-12 mt-3\">
  277.             ";
  278.         // line 107
  279.         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.'107$this->source); })()), "description", [], "any"falsefalsefalse107), 'errors');
  280.         yield "
  281.             ";
  282.         // line 108
  283.         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.'108$this->source); })()), "description", [], "any"falsefalsefalse108), 'label', ["label" => "Description du partenaire"]);
  284.         yield "
  285.             ";
  286.         // line 109
  287.         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.'109$this->source); })()), "description", [], "any"falsefalsefalse109), 'widget');
  288.         yield "
  289.           </div>
  290.           <div class=\"col-md-12 mt-3\">
  291.             ";
  292.         // line 112
  293.         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.'112$this->source); })()), "link", [], "any"falsefalsefalse112), 'errors');
  294.         yield "
  295.             ";
  296.         // line 113
  297.         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.'113$this->source); })()), "link", [], "any"falsefalsefalse113), 'label', ["label" => "Lien sous en savoir plus"]);
  298.         yield "
  299.             ";
  300.         // line 114
  301.         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.'114$this->source); })()), "link", [], "any"falsefalsefalse114), 'widget');
  302.         yield "
  303.           </div>
  304.           <div class=\"col-md-12 mt-3\">
  305.             ";
  306.         // line 117
  307.         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.'117$this->source); })()), "file", [], "any"falsefalsefalse117), 'errors');
  308.         yield "
  309.             ";
  310.         // line 118
  311.         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.'118$this->source); })()), "file", [], "any"falsefalsefalse118), 'label', ["label" => "Joindre une image"]);
  312.         yield "
  313.             ";
  314.         // line 119
  315.         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.'119$this->source); })()), "file", [], "any"falsefalsefalse119), 'widget');
  316.         yield "
  317.           </div>
  318.          <div class=\"clear\"></div>
  319.         </div>
  320.       </div>
  321.       <div class=\"modal-footer\">
  322.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  323.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  324.       </div>
  325.     </div>
  326.     ";
  327.         // line 130
  328.         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.'130$this->source); })()), 'form_end');
  329.         yield "
  330.   </div>
  331. </div>
  332. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  333.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  334.   <div class=\"modal-content\">
  335.     <div class=\"modal-header\">
  336.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  337.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  338.         <span aria-hidden=\"true\">&times;</span>
  339.       </button>
  340.     </div>
  341.     <div class=\"modal-body\">
  342.       <div class=\"row\">
  343.         <div class=\"col-md-12\">
  344.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  345.             Patientez un moment pendant le chargement de l'article</br>
  346.             <img src=\"";
  347.         // line 151
  348.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html"nulltrue);
  349.         yield "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  350.           </div>
  351.       
  352.           <div class=\"content-module-loading\" style=\"display: none;\">
  353.           
  354.           </div>
  355.         </div>
  356.       </div>
  357.     </div>
  358.     <div class=\"modal-footer\" style=\"display: block;\">
  359.       ";
  360.         // line 162
  361.         yield from         $this->loadTemplate("Theme/General/Template/Menu/social.html.twig""Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig"162)->unwrap()->yield($context);
  362.         // line 163
  363.         yield "    </div>
  364.   </div>
  365.   </div>
  366.   </div>
  367. ";
  368.         
  369.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  370.         
  371.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  372.         return; yield '';
  373.     }
  374.     // line 170
  375.     public function block_javascripttemplate($context, array $blocks = [])
  376.     {
  377.         $macros $this->macros;
  378.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  379.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  380.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  381.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  382.         // line 171
  383.         yield "
  384. \$('.update-content-article').click(function(){
  385. \tvar id = \$(this).attr('value');
  386. \t\$('#modalGestionCatalogueSelect').modal('show');
  387. \t\$('.wait-chargement-content-module').show();
  388. \t\$('.content-module-loading').hide();
  389. \t\$.get('";
  390.         // line 177
  391.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_partenaire");
  392.         yield "',{ id: id }, function(data){
  393. \t\t\$('.wait-chargement-content-module').hide();
  394. \t\t\$('.content-module-loading').show();
  395. \t\t\$('.content-module-loading').html(data);
  396. \t});
  397. });
  398. \$('.suppression_current_article').click(function(){
  399. \tid = \$(this).attr('value');
  400. \tresetNotif();
  401. \talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
  402. \t\tif(e){
  403. \t\t\t  document.location.href= ''+id;
  404. \t\t} else {
  405. \t\t\talertify.success(\"Opération annulée avec succès !\");
  406. \t\t}
  407. \t});
  408. });
  409. ";
  410.         
  411.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  412.         
  413.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  414.         return; yield '';
  415.     }
  416.     /**
  417.      * @codeCoverageIgnore
  418.      */
  419.     public function getTemplateName()
  420.     {
  421.         return "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig";
  422.     }
  423.     /**
  424.      * @codeCoverageIgnore
  425.      */
  426.     public function isTraitable()
  427.     {
  428.         return false;
  429.     }
  430.     /**
  431.      * @codeCoverageIgnore
  432.      */
  433.     public function getDebugInfo()
  434.     {
  435.         return array (  432 => 177,  424 => 171,  414 => 170,  398 => 163,  396 => 162,  382 => 151,  358 => 130,  344 => 119,  340 => 118,  336 => 117,  330 => 114,  326 => 113,  322 => 112,  316 => 109,  312 => 108,  308 => 107,  302 => 104,  298 => 103,  294 => 102,  288 => 99,  274 => 88,  263 => 79,  252 => 74,  244 => 69,  235 => 67,  229 => 64,  225 => 63,  210 => 53,  205 => 50,  201 => 49,  195 => 45,  181 => 44,  172 => 38,  169 => 37,  166 => 36,  149 => 35,  125 => 13,  115 => 12,  101 => 9,  91 => 8,  78 => 5,  72 => 3,  62 => 2,  39 => 1,);
  436.     }
  437.     public function getSourceContext()
  438.     {
  439.         return new Source("{% extends \"Theme/Users/Adminuser/layoutadmin.html.twig\" %}
  440. {% block meta %}
  441. \t{{ parent() }}
  442. \t<meta name=\"author\" content=\"Sprint-pay\"/>
  443. \t<meta name=\"description\" content=\"{{ site }} - Connexion\"/>
  444. {% endblock %}
  445. {% block title %}
  446. \t{{ parent() }} | Connexion
  447. {% endblock %}
  448. {% block userblog_body %}
  449. <section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
  450.     <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);\">
  451.         <div class=\"row\">
  452.             <div class=\"col-md-12\">
  453.                 <span style=\"float: right;\">
  454.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter un slide</a>
  455.                 </span>
  456.                 
  457.                 <h1>Une bonne affaire</h1>
  458.                 <div>Une bonne affaire</div>
  459.             </div>
  460.         </div>
  461.     </section>
  462. </section>
  463. <div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
  464.     <ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
  465.       <li><a href=\"#!\">Dashboard</a></li>
  466.       <li><a href=\"#\">Partenaires</a></li>
  467.       <li><h1>Tous les partenaires</h1></li>
  468.     </ul>
  469.       {% for infos in app.session.flashbag.get('information') %}
  470.           {% if loop.last %}
  471.             <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  472.                 {{ infos }}
  473.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  474.                     <span aria-hidden=\"true\">&times;</span>
  475.                 </button>
  476.             </div>
  477.           {% endif %}
  478.       {% endfor %}
  479.     <div style=\"background: #fff; min-height: calc(100vh - 200px);\">
  480.         <div class=\"post-list post-list_grid\">
  481. \t\t\t{% for partenaire in liste_partenaire %}
  482.             <!-- Post 1 -->
  483.             <div class=\"post-list__post post\">
  484.                 <figure class=\"post__preview-img\">
  485.                     <a href=\"#\"><img src=\"{{ vich_uploader_asset(partenaire) }}\" alt=\"{{ partenaire.name }}\"/></a>
  486.                 </figure>
  487.                 
  488.                 <div class=\"post__header\">
  489.                     <div class=\"dropdown\" style=\"float: right;\">
  490.                         <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  491.                           <i class=\"bi bi-activity\"></i>
  492.                         </button>
  493.                         <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
  494.                           <h6 class=\"dropdown-header\">Opérations</h6>
  495.                           <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"{{ partenaire.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  496.                           <a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"{{ path('users_adminuser_delete_partenaire', {'id': partenaire.id }) }}\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
  497.                         </div>
  498.                     </div>
  499.                     <time datetime=\"2019-11-16\" class=\"post__time\">{{ partenaire.date|date('d') }}.{{ partenaire.date|date('m') }}.{{ partenaire.date|date('Y') }}</time>
  500.                     <h2>
  501.                         <a href=\"#\">{{ partenaire.name }}</a>
  502.                     </h2>
  503.                 </div>
  504.                 
  505.                 <div class=\"post__meta\">
  506.                     <a href=\"#\">{{ partenaire.user.name(40) }}</a>
  507.                     <a href=\"#\" class=\"post__comments\">0</a>
  508.                 </div>
  509.             </div>
  510.             {% endfor %}
  511.         </div>
  512.     </div>
  513. </div>
  514. <!-- content-wrapper ends -->
  515. <!-- Modal -->
  516. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  517.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  518.     {{ form_start(form, {'attr': {'action': path('users_adminuser_accueil_partenaire') }}) }}\t
  519.     <div class=\"modal-content\">
  520.       <div class=\"modal-header\">
  521.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
  522.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  523.           <span aria-hidden=\"true\">&times;</span>
  524.         </button>
  525.       </div>
  526.       <div class=\"modal-body\">\t
  527.         <div class=\"row\">
  528.           <div class=\"col-md-12\">
  529.             {{ form_errors(form) }}
  530.           </div>
  531.           <div class=\"col-md-12 mt-3\">
  532.             {{ form_errors(form.name) }}
  533.             {{ form_label(form.name,'Nom du partenaire') }}
  534.             {{ form_widget(form.name) }}
  535.           </div>
  536.           <div class=\"col-md-12 mt-3\">
  537.             {{ form_errors(form.description) }}
  538.             {{ form_label(form.description,'Description du partenaire') }}
  539.             {{ form_widget(form.description) }}
  540.           </div>
  541.           <div class=\"col-md-12 mt-3\">
  542.             {{ form_errors(form.link) }}
  543.             {{ form_label(form.link,'Lien sous en savoir plus') }}
  544.             {{ form_widget(form.link) }}
  545.           </div>
  546.           <div class=\"col-md-12 mt-3\">
  547.             {{ form_errors(form.file) }}
  548.             {{ form_label(form.file,'Joindre une image') }}
  549.             {{ form_widget(form.file) }}
  550.           </div>
  551.          <div class=\"clear\"></div>
  552.         </div>
  553.       </div>
  554.       <div class=\"modal-footer\">
  555.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  556.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  557.       </div>
  558.     </div>
  559.     {{ form_end(form) }}
  560.   </div>
  561. </div>
  562. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  563.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  564.   <div class=\"modal-content\">
  565.     <div class=\"modal-header\">
  566.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  567.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  568.         <span aria-hidden=\"true\">&times;</span>
  569.       </button>
  570.     </div>
  571.     <div class=\"modal-body\">
  572.       <div class=\"row\">
  573.         <div class=\"col-md-12\">
  574.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  575.             Patientez un moment pendant le chargement de l'article</br>
  576.             <img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  577.           </div>
  578.       
  579.           <div class=\"content-module-loading\" style=\"display: none;\">
  580.           
  581.           </div>
  582.         </div>
  583.       </div>
  584.     </div>
  585.     <div class=\"modal-footer\" style=\"display: block;\">
  586.       {% include \"Theme/General/Template/Menu/social.html.twig\" %}
  587.     </div>
  588.   </div>
  589.   </div>
  590.   </div>
  591. {% endblock %}
  592. {% block javascripttemplate %}
  593. \$('.update-content-article').click(function(){
  594. \tvar id = \$(this).attr('value');
  595. \t\$('#modalGestionCatalogueSelect').modal('show');
  596. \t\$('.wait-chargement-content-module').show();
  597. \t\$('.content-module-loading').hide();
  598. \t\$.get('{{ path('users_adminuser_update_partenaire') }}',{ id: id }, function(data){
  599. \t\t\$('.wait-chargement-content-module').hide();
  600. \t\t\$('.content-module-loading').show();
  601. \t\t\$('.content-module-loading').html(data);
  602. \t});
  603. });
  604. \$('.suppression_current_article').click(function(){
  605. \tid = \$(this).attr('value');
  606. \tresetNotif();
  607. \talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
  608. \t\tif(e){
  609. \t\t\t  document.location.href= ''+id;
  610. \t\t} else {
  611. \t\t\talertify.success(\"Opération annulée avec succès !\");
  612. \t\t}
  613. \t});
  614. });
  615. {% endblock %}""Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig""/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig");
  616.     }
  617. }