var/cache/dev/twig/b6/b6313cdd84bfa72ddec2b0d13fc225fcb3549e8200eb6885ce8d69e7a15dfd87.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* home/index.html.twig */
  14. class __TwigTemplate_3792abc4354001d18b48406081825f42fe55eb4e0bfecc7b14a3f53915a2aa00 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/index.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/index.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""home/index.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Déclaration LFPL";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "<div class=\"text-center\">
  70. ";
  71.         // line 7
  72.         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"falsefalsefalse7)) {
  73.             // line 8
  74.             echo "
  75.   ";
  76.             // line 9
  77.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "role", [], "any"falsefalsefalse9), "ROLE_USER"))) {
  78.                 // line 10
  79.                 echo "    <h2 class=\"py-4 my-4\">Bienvenue ";
  80.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse10), "membre", [], "any"falsefalsefalse10), "html"nulltrue);
  81.                 echo "</h2>
  82.     <div class=\"row justify-content-center\">
  83.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  84.                 // line 13
  85.                 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"nulltrue);
  86.                 echo "\">Mes Déclarations</a>
  87.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  88.                 // line 14
  89.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("declaration.new");
  90.                 echo "\">Ajouter une déclaration</a>
  91.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  92.                 // line 15
  93.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("declaration.archive");
  94.                 echo "\">Archive</a>
  95.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  96.                 // line 16
  97.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profil");
  98.                 echo "\">Mon Profil</a>
  99.     </div>
  100.   ";
  101.             }
  102.             // line 19
  103.             echo "
  104.   ";
  105.             // line 20
  106.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse20), "role", [], "any"falsefalsefalse20), "ROLE_ADMIN"))) {
  107.                 // line 21
  108.                 echo "    <h2 class=\"py-4 my-4\">Bienvenue Administrateur ";
  109.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse21), "membre", [], "any"falsefalsefalse21), "html"nulltrue);
  110.                 echo "</h2>
  111.     <div class=\"row justify-content-center\">
  112.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  113.                 // line 24
  114.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestiondeclaration");
  115.                 echo "\">Gestion des Déclarations</a>
  116.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  117.                 // line 25
  118.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestionmembre");
  119.                 echo "\">Gestion des Utilisateurs</a>
  120.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  121.                 // line 26
  122.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestioncommission");
  123.                 echo "\">Gestion des Commissions</a>
  124.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  125.                 // line 27
  126.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gestiondeclaration.new");
  127.                 echo "\">Nouvelle Déclaration</a>
  128.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  129.                 // line 28
  130.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive");
  131.                 echo "\">Archive</a>
  132.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  133.                 // line 29
  134.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("presenceupdate");
  135.                 echo "\">Mettre à jour les Présences</a>
  136.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"";
  137.                 // line 30
  138.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tarif");
  139.                 echo "\">Tarification</a>
  140.     </div>
  141.   ";
  142.             }
  143.             // line 33
  144.             echo "  <br/>
  145.   <a class=\"btn btn-secondary\" href=\"";
  146.             // line 34
  147.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  148.             echo "\">Se déconnecter</a>
  149. ";
  150.         } else {
  151.             // line 37
  152.             echo "  <img src=\"";
  153.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo_transparent.png"), "html"nulltrue);
  154.             echo "\" height=\"130vh\"/><br/>
  155.   <h2 class=\"py-4 my-4\">Veuillez vous connecter !</h2><br/>
  156.   <a class=\"btn btn-lg btn-primary\" href=\"";
  157.             // line 39
  158.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  159.             echo "\">Se connecter</a>
  160. ";
  161.         }
  162.         // line 41
  163.         echo "</div>
  164. ";
  165.         
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  167.         
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "home/index.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         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,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("{% extends 'base.html.twig' %}
  185. {% block title %}Déclaration LFPL{% endblock %}
  186. {% block body %}
  187. <div class=\"text-center\">
  188. {% if app.user %}
  189.   {% if app.user.role == \"ROLE_USER\" %}
  190.     <h2 class=\"py-4 my-4\">Bienvenue {{ app.user.membre }}</h2>
  191.     <div class=\"row justify-content-center\">
  192.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration', {date : 'now' | date('Y-m')}) }}\">Mes Déclarations</a>
  193.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration.new') }}\">Ajouter une déclaration</a>
  194.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('declaration.archive') }}\">Archive</a>
  195.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('profil') }}\">Mon Profil</a>
  196.     </div>
  197.   {% endif %}
  198.   {% if app.user.role == \"ROLE_ADMIN\" %}
  199.     <h2 class=\"py-4 my-4\">Bienvenue Administrateur {{ app.user.membre }}</h2>
  200.     <div class=\"row justify-content-center\">
  201.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestiondeclaration') }}\">Gestion des Déclarations</a>
  202.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestionmembre') }}\">Gestion des Utilisateurs</a>
  203.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestioncommission') }}\">Gestion des Commissions</a>
  204.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('gestiondeclaration.new') }}\">Nouvelle Déclaration</a>
  205.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('archive') }}\">Archive</a>
  206.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('presenceupdate') }}\">Mettre à jour les Présences</a>
  207.       <a class=\"btn btn-primary btn-block col-6 m-3\" href=\"{{ path('tarif') }}\">Tarification</a>
  208.     </div>
  209.   {% endif %}
  210.   <br/>
  211.   <a class=\"btn btn-secondary\" href=\"{{ path('app_logout') }}\">Se déconnecter</a>
  212. {% else %}
  213.   <img src=\"{{ asset('img/logo_transparent.png') }}\" height=\"130vh\"/><br/>
  214.   <h2 class=\"py-4 my-4\">Veuillez vous connecter !</h2><br/>
  215.   <a class=\"btn btn-lg btn-primary\" href=\"{{ path('app_login') }}\">Se connecter</a>
  216. {% endif %}
  217. </div>
  218. {% endblock %}
  219. ""home/index.html.twig""/var/www/lfplfff/www/preprod.lfpldeclaration/templates/home/index.html.twig");
  220.     }
  221. }