<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig */
class __TwigTemplate_e691a19caee219fea90233d31feb950d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'title' => [$this, 'block_title'],
'userblog_body' => [$this, 'block_userblog_body'],
'javascripttemplate' => [$this, 'block_javascripttemplate'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Theme/Users/Adminuser/layoutadmin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig", "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 3
yield "\t";
yield from $this->yieldParentBlock("meta", $context, $blocks);
yield "
\t<meta name=\"author\" content=\"Sprint-pay\"/>
\t<meta name=\"description\" content=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 5, $this->source); })()), "html", null, true);
yield " - Connexion\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 9
yield "\t";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " | Connexion
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_userblog_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
// line 13
yield "<section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
<section style=\"min-height: 98px; padding: 15px 50px; background: #2fa84b; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\">
<div class=\"row\">
<div class=\"col-md-12\">
<span style=\"float: right;\">
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter un slide</a>
</span>
<h1>Une bonne affaire</h1>
<div>Une bonne affaire</div>
</div>
</div>
</section>
</section>
<div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
<ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
<li><a href=\"#!\">Dashboard</a></li>
<li><a href=\"#\">Partenaires</a></li>
<li><h1>Tous les partenaires</h1></li>
</ul>
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "session", [], "any", false, false, false, 35), "flashbag", [], "any", false, false, false, 35), "get", ["information"], "method", false, false, false, 35));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["infos"]) {
// line 36
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 36)) {
// line 37
yield " <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["infos"], "html", null, true);
yield "
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
// line 44
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['infos'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
yield "
<div style=\"background: #fff; min-height: calc(100vh - 200px);\">
<div class=\"post-list post-list_grid\">
\t\t\t";
// line 49
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
// line 50
yield " <!-- Post 1 -->
<div class=\"post-list__post post\">
<figure class=\"post__preview-img\">
<a href=\"#\"><img src=\"";
// line 53
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["partenaire"]), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "name", [], "any", false, false, false, 53), "html", null, true);
yield "\"/></a>
</figure>
<div class=\"post__header\">
<div class=\"dropdown\" style=\"float: right;\">
<button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"bi bi-activity\"></i>
</button>
<div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
<h6 class=\"dropdown-header\">Opérations</h6>
<a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "id", [], "any", false, false, false, 63), "html", null, true);
yield "\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"";
// line 64
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", false, false, false, 64)]), "html", null, true);
yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
</div>
<time datetime=\"2019-11-16\" class=\"post__time\">";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "date", [], "any", false, false, false, 67), "d"), "html", null, true);
yield ".";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "date", [], "any", false, false, false, 67), "m"), "html", null, true);
yield ".";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "date", [], "any", false, false, false, 67), "Y"), "html", null, true);
yield "</time>
<h2>
<a href=\"#\">";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "name", [], "any", false, false, false, 69), "html", null, true);
yield "</a>
</h2>
</div>
<div class=\"post__meta\">
<a href=\"#\">";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["partenaire"], "user", [], "any", false, false, false, 74), "name", [40], "method", false, false, false, 74), "html", null, true);
yield "</a>
<a href=\"#\" class=\"post__comments\">0</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
yield " </div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- Modal -->
<div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
";
// line 88
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")]]);
yield "\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
";
// line 99
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');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 102
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", false, false, false, 102), 'errors');
yield "
";
// line 103
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", false, false, false, 103), 'label', ["label" => "Nom du partenaire"]);
yield "
";
// line 104
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", false, false, false, 104), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 107
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", false, false, false, 107), 'errors');
yield "
";
// line 108
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", false, false, false, 108), 'label', ["label" => "Description du partenaire"]);
yield "
";
// line 109
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", false, false, false, 109), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 112
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", false, false, false, 112), 'errors');
yield "
";
// line 113
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", false, false, false, 113), 'label', ["label" => "Lien sous en savoir plus"]);
yield "
";
// line 114
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", false, false, false, 114), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 117
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", false, false, false, 117), 'errors');
yield "
";
// line 118
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", false, false, false, 118), 'label', ["label" => "Joindre une image"]);
yield "
";
// line 119
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", false, false, false, 119), 'widget');
yield "
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
";
// line 130
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');
yield "
</div>
</div>
<div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
Patientez un moment pendant le chargement de l'article</br>
<img src=\"";
// line 151
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html", null, true);
yield "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
</div>
<div class=\"content-module-loading\" style=\"display: none;\">
</div>
</div>
</div>
</div>
<div class=\"modal-footer\" style=\"display: block;\">
";
// line 162
yield from $this->loadTemplate("Theme/General/Template/Menu/social.html.twig", "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig", 162)->unwrap()->yield($context);
// line 163
yield " </div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 170
public function block_javascripttemplate($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
// line 171
yield "
\$('.update-content-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('";
// line 177
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_partenaire");
yield "',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_article').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"Theme/Users/Adminuser/layoutadmin.html.twig\" %}
{% block meta %}
\t{{ parent() }}
\t<meta name=\"author\" content=\"Sprint-pay\"/>
\t<meta name=\"description\" content=\"{{ site }} - Connexion\"/>
{% endblock %}
{% block title %}
\t{{ parent() }} | Connexion
{% endblock %}
{% block userblog_body %}
<section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
<section style=\"min-height: 98px; padding: 15px 50px; background: #2fa84b; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\">
<div class=\"row\">
<div class=\"col-md-12\">
<span style=\"float: right;\">
<a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter un slide</a>
</span>
<h1>Une bonne affaire</h1>
<div>Une bonne affaire</div>
</div>
</div>
</section>
</section>
<div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
<ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
<li><a href=\"#!\">Dashboard</a></li>
<li><a href=\"#\">Partenaires</a></li>
<li><h1>Tous les partenaires</h1></li>
</ul>
{% for infos in app.session.flashbag.get('information') %}
{% if loop.last %}
<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
{{ infos }}
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endif %}
{% endfor %}
<div style=\"background: #fff; min-height: calc(100vh - 200px);\">
<div class=\"post-list post-list_grid\">
\t\t\t{% for partenaire in liste_partenaire %}
<!-- Post 1 -->
<div class=\"post-list__post post\">
<figure class=\"post__preview-img\">
<a href=\"#\"><img src=\"{{ vich_uploader_asset(partenaire) }}\" alt=\"{{ partenaire.name }}\"/></a>
</figure>
<div class=\"post__header\">
<div class=\"dropdown\" style=\"float: right;\">
<button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"bi bi-activity\"></i>
</button>
<div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
<h6 class=\"dropdown-header\">Opérations</h6>
<a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"{{ partenaire.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<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>
</div>
</div>
<time datetime=\"2019-11-16\" class=\"post__time\">{{ partenaire.date|date('d') }}.{{ partenaire.date|date('m') }}.{{ partenaire.date|date('Y') }}</time>
<h2>
<a href=\"#\">{{ partenaire.name }}</a>
</h2>
</div>
<div class=\"post__meta\">
<a href=\"#\">{{ partenaire.user.name(40) }}</a>
<a href=\"#\" class=\"post__comments\">0</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- Modal -->
<div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
{{ form_start(form, {'attr': {'action': path('users_adminuser_accueil_partenaire') }}) }}\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un article</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">\t
<div class=\"row\">
<div class=\"col-md-12\">
{{ form_errors(form) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.name) }}
{{ form_label(form.name,'Nom du partenaire') }}
{{ form_widget(form.name) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.description) }}
{{ form_label(form.description,'Description du partenaire') }}
{{ form_widget(form.description) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.link) }}
{{ form_label(form.link,'Lien sous en savoir plus') }}
{{ form_widget(form.link) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.file) }}
{{ form_label(form.file,'Joindre une image') }}
{{ form_widget(form.file) }}
</div>
<div class=\"clear\"></div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
<div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
Patientez un moment pendant le chargement de l'article</br>
<img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
</div>
<div class=\"content-module-loading\" style=\"display: none;\">
</div>
</div>
</div>
</div>
<div class=\"modal-footer\" style=\"display: block;\">
{% include \"Theme/General/Template/Menu/social.html.twig\" %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripttemplate %}
\$('.update-content-article').click(function(){
\tvar id = \$(this).attr('value');
\t\$('#modalGestionCatalogueSelect').modal('show');
\t\$('.wait-chargement-content-module').show();
\t\$('.content-module-loading').hide();
\t\$.get('{{ path('users_adminuser_update_partenaire') }}',{ id: id }, function(data){
\t\t\$('.wait-chargement-content-module').hide();
\t\t\$('.content-module-loading').show();
\t\t\$('.content-module-loading').html(data);
\t});
});
\$('.suppression_current_article').click(function(){
\tid = \$(this).attr('value');
\tresetNotif();
\talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
\t\tif(e){
\t\t\t document.location.href= ''+id;
\t\t} else {
\t\t\talertify.success(\"Opération annulée avec succès !\");
\t\t}
\t});
});
{% endblock %}", "Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig", "/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Partenaire/accueilpartenaire.html.twig");
}
}