<?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;
/* home/index.html.twig */
class __TwigTemplate_3792abc4354001d18b48406081825f42fe55eb4e0bfecc7b14a3f53915a2aa00 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "home/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "home/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
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 "Déclaration LFPL";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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"));
// line 6
echo "<div class=\"text-center\">
";
// line 7
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.', 7, $this->source); })()), "user", [], "any", false, false, false, 7)) {
// line 8
echo "
";
// line 9
if ((0 === twig_compare(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.', 9, $this->source); })()), "user", [], "any", false, false, false, 9), "role", [], "any", false, false, false, 9), "ROLE_USER"))) {
// line 10
echo " <h2 class=\"py-4 my-4\">Bienvenue ";
echo twig_escape_filter($this->env, 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.', 10, $this->source); })()), "user", [], "any", false, false, false, 10), "membre", [], "any", false, false, false, 10), "html", null, true);
echo "</h2>
<div class=\"row justify-content-center\">
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("declaration", ["date" => twig_date_format_filter($this->env, "now", "Y-m")]), "html", null, true);
echo "\">Mes Déclarations</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("declaration.new");
echo "\">Ajouter une déclaration</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 15
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("declaration.archive");
echo "\">Archive</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 16
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profil");
echo "\">Mon Profil</a>
</div>
";
}
// line 19
echo "
";
// line 20
if ((0 === twig_compare(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.', 20, $this->source); })()), "user", [], "any", false, false, false, 20), "role", [], "any", false, false, false, 20), "ROLE_ADMIN"))) {
// line 21
echo " <h2 class=\"py-4 my-4\">Bienvenue Administrateur ";
echo twig_escape_filter($this->env, 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.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "membre", [], "any", false, false, false, 21), "html", null, true);
echo "</h2>
<div class=\"row justify-content-center\">
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestiondeclaration");
echo "\">Gestion des Déclarations</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 25
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestionmembre");
echo "\">Gestion des Utilisateurs</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestioncommission");
echo "\">Gestion des Commissions</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 27
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestiondeclaration.new");
echo "\">Nouvelle Déclaration</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 28
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive");
echo "\">Archive</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 29
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("presenceupdate");
echo "\">Mettre à jour les Présences</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tarif");
echo "\">Tarification</a>
</div>
";
}
// line 33
echo " <br/>
<a class=\"btn btn-secondary\" href=\"";
// line 34
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Se déconnecter</a>
";
} else {
// line 37
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo_transparent.png"), "html", null, true);
echo "\" height=\"130vh\"/><br/>
<h2 class=\"py-4 my-4\">Veuillez vous connecter !</h2><br/>
<a class=\"btn btn-lg btn-primary\" href=\"";
// line 39
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
echo "\">Se connecter</a>
";
}
// line 41
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "home/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 185 => 41, 180 => 39, 174 => 37, 168 => 34, 165 => 33, 159 => 30, 155 => 29, 151 => 28, 147 => 27, 143 => 26, 139 => 25, 135 => 24, 128 => 21, 126 => 20, 123 => 19, 117 => 16, 113 => 15, 109 => 14, 105 => 13, 98 => 10, 96 => 9, 93 => 8, 91 => 7, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Déclaration LFPL{% endblock %}
{% block body %}
<div class=\"text-center\">
{% if app.user %}
{% if app.user.role == \"ROLE_USER\" %}
<h2 class=\"py-4 my-4\">Bienvenue {{ app.user.membre }}</h2>
<div class=\"row justify-content-center\">
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration', {date : 'now' | date('Y-m')}) }}\">Mes Déclarations</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration.new') }}\">Ajouter une déclaration</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration.archive') }}\">Archive</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('profil') }}\">Mon Profil</a>
</div>
{% endif %}
{% if app.user.role == \"ROLE_ADMIN\" %}
<h2 class=\"py-4 my-4\">Bienvenue Administrateur {{ app.user.membre }}</h2>
<div class=\"row justify-content-center\">
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestiondeclaration') }}\">Gestion des Déclarations</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestionmembre') }}\">Gestion des Utilisateurs</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestioncommission') }}\">Gestion des Commissions</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestiondeclaration.new') }}\">Nouvelle Déclaration</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('archive') }}\">Archive</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('presenceupdate') }}\">Mettre à jour les Présences</a>
<a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('tarif') }}\">Tarification</a>
</div>
{% endif %}
<br/>
<a class=\"btn btn-secondary\" href=\"{{ path('app_logout') }}\">Se déconnecter</a>
{% else %}
<img src=\"{{ asset('img/logo_transparent.png') }}\" height=\"130vh\"/><br/>
<h2 class=\"py-4 my-4\">Veuillez vous connecter !</h2><br/>
<a class=\"btn btn-lg btn-primary\" href=\"{{ path('app_login') }}\">Se connecter</a>
{% endif %}
</div>
{% endblock %}
", "home/index.html.twig", "/var/www/lfplfff/www/preprod.lfpldeclaration/templates/home/index.html.twig");
}
}