<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* base.html.twig */
class __TwigTemplate_dbecf933bc2ad44b5ad33895dd28156704cb67c7b028e9b44250bd5b2bb490cd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascript_include' => [$this, 'block_javascript_include'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>";
// line 5
$this->displayBlock('title', $context, $blocks);
echo "</title>
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://bootswatch.com/4/flatly/bootstrap.min.css\">
<style>
.nav-link{
color: #18bc9c;
}</style>
";
// line 12
$this->displayBlock('stylesheets', $context, $blocks);
// line 13
echo "</head>
<body>
";
// line 15
$this->displayBlock('javascript_include', $context, $blocks);
// line 20
echo "<nav class=\"navbar navbar-expand-lg navbar-dark bg-primary\">
<a class=\"navbar-brand\" href=\"#\">CDOS 86 <br> <h6>Service fonction employeur</h6></a>
<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarColor01\" aria-controls=\"navbarColor01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarColor01\">
<ul class=\"navbar-nav mr-auto\">
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/\">Accueil</a>
</li>
";
// line 31
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 31, $this->source); })()), "user", [], "any", false, false, false, 31)) {
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "user", [], "any", false, false, false, 32), "roles", [], "method", false, false, false, 32));
foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
// line 33
echo "
";
// line 34
if (($context["role"] == "ROLE_SUPER_ADMIN")) {
// line 35
echo " <li class=\"nav-item\">
<a class=\"nav-link\" href=\"/inscription\">Créer un compte</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 39
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("affAssociation", ["but" => "association"]);
echo "\">Associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("affAllSalaries", ["but" => "salarie"]);
echo "\">Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ExportInfosAsso");
echo "\">Export Infos Associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 48
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ExportInfosSalaries");
echo "\">Variables</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 51
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("OngletDocListeAssociations");
echo "\">Dépôt des documents associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocSalariesParAsso\">Documents salariés reçus</a>
</li>
";
}
// line 58
echo " ";
if (($context["role"] == "ROLE_ADMIN")) {
// line 59
echo " <li class=\"nav-item\">
<a class=\"nav-link\" href=\"/MonAssociation\">Mon Association</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/ListeSalaries\">Liste des salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("Export Infos Salariés", ["amail" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 66, $this->source); })()), "user", [], "any", false, false, false, 66), "comail", [], "any", false, false, false, 66)]), "html", null, true);
echo "\">Export Infos Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocListeSalaries\">Documents Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocAssociations\">Documents Associations</a>
</li>
";
}
// line 76
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
echo " ";
}
// line 78
echo " </ul>
";
// line 79
if ( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 79, $this->source); })()), "user", [], "any", false, false, false, 79)) {
// line 80
echo " <a class=\"nav-link\" href=\"/login\">Connexion</a>
";
} else {
// line 82
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "user", [], "any", false, false, false, 82), "roles", [], "method", false, false, false, 82));
foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
// line 83
echo " ";
if (($context["role"] == "ROLE_SUPER_ADMIN")) {
// line 84
echo " <span style=\"color: #b4b4b4\">Super ADMIN</span>
";
}
// line 86
echo " ";
if (($context["role"] == "ROLE_ADMIN")) {
// line 87
echo " <span style=\"color: #b4b4b4\">Association</span>
";
}
// line 89
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " <a class=\"nav-link\" href=\"/logout\">Déconnexion</a>
";
}
// line 92
echo " </div>
</nav>
<div class=\"container\">
<br>
";
// line 96
$this->displayBlock('body', $context, $blocks);
// line 97
echo "</div>
";
// line 99
$this->displayBlock('javascripts', $context, $blocks);
// line 100
echo "</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Welcome!";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_javascript_include($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript_include"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript_include"));
// line 16
echo " <script src=\"https://code.jquery.com/jquery-3.3.1.js\"></script>
<script src=\"https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js\"></script>
<script src=\"https://cdn.datatables.net/keytable/2.5.0/js/dataTables.keyTable.min.js\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 96
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 99
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 312 => 99, 294 => 96, 281 => 16, 271 => 15, 253 => 12, 234 => 5, 223 => 100, 221 => 99, 217 => 97, 215 => 96, 209 => 92, 205 => 90, 199 => 89, 195 => 87, 192 => 86, 188 => 84, 185 => 83, 180 => 82, 176 => 80, 174 => 79, 171 => 78, 168 => 77, 162 => 76, 149 => 66, 140 => 59, 137 => 58, 127 => 51, 121 => 48, 115 => 45, 109 => 42, 103 => 39, 97 => 35, 95 => 34, 92 => 33, 87 => 32, 85 => 31, 72 => 20, 70 => 15, 66 => 13, 64 => 12, 54 => 5, 48 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}Welcome!{% endblock %}</title>
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://bootswatch.com/4/flatly/bootstrap.min.css\">
<style>
.nav-link{
color: #18bc9c;
}</style>
{% block stylesheets %}{% endblock %}
</head>
<body>
{% block javascript_include %}
<script src=\"https://code.jquery.com/jquery-3.3.1.js\"></script>
<script src=\"https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js\"></script>
<script src=\"https://cdn.datatables.net/keytable/2.5.0/js/dataTables.keyTable.min.js\"></script>
{% endblock %}
<nav class=\"navbar navbar-expand-lg navbar-dark bg-primary\">
<a class=\"navbar-brand\" href=\"#\">CDOS 86 <br> <h6>Service fonction employeur</h6></a>
<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarColor01\" aria-controls=\"navbarColor01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarColor01\">
<ul class=\"navbar-nav mr-auto\">
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/\">Accueil</a>
</li>
{% if app.user %}
{% for role in app.user.roles() %}
{% if role == 'ROLE_SUPER_ADMIN' %}
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/inscription\">Créer un compte</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('affAssociation',{'but': 'association'}) }}\">Associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('affAllSalaries',{'but': 'salarie'}) }}\">Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('ExportInfosAsso') }}\">Export Infos Associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('ExportInfosSalaries')}}\">Variables</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('OngletDocListeAssociations') }}\">Dépôt des documents associations</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocSalariesParAsso\">Documents salariés reçus</a>
</li>
{% endif %}
{% if role == 'ROLE_ADMIN' %}
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/MonAssociation\">Mon Association</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/ListeSalaries\">Liste des salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('Export Infos Salariés',{'amail': app.user.comail}) }}\">Export Infos Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocListeSalaries\">Documents Salariés</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/OngletDocAssociations\">Documents Associations</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
{% if not app.user %}
<a class=\"nav-link\" href=\"/login\">Connexion</a>
{% else %}
{% for role in app.user.roles() %}
{% if role == 'ROLE_SUPER_ADMIN' %}
<span style=\"color: #b4b4b4\">Super ADMIN</span>
{% endif %}
{% if role == 'ROLE_ADMIN' %}
<span style=\"color: #b4b4b4\">Association</span>
{% endif %}
{% endfor %}
<a class=\"nav-link\" href=\"/logout\">Déconnexion</a>
{% endif %}
</div>
</nav>
<div class=\"container\">
<br>
{% block body %}{% endblock %}
</div>
{% block javascripts %}{% endblock %}
</body>
</html>", "base.html.twig", "/home/rlvchht/www/dev/templates/base.html.twig");
}
}