var/cache/dev/twig/d0/d0c46a2a15104d19369202c5209c113529b35a03fdfdb010780f04b0e80f957e.php line 49

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. /* evenements/reservations.html.twig */
  14. class __TwigTemplate_33ba1905a6ab4d0cabd665c9eda5a46380c10ccd3cb0c073a3d96cde790b3ed3 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""evenements/reservations.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""evenements/reservations.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""evenements/reservations.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 "Evenements index";
  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=\"container\">
  70. <div class=\"tr-content\">
  71. <div class=\"row\">
  72. <div class=\"col-md-12 tr-sticky\">
  73.     <h1>Liste des Participants - ";
  74.         // line 10
  75.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'10$this->source); })()), "titre", [], "any"falsefalsefalse10), "html"nulltrue);
  76.         echo " - ";
  77.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'10$this->source); })()), "date", [], "any"falsefalsefalse10), "d-m-Y"), "html"nulltrue);
  78.         echo " - ";
  79.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'10$this->source); })()), "lieu", [], "any"falsefalsefalse10), "html"nulltrue);
  80.         echo " </h1>
  81.     <table class=\"table\">
  82.         <thead>
  83.             <tr>
  84.             <th>Date</th>
  85.             <th>Type</th>
  86.                 <th>Nom</th>
  87.                 <th>Prénom</th>
  88.                 <th>Email</th>
  89.                 <th>Téléphone</th>
  90.                
  91.                 <th>Nb Places</th>
  92.             </tr>
  93.         </thead>
  94.         <tbody>
  95.         ";
  96.         // line 27
  97.         $context['_parent'] = $context;
  98.         $context['_seq'] = twig_ensure_traversable((isset($context["resa"]) || array_key_exists("resa"$context) ? $context["resa"] : (function () { throw new RuntimeError('Variable "resa" does not exist.'27$this->source); })()));
  99.         foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
  100.             // line 28
  101.             echo "        <tr>
  102.         <td>";
  103.             // line 29
  104.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "created", [], "any"falsefalsefalse29), "d-m-Y"), "html"nulltrue);
  105.             echo "</td>
  106.         <td>";
  107.             // line 30
  108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "type", [], "any"falsefalsefalse30), "html"nulltrue);
  109.             echo "</td>
  110.             <td>";
  111.             // line 31
  112.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse31), "nom", [], "any"falsefalsefalse31), "html"nulltrue);
  113.             echo "</td>
  114.             <td>";
  115.             // line 32
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse32), "prenom", [], "any"falsefalsefalse32), "html"nulltrue);
  117.             echo "</td>
  118.             <td>";
  119.             // line 33
  120.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse33), "email", [], "any"falsefalsefalse33), "html"nulltrue);
  121.             echo "</td>
  122.             <td>";
  123.             // line 34
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse34), "telephone", [], "any"falsefalsefalse34), "html"nulltrue);
  125.             echo "</td>
  126.             
  127.             <td>";
  128.             // line 36
  129.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "nbPlaces", [], "any"falsefalsefalse36), "html"nulltrue);
  130.             echo "</td>
  131.         </tr>
  132.         ";
  133.         }
  134.         $_parent $context['_parent'];
  135.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
  136.         $context array_intersect_key($context$_parent) + $_parent;
  137.         // line 40
  138.         echo "
  139.         ";
  140.         // line 41
  141.         $context['_parent'] = $context;
  142.         $context['_seq'] = twig_ensure_traversable((isset($context["resa2"]) || array_key_exists("resa2"$context) ? $context["resa2"] : (function () { throw new RuntimeError('Variable "resa2" does not exist.'41$this->source); })()));
  143.         foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
  144.             // line 42
  145.             echo "        <tr>
  146.         <td>";
  147.             // line 43
  148.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "created", [], "any"falsefalsefalse43), "d-m-Y"), "html"nulltrue);
  149.             echo "</td>
  150.         <td>";
  151.             // line 44
  152.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "type", [], "any"falsefalsefalse44), "html"nulltrue);
  153.             echo "</td>
  154.             <td>";
  155.             // line 45
  156.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse45), "nom", [], "any"falsefalsefalse45), "html"nulltrue);
  157.             echo "</td>
  158.             <td>";
  159.             // line 46
  160.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse46), "prenom", [], "any"falsefalsefalse46), "html"nulltrue);
  161.             echo "</td>
  162.             <td>";
  163.             // line 47
  164.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse47), "email", [], "any"falsefalsefalse47), "html"nulltrue);
  165.             echo "</td>
  166.             <td>";
  167.             // line 48
  168.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse48), "telephone", [], "any"falsefalsefalse48), "html"nulltrue);
  169.             echo "</td>
  170.             <td>";
  171.             // line 49
  172.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "nbPlaces", [], "any"falsefalsefalse49), "html"nulltrue);
  173.             echo "</td>
  174.         </tr>
  175.         ";
  176.         }
  177.         $_parent $context['_parent'];
  178.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
  179.         $context array_intersect_key($context$_parent) + $_parent;
  180.         // line 53
  181.         echo "       
  182.         </tbody>
  183.     </table>
  184.        </div>
  185.       </div>
  186.         </div>
  187.           </div>
  188. ";
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "evenements/reservations.html.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         return array (  204 => 53,  194 => 49,  190 => 48,  186 => 47,  182 => 46,  178 => 45,  174 => 44,  170 => 43,  167 => 42,  163 => 41,  160 => 40,  150 => 36,  145 => 34,  141 => 33,  137 => 32,  133 => 31,  129 => 30,  125 => 29,  122 => 28,  118 => 27,  94 => 10,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("{% extends 'base.html.twig' %}
  209. {% block title %}Evenements index{% endblock %}
  210. {% block body %}
  211.     <div class=\"container\">
  212. <div class=\"tr-content\">
  213. <div class=\"row\">
  214. <div class=\"col-md-12 tr-sticky\">
  215.     <h1>Liste des Participants - {{event.titre}} - {{event.date|date('d-m-Y')}} - {{event.lieu}} </h1>
  216.     <table class=\"table\">
  217.         <thead>
  218.             <tr>
  219.             <th>Date</th>
  220.             <th>Type</th>
  221.                 <th>Nom</th>
  222.                 <th>Prénom</th>
  223.                 <th>Email</th>
  224.                 <th>Téléphone</th>
  225.                
  226.                 <th>Nb Places</th>
  227.             </tr>
  228.         </thead>
  229.         <tbody>
  230.         {% for res in resa %}
  231.         <tr>
  232.         <td>{{res.created|date('d-m-Y')}}</td>
  233.         <td>{{res.type}}</td>
  234.             <td>{{res.user.nom}}</td>
  235.             <td>{{res.user.prenom}}</td>
  236.             <td>{{res.user.email}}</td>
  237.             <td>{{res.user.telephone}}</td>
  238.             
  239.             <td>{{res.nbPlaces}}</td>
  240.         </tr>
  241.         {% endfor %}
  242.         {% for res in resa2 %}
  243.         <tr>
  244.         <td>{{res.created|date('d-m-Y')}}</td>
  245.         <td>{{res.type}}</td>
  246.             <td>{{res.user.nom}}</td>
  247.             <td>{{res.user.prenom}}</td>
  248.             <td>{{res.user.email}}</td>
  249.             <td>{{res.user.telephone}}</td>
  250.             <td>{{res.nbPlaces}}</td>
  251.         </tr>
  252.         {% endfor %}
  253.        
  254.         </tbody>
  255.     </table>
  256.        </div>
  257.       </div>
  258.         </div>
  259.           </div>
  260. {% endblock %}
  261. ""evenements/reservations.html.twig""/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/evenements/reservations.html.twig");
  262.     }
  263. }