<?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/Service/accueilservice.html.twig */
class __TwigTemplate_70aa9f0a53a1595400346cb7526ea2e8 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/Service/accueilservice.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/Service/accueilservice.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig", "Theme/Users/Adminuser/Service/accueilservice.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=\"accordion\">
\t\t\t";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_service"]) || array_key_exists("liste_service", $context) ? $context["liste_service"] : (function () { throw new RuntimeError('Variable "liste_service" does not exist.', 50, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 51
yield " <div class=\"box\">
<div class=\"row\" style=\"margin: 0px;\">
<div class=\"col-md-8\">
<h2 class=\"title\">";
// line 54
if ((CoreExtension::getAttribute($this->env, $this->source, $context["service"], "expertise", [], "any", false, false, false, 54) == "expertise")) {
yield "Expertise";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["service"], "expertise", [], "any", false, false, false, 54) == "service")) {
yield "Service";
} else {
yield "Département";
}
yield " > ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 54), "html", null, true);
yield "</h2>
<h3 class=\"subtitle\">";
// line 55
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "date", [], "any", false, false, false, 55), "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["service"], "date", [], "any", false, false, false, 55), "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["service"], "date", [], "any", false, false, false, 55), "Y"), "html", null, true);
yield "</h3>
<span class=\"number\">
<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["service"], "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_supprimer_service", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 64)]), "html", null, true);
yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
</div>
</span>
<p class=\"text\" style=\"font-family: Open Sans;\">";
// line 68
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "description", [], "any", false, false, false, 68), "html", null, true);
yield "</p>
</div>
<div class=\"col-md-4\">
<img src=\"";
// line 72
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["service"]), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 72), "html", null, true);
yield "\" style=\"height: 200px; max-width: 100%;\">
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
yield " </div>
</div>
<div class=\"text-center\" style=\"margin-bottom: 80px; margin-top: 50px;\">
\t";
// line 85
if (((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 85, $this->source); })()) > 0)) {
// line 86
yield "
\t\t";
// line 87
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 87, $this->source); })()) > 1) && ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 87, $this->source); })()) <= (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 87, $this->source); })())))) {
// line 88
yield "\t\t\t";
$context["pagepre"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 88, $this->source); })()) - 1);
// line 89
yield "\t\t";
} else {
// line 90
yield "\t\t\t";
$context["pagepre"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 90, $this->source); })());
// line 91
yield "\t\t";
}
// line 92
yield "
\t\t";
// line 93
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 93, $this->source); })()) < (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 93, $this->source); })()))) {
// line 94
yield "\t\t\t";
$context["pagesuiv"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 94, $this->source); })()) + 1);
// line 95
yield "\t\t";
} else {
// line 96
yield "\t\t\t";
$context["pagesuiv"] = 1;
// line 97
yield "\t\t";
}
// line 98
yield "
\t\t";
// line 99
if (((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 99, $this->source); })()) < 5)) {
// line 100
yield "\t\t\t";
$context["debut"] = 1;
// line 101
yield "\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 101, $this->source); })());
// line 102
yield "\t\t";
} else {
// line 103
yield "\t\t\t";
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 103, $this->source); })()) > 2) && ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 103, $this->source); })()) < ((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 103, $this->source); })()) - 2)))) {
// line 104
yield "\t\t\t\t";
$context["debut"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 104, $this->source); })()) - 2);
// line 105
yield "\t\t\t\t";
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 105, $this->source); })()) + 2) >= (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 105, $this->source); })()))) {
// line 106
yield "\t\t\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 106, $this->source); })());
// line 107
yield "\t\t\t\t";
} else {
// line 108
yield "\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 108, $this->source); })()) + 2);
// line 109
yield "\t\t\t\t";
}
// line 110
yield "\t\t\t";
} else {
// line 111
yield "\t\t\t\t";
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 111, $this->source); })()) <= 2)) {
// line 112
yield "\t\t\t\t\t";
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 112, $this->source); })()) == 1)) {
// line 113
yield "\t\t\t\t\t\t";
$context["debut"] = 1;
// line 114
yield "\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 114, $this->source); })()) + 3);
// line 115
yield "\t\t\t\t\t";
} else {
// line 116
yield "\t\t\t\t\t\t";
$context["debut"] = 1;
// line 117
yield "\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 117, $this->source); })()) + 2);
// line 118
yield "\t\t\t\t\t";
}
// line 119
yield "\t\t\t\t";
} else {
// line 120
yield "\t\t\t\t\t";
$context["debut"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 120, $this->source); })()) - 2);
// line 121
yield "\t\t\t\t\t";
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 121, $this->source); })()) + 2) >= (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 121, $this->source); })()))) {
// line 122
yield "\t\t\t\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 122, $this->source); })());
// line 123
yield "\t\t\t\t\t";
} else {
// line 124
yield "\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 124, $this->source); })()) + 2);
// line 125
yield "\t\t\t\t\t";
}
// line 126
yield "\t\t\t\t";
}
// line 127
yield "\t\t\t";
}
// line 128
yield "
\t\t";
}
// line 130
yield "
\t\t<div class=\"btn-group mb-4 text-center\" role=\"group\" aria-label=\"Basic example\">
\t\t\t<a href=\"";
// line 132
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => 1]);
yield "\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
\t\t\t</a>
\t\t\t<a href=\"";
// line 135
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => (isset($context["pagepre"]) || array_key_exists("pagepre", $context) ? $context["pagepre"] : (function () { throw new RuntimeError('Variable "pagepre" does not exist.', 135, $this->source); })())]), "html", null, true);
yield "\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
\t\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
\t\t\t</a>
\t\t\t";
// line 138
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range((isset($context["debut"]) || array_key_exists("debut", $context) ? $context["debut"] : (function () { throw new RuntimeError('Variable "debut" does not exist.', 138, $this->source); })()), (isset($context["fin"]) || array_key_exists("fin", $context) ? $context["fin"] : (function () { throw new RuntimeError('Variable "fin" does not exist.', 138, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 139
yield "\t\t\t\t<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => $context["p"]]), "html", null, true);
yield "\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html", null, true);
yield "\" class=\"btn btn-outline-primary mx-2 ";
if (($context["p"] == (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 139, $this->source); })()))) {
yield "active";
}
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html", null, true);
yield "</a>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 141
yield "\t\t<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => (isset($context["pagesuiv"]) || array_key_exists("pagesuiv", $context) ? $context["pagesuiv"] : (function () { throw new RuntimeError('Variable "pagesuiv" does not exist.', 141, $this->source); })())]), "html", null, true);
yield "\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
\t\t</a>
\t\t<a href=\"";
// line 144
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 144, $this->source); })())]), "html", null, true);
yield "\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
\t\t</a>
\t</div>
\t<div class=\"clearfix\"></div>
";
} else {
// line 150
yield "\t<div class=\"btn-group text-center\" role=\"group\" aria-label=\"Basic example\">
\t\t<a href=\"#\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
\t\t</a>
\t\t<a href=\"#\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
\t\t</a>
\t\t<a href=\"#\" class=\"btn btn-outline-primary mx-2 active\" style=\"margin: 0px 0px;\">1</a>
\t\t<a href=\"#\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
\t\t</a>
\t\t<a href=\"#\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
\t\t</a>
\t</div>
\t";
}
// line 168
yield "</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 176
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.', 176, $this->source); })()), 'form_start', ["attr" => ["id" => "form-submit-service", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services")]]);
yield "\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un service</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 187
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.', 187, $this->source); })()), 'errors');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 190
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.', 190, $this->source); })()), "name", [], "any", false, false, false, 190), 'errors');
yield "
";
// line 191
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.', 191, $this->source); })()), "name", [], "any", false, false, false, 191), 'label', ["label" => "Nom du service"]);
yield "
";
// line 192
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.', 192, $this->source); })()), "name", [], "any", false, false, false, 192), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 195
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.', 195, $this->source); })()), "description", [], "any", false, false, false, 195), 'errors');
yield "
";
// line 196
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.', 196, $this->source); })()), "description", [], "any", false, false, false, 196), 'label', ["label" => "Description du service"]);
yield "
";
// line 197
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.', 197, $this->source); })()), "description", [], "any", false, false, false, 197), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
";
// line 200
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.', 200, $this->source); })()), "rang", [], "any", false, false, false, 200), 'errors');
yield "
";
// line 201
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.', 201, $this->source); })()), "rang", [], "any", false, false, false, 201), 'label', ["label" => "Rang dans le classement"]);
yield "
";
// line 202
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.', 202, $this->source); })()), "rang", [], "any", false, false, false, 202), 'widget');
yield "
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"categorie_service\">Catégorie</label>
<select name=\"categorie\" id=\"categorie_service\" class=\"form-control\">
<option value=\"expertise\">Expertise</option>
<option value=\"service\">Service</option>
<option value=\"departement\">Département</option>
</select>
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"categorie_parent\">Catégorie parent</label>
<select name=\"parentId\" id=\"categorie_parent\" class=\"form-control\">
<option value=\"0\">Selectionnez le parent</option>
";
// line 217
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_all_service"]) || array_key_exists("liste_all_service", $context) ? $context["liste_all_service"] : (function () { throw new RuntimeError('Variable "liste_all_service" does not exist.', 217, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["serv"]) {
// line 218
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["serv"], "id", [], "any", false, false, false, 218), "html", null, true);
yield "\">";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["serv"], "expertise", [], "any", false, false, false, 218) == "expertise")) {
yield "Expertise";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["serv"], "expertise", [], "any", false, false, false, 218) == "service")) {
yield "Service";
} else {
yield "Département";
}
yield " > ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["serv"], "name", [], "any", false, false, false, 218), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['serv'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 220
yield " </select>
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"motcle_service\">Mot clé d'identification</label>
<select name=\"motcle\" id=\"motcle_service\" class=\"form-control\">
<option value=\"-\">Laisser vide</option>
<option value=\"comptabilite\">Expert comptable</option>
<option value=\"fiscalité\">Expert Fiscalité</option>
</select>
</div>
<div class=\"col-md-12 mt-3\">
\t\t\t\t\t\t\t<label for=\"nb-occurrences\">Objectifs du services</label>
\t\t\t\t\t\t\t<select id=\"nb-occurrences\" name=\"nb-occurrences\" class=\"form-control\">
\t\t\t\t\t\t\t\t<option value=\"0\">0</option>
\t\t\t\t\t\t\t\t<option value=\"1\">1</option>
\t\t\t\t\t\t\t\t<option value=\"2\">2</option>
\t\t\t\t\t\t\t\t<option value=\"3\">3</option>
\t\t\t\t\t\t\t\t<option value=\"4\">4</option>
\t\t\t\t\t\t\t\t<option value=\"5\">5</option>
<option value=\"6\">6</option>
\t\t\t\t\t\t\t\t<option value=\"7\">7</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<div id=\"groupes-champs\"></div>
\t\t\t\t\t</div>
<input type=\"hidden\" name=\"objectifs\" id=\"objectifs-services\"/>
<div class=\"col-md-12 mt-3\">
";
// line 249
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.', 249, $this->source); })()), "file", [], "any", false, false, false, 249), 'errors');
yield "
";
// line 250
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.', 250, $this->source); })()), "file", [], "any", false, false, false, 250), 'label', ["label" => "Joindre une image"]);
yield "
";
// line 251
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.', 251, $this->source); })()), "file", [], "any", false, false, false, 251), '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 262
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.', 262, $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 283
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 294
yield from $this->loadTemplate("Theme/General/Template/Menu/social.html.twig", "Theme/Users/Adminuser/Service/accueilservice.html.twig", 294)->unwrap()->yield($context);
// line 295
yield " </div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 302
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 303
yield "
\$('#nb-occurrences').on('change', function () {
\tvar count = parseInt(\$(this).val());
\tvar container = \$('#groupes-champs');
\tcontainer.empty();
\tfor (let i = 0; i < count; i++) {
\t\tvar group = `
\t\t<div class=\"groupe-champs\" data-index=\"\${i}\">
\t\t\t<h4>Objectif \${i + 1}</h4>
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t<input type=\"text\" step=\"0.01\" class=\"nom-base form-control\" required><br>
\t\t\t\t</div>
\t\t\t<div>
\t\t</div>
\t\t`;
\t\tcontainer.append(group);
\t}
});
\$(\"#form-submit-service\").on(\"submit\", function(){
var result = [];
\$('.groupe-champs').each(function () {
\t\tvar nomBase = \$(this).find('.nom-base').val();
\t\tresult.push({
\t\t nombase: nomBase
\t\t});
\t});
jsonData = JSON.stringify(result);
\$(\"#objectifs-services\").val(jsonData)
})
\$('.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 344
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_services");
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/Service/accueilservice.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 750 => 344, 707 => 303, 697 => 302, 681 => 295, 679 => 294, 665 => 283, 641 => 262, 627 => 251, 623 => 250, 619 => 249, 588 => 220, 569 => 218, 565 => 217, 547 => 202, 543 => 201, 539 => 200, 533 => 197, 529 => 196, 525 => 195, 519 => 192, 515 => 191, 511 => 190, 505 => 187, 491 => 176, 481 => 168, 461 => 150, 452 => 144, 445 => 141, 428 => 139, 424 => 138, 418 => 135, 412 => 132, 408 => 130, 404 => 128, 401 => 127, 398 => 126, 395 => 125, 392 => 124, 389 => 123, 386 => 122, 383 => 121, 380 => 120, 377 => 119, 374 => 118, 371 => 117, 368 => 116, 365 => 115, 362 => 114, 359 => 113, 356 => 112, 353 => 111, 350 => 110, 347 => 109, 344 => 108, 341 => 107, 338 => 106, 335 => 105, 332 => 104, 329 => 103, 326 => 102, 323 => 101, 320 => 100, 318 => 99, 315 => 98, 312 => 97, 309 => 96, 306 => 95, 303 => 94, 301 => 93, 298 => 92, 295 => 91, 292 => 90, 289 => 89, 286 => 88, 284 => 87, 281 => 86, 279 => 85, 269 => 77, 256 => 72, 249 => 68, 242 => 64, 238 => 63, 223 => 55, 211 => 54, 206 => 51, 202 => 50, 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=\"accordion\">
\t\t\t{% for service in liste_service %}
<div class=\"box\">
<div class=\"row\" style=\"margin: 0px;\">
<div class=\"col-md-8\">
<h2 class=\"title\">{% if (service.expertise == \"expertise\") %}Expertise{% elseif(service.expertise == \"service\") %}Service{% else %}Département{% endif %} > {{ service.name }}</h2>
<h3 class=\"subtitle\">{{ service.date|date('d') }}.{{ service.date|date('m') }}.{{ service.date|date('Y') }}</h3>
<span class=\"number\">
<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=\"{{ service.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
<a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"{{ path('users_adminuser_supprimer_service', {'id': service.id}) }}\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
</div>
</div>
</span>
<p class=\"text\" style=\"font-family: Open Sans;\">{{ service.description }}</p>
</div>
<div class=\"col-md-4\">
<img src=\"{{ vich_uploader_asset(service) }}\" alt=\"{{ service.name }}\" style=\"height: 200px; max-width: 100%;\">
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"text-center\" style=\"margin-bottom: 80px; margin-top: 50px;\">
\t{% if nombrepage > 0 %}
\t\t{% if page > 1 and page <= nombrepage %}
\t\t\t{% set pagepre = page - 1 %}
\t\t{% else %}
\t\t\t{% set pagepre = nombrepage %}
\t\t{% endif %}
\t\t{% if page < nombrepage %}
\t\t\t{% set pagesuiv = page + 1 %}
\t\t{% else %}
\t\t\t{% set pagesuiv = 1 %}
\t\t{% endif %}
\t\t{% if nombrepage < 5 %}
\t\t\t{% set debut = 1 %}
\t\t\t{% set fin = nombrepage %}
\t\t{% else %}
\t\t\t{% if page > 2 and page < (nombrepage - 2) %}
\t\t\t\t{% set debut = page - 2 %}
\t\t\t\t{% if page + 2 >= nombrepage %}
\t\t\t\t\t{% set fin = nombrepage %}
\t\t\t\t{% else %}
\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t{% endif %}
\t\t\t{% else %}
\t\t\t\t{% if page <= 2 %}
\t\t\t\t\t{% if page == 1 %}
\t\t\t\t\t\t{% set debut = 1 %}
\t\t\t\t\t\t{% set fin = page + 3 %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% set debut = 1 %}
\t\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% else %}
\t\t\t\t\t{% set debut = page - 2 %}
\t\t\t\t\t{% if page + 2 >= nombrepage %}
\t\t\t\t\t\t{% set fin = nombrepage %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t{% endif %}
\t\t<div class=\"btn-group mb-4 text-center\" role=\"group\" aria-label=\"Basic example\">
\t\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': 1}) }}\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
\t\t\t</a>
\t\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': pagepre}) }}\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
\t\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
\t\t\t</a>
\t\t\t{% for p in debut..fin %}
\t\t\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': p}) }}\" value=\"{{ p }}\" class=\"btn btn-outline-primary mx-2 {% if p == page %}active{% endif %}\">{{ p }}</a>
\t\t\t{% endfor %}
\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': pagesuiv}) }}\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
\t\t</a>
\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': nombrepage}) }}\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
\t\t</a>
\t</div>
\t<div class=\"clearfix\"></div>
{% else %}
\t<div class=\"btn-group text-center\" role=\"group\" aria-label=\"Basic example\">
\t\t<a href=\"#\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
\t\t</a>
\t\t<a href=\"#\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
\t\t</a>
\t\t<a href=\"#\" class=\"btn btn-outline-primary mx-2 active\" style=\"margin: 0px 0px;\">1</a>
\t\t<a href=\"#\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
\t\t</a>
\t\t<a href=\"#\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
\t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
\t\t</a>
\t</div>
\t{% endif %}
</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': {'id': 'form-submit-service', 'action': path('users_adminuser_accueil_services') }}) }}\t
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un service</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 service') }}
{{ form_widget(form.name) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.description) }}
{{ form_label(form.description,'Description du service') }}
{{ form_widget(form.description) }}
</div>
<div class=\"col-md-12 mt-3\">
{{ form_errors(form.rang) }}
{{ form_label(form.rang,'Rang dans le classement') }}
{{ form_widget(form.rang) }}
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"categorie_service\">Catégorie</label>
<select name=\"categorie\" id=\"categorie_service\" class=\"form-control\">
<option value=\"expertise\">Expertise</option>
<option value=\"service\">Service</option>
<option value=\"departement\">Département</option>
</select>
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"categorie_parent\">Catégorie parent</label>
<select name=\"parentId\" id=\"categorie_parent\" class=\"form-control\">
<option value=\"0\">Selectionnez le parent</option>
{% for serv in liste_all_service %}
<option value=\"{{ serv.id }}\">{% if (serv.expertise == \"expertise\") %}Expertise{% elseif(serv.expertise == \"service\") %}Service{% else %}Département{% endif %} > {{ serv.name }}</option>
{% endfor %}
</select>
</div>
<div class=\"col-md-12 mt-3\">
<label for=\"motcle_service\">Mot clé d'identification</label>
<select name=\"motcle\" id=\"motcle_service\" class=\"form-control\">
<option value=\"-\">Laisser vide</option>
<option value=\"comptabilite\">Expert comptable</option>
<option value=\"fiscalité\">Expert Fiscalité</option>
</select>
</div>
<div class=\"col-md-12 mt-3\">
\t\t\t\t\t\t\t<label for=\"nb-occurrences\">Objectifs du services</label>
\t\t\t\t\t\t\t<select id=\"nb-occurrences\" name=\"nb-occurrences\" class=\"form-control\">
\t\t\t\t\t\t\t\t<option value=\"0\">0</option>
\t\t\t\t\t\t\t\t<option value=\"1\">1</option>
\t\t\t\t\t\t\t\t<option value=\"2\">2</option>
\t\t\t\t\t\t\t\t<option value=\"3\">3</option>
\t\t\t\t\t\t\t\t<option value=\"4\">4</option>
\t\t\t\t\t\t\t\t<option value=\"5\">5</option>
<option value=\"6\">6</option>
\t\t\t\t\t\t\t\t<option value=\"7\">7</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<div id=\"groupes-champs\"></div>
\t\t\t\t\t</div>
<input type=\"hidden\" name=\"objectifs\" id=\"objectifs-services\"/>
<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 %}
\$('#nb-occurrences').on('change', function () {
\tvar count = parseInt(\$(this).val());
\tvar container = \$('#groupes-champs');
\tcontainer.empty();
\tfor (let i = 0; i < count; i++) {
\t\tvar group = `
\t\t<div class=\"groupe-champs\" data-index=\"\${i}\">
\t\t\t<h4>Objectif \${i + 1}</h4>
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t<input type=\"text\" step=\"0.01\" class=\"nom-base form-control\" required><br>
\t\t\t\t</div>
\t\t\t<div>
\t\t</div>
\t\t`;
\t\tcontainer.append(group);
\t}
});
\$(\"#form-submit-service\").on(\"submit\", function(){
var result = [];
\$('.groupe-champs').each(function () {
\t\tvar nomBase = \$(this).find('.nom-base').val();
\t\tresult.push({
\t\t nombase: nomBase
\t\t});
\t});
jsonData = JSON.stringify(result);
\$(\"#objectifs-services\").val(jsonData)
})
\$('.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_services') }}',{ 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/Service/accueilservice.html.twig", "/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Service/accueilservice.html.twig");
}
}