var/cache/dev/twig/2d/2db428e6d8018e6c4700624d999d8edf.php line 87

  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. /* Opportunities/list.html.twig */
  14. class __TwigTemplate_0e6da3b65cd8a8161c8d7a046129f708 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Opportunities/list.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Opportunities/list.html.twig"));
  33.         // line 1
  34.         echo "<table >
  35.     <thead>
  36.     <tr>
  37.         <th>ID</th>
  38.         <th>Titre</th>
  39.         <th>Infos</th>
  40.         <th>Dates</th>
  41.         <th>Actions</th>
  42.     </tr>
  43.     </thead>
  44.     ";
  45.         // line 11
  46.         $context['_parent'] = $context;
  47.         $context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.'11$this->source); })()));
  48.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  49.             // line 12
  50.             echo "\t<tr data-enabled=\"";
  51.             echo (( !(twig_get_attribute($this->env$this->source$context["o"], "isEnabled", [], "any"falsefalsefalse12) === null)) ? ((((twig_get_attribute($this->env$this->source$context["o"], "isEnabled", [], "any"falsefalsefalse12) == 1)) ? (1) : (0))) : (""));
  52.             echo "\">
  53.         <td>";
  54.             // line 13
  55.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse13), "html"nulltrue);
  56.             echo "</td>
  57.         <td class=\"semibold h4\">";
  58.             // line 14
  59.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse14), "html"nulltrue);
  60.             echo "</td>
  61.         <td class=\"nowrap\">
  62.             Catégorie : ";
  63.             // line 16
  64.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "category", [], "any"falsefalsefalse16), "html"nulltrue);
  65.             echo "
  66.             <br>Type : ";
  67.             // line 17
  68.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "type", [], "any"falsefalsefalse17), "html"nulltrue);
  69.             echo "
  70.             <br>Secteur : ";
  71.             // line 18
  72.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "sector", [], "any"falsefalsefalse18), "html"nulltrue);
  73.             echo "
  74.         </td>
  75.         <td class=\"nowrap\">
  76.             Ouverture : ";
  77.             // line 21
  78.             echo twig_escape_filter($this->env$this->env->getFilter('frdatetime')->getCallable()(twig_get_attribute($this->env$this->source$context["o"], "openingDate", [], "any"falsefalsefalse21)), "html"nulltrue);
  79.             echo "
  80.             <br>Clôture : ";
  81.             // line 22
  82.             echo twig_escape_filter($this->env$this->env->getFilter('frdatetime')->getCallable()(twig_get_attribute($this->env$this->source$context["o"], "closingDate", [], "any"falsefalsefalse22)), "html"nulltrue);
  83.             echo "
  84.         </td>
  85.         <td>
  86.            <a href=\"";
  87.             // line 25
  88.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("opportunities-edit", ["id" => twig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse25)]), "html"nulltrue);
  89.             echo "\" title=\"Modifier\" class=\"action fas fa-edit btn-edit\"></a>
  90.            <a href=\"";
  91.             // line 26
  92.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("opportunities-enable", ["id" => twig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse26)]), "html"nulltrue);
  93.             echo "\" class=\"action btn-flash fa ";
  94.             echo ((twig_get_attribute($this->env$this->source$context["o"], "isEnabled", [], "any"falsefalsefalse26)) ? ("fa-times") : ("fa-check"));
  95.             echo "\" title=\"";
  96.             echo ((twig_get_attribute($this->env$this->source$context["o"], "isEnabled", [], "any"falsefalsefalse26)) ? ("Désactiver") : ("Activer"));
  97.             echo "\"></a>
  98.         </td>
  99.     </tr>
  100.     ";
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 30
  106.         echo "</table>
  107. ";
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "Opportunities/list.html.twig";
  116.     }
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     public function getDebugInfo()
  122.     {
  123.         return array (  115 => 30,  101 => 26,  97 => 25,  91 => 22,  87 => 21,  81 => 18,  77 => 17,  73 => 16,  68 => 14,  64 => 13,  59 => 12,  55 => 11,  43 => 1,);
  124.     }
  125.     public function getSourceContext()
  126.     {
  127.         return new Source("<table >
  128.     <thead>
  129.     <tr>
  130.         <th>ID</th>
  131.         <th>Titre</th>
  132.         <th>Infos</th>
  133.         <th>Dates</th>
  134.         <th>Actions</th>
  135.     </tr>
  136.     </thead>
  137.     {% for o in list %}
  138. \t<tr data-enabled=\"{{o.isEnabled is not same as (null) ? o.isEnabled == 1 ? 1 : 0 : ''}}\">
  139.         <td>{{ o.id }}</td>
  140.         <td class=\"semibold h4\">{{ o.title }}</td>
  141.         <td class=\"nowrap\">
  142.             Catégorie : {{ o.category }}
  143.             <br>Type : {{ o.type }}
  144.             <br>Secteur : {{ o.sector }}
  145.         </td>
  146.         <td class=\"nowrap\">
  147.             Ouverture : {{ o.openingDate|frdatetime }}
  148.             <br>Clôture : {{ o.closingDate|frdatetime}}
  149.         </td>
  150.         <td>
  151.            <a href=\"{{path('opportunities-edit',{'id':o.id})}}\" title=\"Modifier\" class=\"action fas fa-edit btn-edit\"></a>
  152.            <a href=\"{{path('opportunities-enable',{id:o.id})}}\" class=\"action btn-flash fa {{ o.isEnabled ? 'fa-times' : 'fa-check' }}\" title=\"{{ o.isEnabled ? 'Désactiver' : 'Activer' }}\"></a>
  153.         </td>
  154.     </tr>
  155.     {% endfor %}
  156. </table>
  157. ""Opportunities/list.html.twig""/home/olasoftnka/asin/templates/Opportunities/list.html.twig");
  158.     }
  159. }