var/cache/dev/twig/54/54047128b157951088170b2bb14f3ef4.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/Service/accueilservice.html.twig */
  15. class __TwigTemplate_70aa9f0a53a1595400346cb7526ea2e8 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/Service/accueilservice.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/Service/accueilservice.html.twig"));
  42.         $this->parent $this->loadTemplate("Theme/Users/Adminuser/layoutadmin.html.twig""Theme/Users/Adminuser/Service/accueilservice.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=\"accordion\">
  172.             
  173. \t\t\t";
  174.         // line 50
  175.         $context['_parent'] = $context;
  176.         $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); })()));
  177.         foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  178.             // line 51
  179.             yield "            <div class=\"box\">
  180.                 <div class=\"row\" style=\"margin: 0px;\">
  181.                     <div class=\"col-md-8\">
  182.                         <h2 class=\"title\">";
  183.             // line 54
  184.             if ((CoreExtension::getAttribute($this->env$this->source$context["service"], "expertise", [], "any"falsefalsefalse54) == "expertise")) {
  185.                 yield "Expertise";
  186.             } elseif ((CoreExtension::getAttribute($this->env$this->source$context["service"], "expertise", [], "any"falsefalsefalse54) == "service")) {
  187.                 yield "Service";
  188.             } else {
  189.                 yield "Département";
  190.             }
  191.             yield " > ";
  192.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse54), "html"nulltrue);
  193.             yield "</h2>
  194.                         <h3 class=\"subtitle\">";
  195.             // line 55
  196.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["service"], "date", [], "any"falsefalsefalse55), "d"), "html"nulltrue);
  197.             yield ".";
  198.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["service"], "date", [], "any"falsefalsefalse55), "m"), "html"nulltrue);
  199.             yield ".";
  200.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["service"], "date", [], "any"falsefalsefalse55), "Y"), "html"nulltrue);
  201.             yield "</h3>
  202.                         <span class=\"number\">
  203.                             <div class=\"dropdown\" style=\"float: right;\">
  204.                                 <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  205.                                   <i class=\"bi bi-activity\"></i>
  206.                                 </button>
  207.                                 <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
  208.                                   <h6 class=\"dropdown-header\">Opérations</h6>
  209.                                   <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"";
  210.             // line 63
  211.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["service"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  212.             yield "\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  213.                                   <a class=\"dropdown-item suppression_current_article\" href=\"#!\" value=\"";
  214.             // line 64
  215.             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"falsefalsefalse64)]), "html"nulltrue);
  216.             yield "\"><span class=\"bi bi-x-lg\"></span> Supprimer</a>
  217.                                 </div>
  218.                             </div>
  219.                         </span>
  220.                         <p class=\"text\" style=\"font-family: Open Sans;\">";
  221.             // line 68
  222.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["service"], "description", [], "any"falsefalsefalse68), "html"nulltrue);
  223.             yield "</p>
  224.                     </div>
  225.     
  226.                     <div class=\"col-md-4\">
  227.                         <img src=\"";
  228.             // line 72
  229.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["service"]), "html"nulltrue);
  230.             yield "\" alt=\"";
  231.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse72), "html"nulltrue);
  232.             yield "\" style=\"height: 200px; max-width: 100%;\">
  233.                     </div>
  234.                 </div>
  235.             </div>
  236.             ";
  237.         }
  238.         $_parent $context['_parent'];
  239.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  240.         $context array_intersect_key($context$_parent) + $_parent;
  241.         // line 77
  242.         yield "        </div>
  243.     </div>
  244.     
  245. <div class=\"text-center\" style=\"margin-bottom: 80px; margin-top: 50px;\">
  246. \t";
  247.         // line 85
  248.         if (((isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'85$this->source); })()) > 0)) {
  249.             // line 86
  250.             yield "
  251. \t\t";
  252.             // line 87
  253.             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); })())))) {
  254.                 // line 88
  255.                 yield "\t\t\t";
  256.                 $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);
  257.                 // line 89
  258.                 yield "\t\t";
  259.             } else {
  260.                 // line 90
  261.                 yield "\t\t\t";
  262.                 $context["pagepre"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'90$this->source); })());
  263.                 // line 91
  264.                 yield "\t\t";
  265.             }
  266.             // line 92
  267.             yield "
  268. \t\t";
  269.             // line 93
  270.             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); })()))) {
  271.                 // line 94
  272.                 yield "\t\t\t";
  273.                 $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);
  274.                 // line 95
  275.                 yield "\t\t";
  276.             } else {
  277.                 // line 96
  278.                 yield "\t\t\t";
  279.                 $context["pagesuiv"] = 1;
  280.                 // line 97
  281.                 yield "\t\t";
  282.             }
  283.             // line 98
  284.             yield "
  285. \t\t";
  286.             // line 99
  287.             if (((isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'99$this->source); })()) < 5)) {
  288.                 // line 100
  289.                 yield "\t\t\t";
  290.                 $context["debut"] = 1;
  291.                 // line 101
  292.                 yield "\t\t\t";
  293.                 $context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'101$this->source); })());
  294.                 // line 102
  295.                 yield "\t\t";
  296.             } else {
  297.                 // line 103
  298.                 yield "\t\t\t";
  299.                 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)))) {
  300.                     // line 104
  301.                     yield "\t\t\t\t";
  302.                     $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);
  303.                     // line 105
  304.                     yield "\t\t\t\t";
  305.                     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); })()))) {
  306.                         // line 106
  307.                         yield "\t\t\t\t\t";
  308.                         $context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'106$this->source); })());
  309.                         // line 107
  310.                         yield "\t\t\t\t";
  311.                     } else {
  312.                         // line 108
  313.                         yield "\t\t\t\t\t";
  314.                         $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);
  315.                         // line 109
  316.                         yield "\t\t\t\t";
  317.                     }
  318.                     // line 110
  319.                     yield "\t\t\t";
  320.                 } else {
  321.                     // line 111
  322.                     yield "\t\t\t\t";
  323.                     if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'111$this->source); })()) <= 2)) {
  324.                         // line 112
  325.                         yield "\t\t\t\t\t";
  326.                         if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'112$this->source); })()) == 1)) {
  327.                             // line 113
  328.                             yield "\t\t\t\t\t\t";
  329.                             $context["debut"] = 1;
  330.                             // line 114
  331.                             yield "\t\t\t\t\t\t";
  332.                             $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);
  333.                             // line 115
  334.                             yield "\t\t\t\t\t";
  335.                         } else {
  336.                             // line 116
  337.                             yield "\t\t\t\t\t\t";
  338.                             $context["debut"] = 1;
  339.                             // line 117
  340.                             yield "\t\t\t\t\t\t";
  341.                             $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);
  342.                             // line 118
  343.                             yield "\t\t\t\t\t";
  344.                         }
  345.                         // line 119
  346.                         yield "\t\t\t\t";
  347.                     } else {
  348.                         // line 120
  349.                         yield "\t\t\t\t\t";
  350.                         $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);
  351.                         // line 121
  352.                         yield "\t\t\t\t\t";
  353.                         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); })()))) {
  354.                             // line 122
  355.                             yield "\t\t\t\t\t\t";
  356.                             $context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage"$context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.'122$this->source); })());
  357.                             // line 123
  358.                             yield "\t\t\t\t\t";
  359.                         } else {
  360.                             // line 124
  361.                             yield "\t\t\t\t\t\t";
  362.                             $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);
  363.                             // line 125
  364.                             yield "\t\t\t\t\t";
  365.                         }
  366.                         // line 126
  367.                         yield "\t\t\t\t";
  368.                     }
  369.                     // line 127
  370.                     yield "\t\t\t";
  371.                 }
  372.                 // line 128
  373.                 yield "
  374. \t\t";
  375.             }
  376.             // line 130
  377.             yield "
  378. \t\t<div class=\"btn-group mb-4 text-center\" role=\"group\" aria-label=\"Basic example\">
  379. \t\t\t<a href=\"";
  380.             // line 132
  381.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => 1]);
  382.             yield "\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
  383. \t\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
  384. \t\t\t</a>
  385. \t\t\t<a href=\"";
  386.             // line 135
  387.             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"nulltrue);
  388.             yield "\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
  389. \t\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
  390. \t\t\t</a>
  391. \t\t\t";
  392.             // line 138
  393.             $context['_parent'] = $context;
  394.             $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); })())));
  395.             foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  396.                 // line 139
  397.                 yield "\t\t\t\t<a href=\"";
  398.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_accueil_services", ["page" => $context["p"]]), "html"nulltrue);
  399.                 yield "\" value=\"";
  400.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html"nulltrue);
  401.                 yield "\" class=\"btn btn-outline-primary mx-2 ";
  402.                 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); })()))) {
  403.                     yield "active";
  404.                 }
  405.                 yield "\">";
  406.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html"nulltrue);
  407.                 yield "</a>
  408. \t\t\t";
  409.             }
  410.             $_parent $context['_parent'];
  411.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  412.             $context array_intersect_key($context$_parent) + $_parent;
  413.             // line 141
  414.             yield "\t\t<a href=\"";
  415.             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"nulltrue);
  416.             yield "\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
  417. \t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
  418. \t\t</a>
  419. \t\t<a href=\"";
  420.             // line 144
  421.             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"nulltrue);
  422.             yield "\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
  423. \t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
  424. \t\t</a>
  425. \t</div>
  426. \t<div class=\"clearfix\"></div>
  427. ";
  428.         } else {
  429.             // line 150
  430.             yield "\t<div class=\"btn-group text-center\" role=\"group\" aria-label=\"Basic example\">
  431. \t\t<a href=\"#\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
  432. \t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
  433. \t\t</a>
  434. \t\t<a href=\"#\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
  435. \t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
  436. \t\t</a>
  437. \t\t<a href=\"#\" class=\"btn btn-outline-primary mx-2 active\" style=\"margin: 0px 0px;\">1</a>
  438. \t\t<a href=\"#\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
  439. \t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
  440. \t\t</a>
  441. \t\t<a href=\"#\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
  442. \t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
  443. \t\t</a>
  444. \t</div>
  445. \t";
  446.         }
  447.         // line 168
  448.         yield "</div>
  449. </div>
  450. <!-- content-wrapper ends -->
  451. <!-- Modal -->
  452. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  453.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  454.     ";
  455.         // line 176
  456.         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")]]);
  457.         yield "\t
  458.     <div class=\"modal-content\">
  459.       <div class=\"modal-header\">
  460.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un service</h5>
  461.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  462.           <span aria-hidden=\"true\">&times;</span>
  463.         </button>
  464.       </div>
  465.       <div class=\"modal-body\">\t
  466.         <div class=\"row\">
  467.           <div class=\"col-md-12\">
  468.             ";
  469.         // line 187
  470.         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');
  471.         yield "
  472.           </div>
  473.           <div class=\"col-md-12 mt-3\">
  474.             ";
  475.         // line 190
  476.         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"falsefalsefalse190), 'errors');
  477.         yield "
  478.             ";
  479.         // line 191
  480.         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"falsefalsefalse191), 'label', ["label" => "Nom du service"]);
  481.         yield "
  482.             ";
  483.         // line 192
  484.         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"falsefalsefalse192), 'widget');
  485.         yield "
  486.           </div>
  487.           <div class=\"col-md-12 mt-3\">
  488.             ";
  489.         // line 195
  490.         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"falsefalsefalse195), 'errors');
  491.         yield "
  492.             ";
  493.         // line 196
  494.         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"falsefalsefalse196), 'label', ["label" => "Description du service"]);
  495.         yield "
  496.             ";
  497.         // line 197
  498.         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"falsefalsefalse197), 'widget');
  499.         yield "
  500.           </div> 
  501.           <div class=\"col-md-12 mt-3\">
  502.             ";
  503.         // line 200
  504.         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"falsefalsefalse200), 'errors');
  505.         yield "
  506.             ";
  507.         // line 201
  508.         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"falsefalsefalse201), 'label', ["label" => "Rang dans le classement"]);
  509.         yield "
  510.             ";
  511.         // line 202
  512.         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"falsefalsefalse202), 'widget');
  513.         yield "
  514.           </div> 
  515.           <div class=\"col-md-12 mt-3\">
  516.             <label for=\"categorie_service\">Catégorie</label>
  517.             <select name=\"categorie\" id=\"categorie_service\" class=\"form-control\">
  518.               <option value=\"expertise\">Expertise</option>
  519.               <option value=\"service\">Service</option>
  520.               <option value=\"departement\">Département</option>
  521.             </select>
  522.           </div>
  523.           <div class=\"col-md-12 mt-3\">
  524.             <label for=\"categorie_parent\">Catégorie parent</label>
  525.             <select name=\"parentId\" id=\"categorie_parent\" class=\"form-control\">
  526.               <option value=\"0\">Selectionnez le parent</option>
  527.               ";
  528.         // line 217
  529.         $context['_parent'] = $context;
  530.         $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); })()));
  531.         foreach ($context['_seq'] as $context["_key"] => $context["serv"]) {
  532.             // line 218
  533.             yield "                <option value=\"";
  534.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["serv"], "id", [], "any"falsefalsefalse218), "html"nulltrue);
  535.             yield "\">";
  536.             if ((CoreExtension::getAttribute($this->env$this->source$context["serv"], "expertise", [], "any"falsefalsefalse218) == "expertise")) {
  537.                 yield "Expertise";
  538.             } elseif ((CoreExtension::getAttribute($this->env$this->source$context["serv"], "expertise", [], "any"falsefalsefalse218) == "service")) {
  539.                 yield "Service";
  540.             } else {
  541.                 yield "Département";
  542.             }
  543.             yield " > ";
  544.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["serv"], "name", [], "any"falsefalsefalse218), "html"nulltrue);
  545.             yield "</option>
  546.               ";
  547.         }
  548.         $_parent $context['_parent'];
  549.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['serv'], $context['_parent'], $context['loop']);
  550.         $context array_intersect_key($context$_parent) + $_parent;
  551.         // line 220
  552.         yield "            </select>
  553.           </div>
  554.           <div class=\"col-md-12 mt-3\">
  555.             <label for=\"motcle_service\">Mot clé d'identification</label>
  556.             <select name=\"motcle\" id=\"motcle_service\" class=\"form-control\">
  557.               <option value=\"-\">Laisser vide</option>
  558.               <option value=\"comptabilite\">Expert comptable</option>
  559.               <option value=\"fiscalité\">Expert Fiscalité</option>
  560.             </select>
  561.           </div>
  562.           <div class=\"col-md-12 mt-3\">
  563. \t\t\t\t\t\t\t<label for=\"nb-occurrences\">Objectifs du services</label>
  564. \t\t\t\t\t\t\t<select id=\"nb-occurrences\" name=\"nb-occurrences\" class=\"form-control\">
  565. \t\t\t\t\t\t\t\t<option value=\"0\">0</option>
  566. \t\t\t\t\t\t\t\t<option value=\"1\">1</option>
  567. \t\t\t\t\t\t\t\t<option value=\"2\">2</option>
  568. \t\t\t\t\t\t\t\t<option value=\"3\">3</option>
  569. \t\t\t\t\t\t\t\t<option value=\"4\">4</option>
  570. \t\t\t\t\t\t\t\t<option value=\"5\">5</option>
  571.                 <option value=\"6\">6</option>
  572. \t\t\t\t\t\t\t\t<option value=\"7\">7</option>
  573. \t\t\t\t\t\t\t</select>
  574. \t\t\t\t\t\t\t<div id=\"groupes-champs\"></div>
  575. \t\t\t\t\t</div>
  576.           <input type=\"hidden\" name=\"objectifs\" id=\"objectifs-services\"/>
  577.           <div class=\"col-md-12 mt-3\">
  578.             ";
  579.         // line 249
  580.         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"falsefalsefalse249), 'errors');
  581.         yield "
  582.             ";
  583.         // line 250
  584.         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"falsefalsefalse250), 'label', ["label" => "Joindre une image"]);
  585.         yield "
  586.             ";
  587.         // line 251
  588.         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"falsefalsefalse251), 'widget');
  589.         yield "
  590.           </div>
  591.          <div class=\"clear\"></div>
  592.         </div>
  593.       </div>
  594.       <div class=\"modal-footer\">
  595.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  596.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  597.       </div>
  598.     </div>
  599.     ";
  600.         // line 262
  601.         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');
  602.         yield "
  603.   </div>
  604. </div>
  605. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  606.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  607.   <div class=\"modal-content\">
  608.     <div class=\"modal-header\">
  609.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  610.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  611.         <span aria-hidden=\"true\">&times;</span>
  612.       </button>
  613.     </div>
  614.     <div class=\"modal-body\">
  615.       <div class=\"row\">
  616.         <div class=\"col-md-12\">
  617.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  618.             Patientez un moment pendant le chargement de l'article</br>
  619.             <img src=\"";
  620.         // line 283
  621.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html"nulltrue);
  622.         yield "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  623.           </div>
  624.       
  625.           <div class=\"content-module-loading\" style=\"display: none;\">
  626.           
  627.           </div>
  628.         </div>
  629.       </div>
  630.     </div>
  631.     <div class=\"modal-footer\" style=\"display: block;\">
  632.       ";
  633.         // line 294
  634.         yield from         $this->loadTemplate("Theme/General/Template/Menu/social.html.twig""Theme/Users/Adminuser/Service/accueilservice.html.twig"294)->unwrap()->yield($context);
  635.         // line 295
  636.         yield "    </div>
  637.   </div>
  638.   </div>
  639.   </div>
  640. ";
  641.         
  642.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  643.         
  644.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  645.         return; yield '';
  646.     }
  647.     // line 302
  648.     public function block_javascripttemplate($context, array $blocks = [])
  649.     {
  650.         $macros $this->macros;
  651.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  652.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  653.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  654.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  655.         // line 303
  656.         yield "
  657. \$('#nb-occurrences').on('change', function () {
  658. \tvar count = parseInt(\$(this).val());
  659. \tvar container = \$('#groupes-champs');
  660. \tcontainer.empty();
  661. \tfor (let i = 0; i < count; i++) {
  662. \t\tvar group = `
  663. \t\t<div class=\"groupe-champs\" data-index=\"\${i}\">
  664. \t\t\t<h4>Objectif \${i + 1}</h4>
  665. \t\t\t<div class=\"row\">
  666. \t\t\t\t<div class=\"col-md-12\">
  667. \t\t\t\t\t<input type=\"text\" step=\"0.01\" class=\"nom-base form-control\" required><br>
  668. \t\t\t\t</div>
  669. \t\t\t<div>
  670. \t\t</div>
  671. \t\t`;
  672. \t\tcontainer.append(group);
  673. \t}
  674. });
  675. \$(\"#form-submit-service\").on(\"submit\", function(){
  676.   var result = [];
  677.   \$('.groupe-champs').each(function () {
  678. \t\tvar nomBase = \$(this).find('.nom-base').val();
  679. \t\tresult.push({
  680. \t\t  nombase: nomBase
  681. \t\t});
  682. \t});
  683.   jsonData = JSON.stringify(result);
  684.   \$(\"#objectifs-services\").val(jsonData)
  685.   
  686. })
  687. \$('.update-content-article').click(function(){
  688. \tvar id = \$(this).attr('value');
  689. \t\$('#modalGestionCatalogueSelect').modal('show');
  690. \t\$('.wait-chargement-content-module').show();
  691. \t\$('.content-module-loading').hide();
  692. \t\$.get('";
  693.         // line 344
  694.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_adminuser_update_services");
  695.         yield "',{ id: id }, function(data){
  696. \t\t\$('.wait-chargement-content-module').hide();
  697. \t\t\$('.content-module-loading').show();
  698. \t\t\$('.content-module-loading').html(data);
  699. \t});
  700. });
  701. \$('.suppression_current_article').click(function(){
  702. \tid = \$(this).attr('value');
  703. \tresetNotif();
  704. \talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
  705. \t\tif(e){
  706. \t\t\t  document.location.href= ''+id;
  707. \t\t} else {
  708. \t\t\talertify.success(\"Opération annulée avec succès !\");
  709. \t\t}
  710. \t});
  711. });
  712. ";
  713.         
  714.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  715.         
  716.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  717.         return; yield '';
  718.     }
  719.     /**
  720.      * @codeCoverageIgnore
  721.      */
  722.     public function getTemplateName()
  723.     {
  724.         return "Theme/Users/Adminuser/Service/accueilservice.html.twig";
  725.     }
  726.     /**
  727.      * @codeCoverageIgnore
  728.      */
  729.     public function isTraitable()
  730.     {
  731.         return false;
  732.     }
  733.     /**
  734.      * @codeCoverageIgnore
  735.      */
  736.     public function getDebugInfo()
  737.     {
  738.         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,);
  739.     }
  740.     public function getSourceContext()
  741.     {
  742.         return new Source("{% extends \"Theme/Users/Adminuser/layoutadmin.html.twig\" %}
  743. {% block meta %}
  744. \t{{ parent() }}
  745. \t<meta name=\"author\" content=\"Sprint-pay\"/>
  746. \t<meta name=\"description\" content=\"{{ site }} - Connexion\"/>
  747. {% endblock %}
  748. {% block title %}
  749. \t{{ parent() }} | Connexion
  750. {% endblock %}
  751. {% block userblog_body %}
  752. <section class=\"container-fluid\" style=\"padding-left: 0px; padding-right: 0px;\">
  753.     <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);\">
  754.         <div class=\"row\">
  755.             <div class=\"col-md-12\">
  756.                 <span style=\"float: right;\">
  757.                   <a href=\"#!\" data-toggle=\"modal\" data-target=\"#articleModalCenter\" class=\"btn btn-primary mt-2\">Ajouter un slide</a>
  758.                 </span>
  759.                 
  760.                 <h1>Une bonne affaire</h1>
  761.                 <div>Une bonne affaire</div>
  762.             </div>
  763.         </div>
  764.     </section>
  765. </section>
  766. <div class=\"container\" style=\"min-height: calc(100vh - 150px);\">
  767.     <ul class=\"breadcrumb_\" itemprop=\"breadcrumb_\">
  768.       <li><a href=\"#!\">Dashboard</a></li>
  769.       <li><a href=\"#\">Partenaires</a></li>
  770.       <li><h1>Tous les partenaires</h1></li>
  771.     </ul>
  772.       {% for infos in app.session.flashbag.get('information') %}
  773.           {% if loop.last %}
  774.             <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  775.                 {{ infos }}
  776.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  777.                     <span aria-hidden=\"true\">&times;</span>
  778.                 </button>
  779.             </div>
  780.           {% endif %}
  781.       {% endfor %}
  782.     <div style=\"background: #fff; min-height: calc(100vh - 200px);\">
  783.         <div class=\"accordion\">
  784.             
  785. \t\t\t{% for service in liste_service %}
  786.             <div class=\"box\">
  787.                 <div class=\"row\" style=\"margin: 0px;\">
  788.                     <div class=\"col-md-8\">
  789.                         <h2 class=\"title\">{% if (service.expertise == \"expertise\") %}Expertise{% elseif(service.expertise == \"service\") %}Service{% else %}Département{% endif %} > {{ service.name }}</h2>
  790.                         <h3 class=\"subtitle\">{{ service.date|date('d') }}.{{ service.date|date('m') }}.{{ service.date|date('Y') }}</h3>
  791.                         <span class=\"number\">
  792.                             <div class=\"dropdown\" style=\"float: right;\">
  793.                                 <button type=\"button\" class=\"btn dropdown-toggle\" id=\"dropdownMenuIconButton8\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
  794.                                   <i class=\"bi bi-activity\"></i>
  795.                                 </button>
  796.                                 <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"dropdownMenuIconButton8\" x-placement=\"bottom-end\">
  797.                                   <h6 class=\"dropdown-header\">Opérations</h6>
  798.                                   <a class=\"dropdown-item update-content-article\" href=\"#!\" value=\"{{ service.id }}\"><span class=\"bi bi-pencil\"></span> Modifier</a>
  799.                                   <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>
  800.                                 </div>
  801.                             </div>
  802.                         </span>
  803.                         <p class=\"text\" style=\"font-family: Open Sans;\">{{ service.description }}</p>
  804.                     </div>
  805.     
  806.                     <div class=\"col-md-4\">
  807.                         <img src=\"{{ vich_uploader_asset(service) }}\" alt=\"{{ service.name }}\" style=\"height: 200px; max-width: 100%;\">
  808.                     </div>
  809.                 </div>
  810.             </div>
  811.             {% endfor %}
  812.         </div>
  813.     </div>
  814.     
  815. <div class=\"text-center\" style=\"margin-bottom: 80px; margin-top: 50px;\">
  816. \t{% if nombrepage > 0 %}
  817. \t\t{% if page > 1 and page <= nombrepage %}
  818. \t\t\t{% set pagepre = page - 1 %}
  819. \t\t{% else %}
  820. \t\t\t{% set pagepre = nombrepage %}
  821. \t\t{% endif %}
  822. \t\t{% if page < nombrepage %}
  823. \t\t\t{% set pagesuiv = page + 1 %}
  824. \t\t{% else %}
  825. \t\t\t{% set pagesuiv =  1 %}
  826. \t\t{% endif %}
  827. \t\t{% if nombrepage < 5 %}
  828. \t\t\t{% set debut = 1 %}
  829. \t\t\t{% set fin = nombrepage %}
  830. \t\t{% else %}
  831. \t\t\t{% if page > 2 and page < (nombrepage - 2) %}
  832. \t\t\t\t{% set debut = page - 2 %}
  833. \t\t\t\t{% if page + 2 >= nombrepage %}
  834. \t\t\t\t\t{% set fin = nombrepage %}
  835. \t\t\t\t{% else %}
  836. \t\t\t\t\t{% set fin = page + 2 %}
  837. \t\t\t\t{% endif %}
  838. \t\t\t{% else %}
  839. \t\t\t\t{% if page <= 2 %}
  840. \t\t\t\t\t{% if page == 1 %}
  841. \t\t\t\t\t\t{% set debut = 1 %}
  842. \t\t\t\t\t\t{% set fin = page + 3 %}
  843. \t\t\t\t\t{% else %}
  844. \t\t\t\t\t\t{% set debut = 1 %}
  845. \t\t\t\t\t\t{% set fin = page + 2 %}
  846. \t\t\t\t\t{% endif %}
  847. \t\t\t\t{% else %}
  848. \t\t\t\t\t{% set debut = page - 2 %}
  849. \t\t\t\t\t{% if page + 2 >= nombrepage %}
  850. \t\t\t\t\t\t{% set fin = nombrepage %}
  851. \t\t\t\t\t{% else %}
  852. \t\t\t\t\t\t{% set fin = page + 2 %}
  853. \t\t\t\t\t{% endif %}
  854. \t\t\t\t{% endif %}
  855. \t\t\t{% endif %}
  856. \t\t{% endif %}
  857. \t\t<div class=\"btn-group mb-4 text-center\" role=\"group\" aria-label=\"Basic example\">
  858. \t\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': 1}) }}\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
  859. \t\t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
  860. \t\t\t</a>
  861. \t\t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': pagepre}) }}\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
  862. \t\t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
  863. \t\t\t</a>
  864. \t\t\t{% for p in debut..fin %}
  865. \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>
  866. \t\t\t{% endfor %}
  867. \t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': pagesuiv}) }}\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
  868. \t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
  869. \t\t</a>
  870. \t\t<a href=\"{{ path('users_adminuser_accueil_services', {'page': nombrepage}) }}\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
  871. \t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
  872. \t\t</a>
  873. \t</div>
  874. \t<div class=\"clearfix\"></div>
  875. {% else %}
  876. \t<div class=\"btn-group text-center\" role=\"group\" aria-label=\"Basic example\">
  877. \t\t<a href=\"#\" title=\"Première page\" class=\"btn btn-outline-primary mx-2\">
  878. \t\t\t<span><i class=\"bi bi-chevron-double-left\"></i></span>
  879. \t\t</a>
  880. \t\t<a href=\"#\" title=\"Page précedente\" class=\"btn btn-outline-primary mx-2\">
  881. \t\t\t<span><i class=\"bi bi-chevron-left\"></i></span>
  882. \t\t</a>
  883. \t\t<a href=\"#\" class=\"btn btn-outline-primary mx-2 active\" style=\"margin: 0px 0px;\">1</a>
  884. \t\t<a href=\"#\" title=\"Page suivante\" class=\"btn btn-outline-primary mx-2\">
  885. \t\t\t<span><i class=\"bi bi-chevron-right\"></i></span>
  886. \t\t</a>
  887. \t\t<a href=\"#\" title=\"Dernière page\" class=\"btn btn-outline-primary mx-2\">
  888. \t\t\t<span><i class=\"bi bi-chevron-double-right\"></i></spam>
  889. \t\t</a>
  890. \t</div>
  891. \t{% endif %}
  892. </div>
  893. </div>
  894. <!-- content-wrapper ends -->
  895. <!-- Modal -->
  896. <div class=\"modal fade\" id=\"articleModalCenter\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"articleModalCenter\" aria-hidden=\"true\">
  897.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  898.     {{ form_start(form, {'attr': {'id': 'form-submit-service', 'action': path('users_adminuser_accueil_services') }}) }}\t
  899.     <div class=\"modal-content\">
  900.       <div class=\"modal-header\">
  901.         <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Ajouter un service</h5>
  902.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  903.           <span aria-hidden=\"true\">&times;</span>
  904.         </button>
  905.       </div>
  906.       <div class=\"modal-body\">\t
  907.         <div class=\"row\">
  908.           <div class=\"col-md-12\">
  909.             {{ form_errors(form) }}
  910.           </div>
  911.           <div class=\"col-md-12 mt-3\">
  912.             {{ form_errors(form.name) }}
  913.             {{ form_label(form.name,'Nom du service') }}
  914.             {{ form_widget(form.name) }}
  915.           </div>
  916.           <div class=\"col-md-12 mt-3\">
  917.             {{ form_errors(form.description) }}
  918.             {{ form_label(form.description,'Description du service') }}
  919.             {{ form_widget(form.description) }}
  920.           </div> 
  921.           <div class=\"col-md-12 mt-3\">
  922.             {{ form_errors(form.rang) }}
  923.             {{ form_label(form.rang,'Rang dans le classement') }}
  924.             {{ form_widget(form.rang) }}
  925.           </div> 
  926.           <div class=\"col-md-12 mt-3\">
  927.             <label for=\"categorie_service\">Catégorie</label>
  928.             <select name=\"categorie\" id=\"categorie_service\" class=\"form-control\">
  929.               <option value=\"expertise\">Expertise</option>
  930.               <option value=\"service\">Service</option>
  931.               <option value=\"departement\">Département</option>
  932.             </select>
  933.           </div>
  934.           <div class=\"col-md-12 mt-3\">
  935.             <label for=\"categorie_parent\">Catégorie parent</label>
  936.             <select name=\"parentId\" id=\"categorie_parent\" class=\"form-control\">
  937.               <option value=\"0\">Selectionnez le parent</option>
  938.               {% for serv in liste_all_service %}
  939.                 <option value=\"{{ serv.id }}\">{% if (serv.expertise == \"expertise\") %}Expertise{% elseif(serv.expertise == \"service\") %}Service{% else %}Département{% endif %} > {{ serv.name }}</option>
  940.               {% endfor %}
  941.             </select>
  942.           </div>
  943.           <div class=\"col-md-12 mt-3\">
  944.             <label for=\"motcle_service\">Mot clé d'identification</label>
  945.             <select name=\"motcle\" id=\"motcle_service\" class=\"form-control\">
  946.               <option value=\"-\">Laisser vide</option>
  947.               <option value=\"comptabilite\">Expert comptable</option>
  948.               <option value=\"fiscalité\">Expert Fiscalité</option>
  949.             </select>
  950.           </div>
  951.           <div class=\"col-md-12 mt-3\">
  952. \t\t\t\t\t\t\t<label for=\"nb-occurrences\">Objectifs du services</label>
  953. \t\t\t\t\t\t\t<select id=\"nb-occurrences\" name=\"nb-occurrences\" class=\"form-control\">
  954. \t\t\t\t\t\t\t\t<option value=\"0\">0</option>
  955. \t\t\t\t\t\t\t\t<option value=\"1\">1</option>
  956. \t\t\t\t\t\t\t\t<option value=\"2\">2</option>
  957. \t\t\t\t\t\t\t\t<option value=\"3\">3</option>
  958. \t\t\t\t\t\t\t\t<option value=\"4\">4</option>
  959. \t\t\t\t\t\t\t\t<option value=\"5\">5</option>
  960.                 <option value=\"6\">6</option>
  961. \t\t\t\t\t\t\t\t<option value=\"7\">7</option>
  962. \t\t\t\t\t\t\t</select>
  963. \t\t\t\t\t\t\t<div id=\"groupes-champs\"></div>
  964. \t\t\t\t\t</div>
  965.           <input type=\"hidden\" name=\"objectifs\" id=\"objectifs-services\"/>
  966.           <div class=\"col-md-12 mt-3\">
  967.             {{ form_errors(form.file) }}
  968.             {{ form_label(form.file,'Joindre une image') }}
  969.             {{ form_widget(form.file) }}
  970.           </div>
  971.          <div class=\"clear\"></div>
  972.         </div>
  973.       </div>
  974.       <div class=\"modal-footer\">
  975.         <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  976.         <button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
  977.       </div>
  978.     </div>
  979.     {{ form_end(form) }}
  980.   </div>
  981. </div>
  982. <div class=\"modal fade\" id=\"modalGestionCatalogueSelect\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalGestionCatalogueSelect\" aria-hidden=\"true\">
  983.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  984.   <div class=\"modal-content\">
  985.     <div class=\"modal-header\">
  986.       <h2 class=\"modal-title\" id=\"exampleModalLongTitle\">Mise à jour de l'article</h2>
  987.       <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  988.         <span aria-hidden=\"true\">&times;</span>
  989.       </button>
  990.     </div>
  991.     <div class=\"modal-body\">
  992.       <div class=\"row\">
  993.         <div class=\"col-md-12\">
  994.           <div class=\"wait-chargement-content-module\" style=\"text-align: center;\">
  995.             Patientez un moment pendant le chargement de l'article</br>
  996.             <img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  997.           </div>
  998.       
  999.           <div class=\"content-module-loading\" style=\"display: none;\">
  1000.           
  1001.           </div>
  1002.         </div>
  1003.       </div>
  1004.     </div>
  1005.     <div class=\"modal-footer\" style=\"display: block;\">
  1006.       {% include \"Theme/General/Template/Menu/social.html.twig\" %}
  1007.     </div>
  1008.   </div>
  1009.   </div>
  1010.   </div>
  1011. {% endblock %}
  1012. {% block javascripttemplate %}
  1013. \$('#nb-occurrences').on('change', function () {
  1014. \tvar count = parseInt(\$(this).val());
  1015. \tvar container = \$('#groupes-champs');
  1016. \tcontainer.empty();
  1017. \tfor (let i = 0; i < count; i++) {
  1018. \t\tvar group = `
  1019. \t\t<div class=\"groupe-champs\" data-index=\"\${i}\">
  1020. \t\t\t<h4>Objectif \${i + 1}</h4>
  1021. \t\t\t<div class=\"row\">
  1022. \t\t\t\t<div class=\"col-md-12\">
  1023. \t\t\t\t\t<input type=\"text\" step=\"0.01\" class=\"nom-base form-control\" required><br>
  1024. \t\t\t\t</div>
  1025. \t\t\t<div>
  1026. \t\t</div>
  1027. \t\t`;
  1028. \t\tcontainer.append(group);
  1029. \t}
  1030. });
  1031. \$(\"#form-submit-service\").on(\"submit\", function(){
  1032.   var result = [];
  1033.   \$('.groupe-champs').each(function () {
  1034. \t\tvar nomBase = \$(this).find('.nom-base').val();
  1035. \t\tresult.push({
  1036. \t\t  nombase: nomBase
  1037. \t\t});
  1038. \t});
  1039.   jsonData = JSON.stringify(result);
  1040.   \$(\"#objectifs-services\").val(jsonData)
  1041.   
  1042. })
  1043. \$('.update-content-article').click(function(){
  1044. \tvar id = \$(this).attr('value');
  1045. \t\$('#modalGestionCatalogueSelect').modal('show');
  1046. \t\$('.wait-chargement-content-module').show();
  1047. \t\$('.content-module-loading').hide();
  1048. \t\$.get('{{ path('users_adminuser_update_services') }}',{ id: id }, function(data){
  1049. \t\t\$('.wait-chargement-content-module').hide();
  1050. \t\t\$('.content-module-loading').show();
  1051. \t\t\$('.content-module-loading').html(data);
  1052. \t});
  1053. });
  1054. \$('.suppression_current_article').click(function(){
  1055. \tid = \$(this).attr('value');
  1056. \tresetNotif();
  1057. \talertify.confirm(\"Êtes-vous certain de vouloir supprimer cet article ?</br></br>\", function (e) {
  1058. \t\tif(e){
  1059. \t\t\t  document.location.href= ''+id;
  1060. \t\t} else {
  1061. \t\t\talertify.success(\"Opération annulée avec succès !\");
  1062. \t\t}
  1063. \t});
  1064. });
  1065. {% endblock %}""Theme/Users/Adminuser/Service/accueilservice.html.twig""/home/syscofie/public_html/syscofie/templates/Theme/Users/Adminuser/Service/accueilservice.html.twig");
  1066.     }
  1067. }