var/cache/dev/twig/2d/2db428e6d8018e6c4700624d999d8edf.php line 33
<?phpuse 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;/* Opportunities/list.html.twig */class __TwigTemplate_0e6da3b65cd8a8161c8d7a046129f708 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->parent = false;$this->blocks = [];}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Opportunities/list.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Opportunities/list.html.twig"));// line 1echo "<table ><thead><tr><th>ID</th><th>Titre</th><th>Infos</th><th>Dates</th><th>Actions</th></tr></thead>";// line 11$context['_parent'] = $context;$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); })()));foreach ($context['_seq'] as $context["_key"] => $context["o"]) {// line 12echo "\t<tr data-enabled=\"";echo (( !(twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 12) === null)) ? ((((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 12) == 1)) ? (1) : (0))) : (""));echo "\"><td>";// line 13echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 13), "html", null, true);echo "</td><td class=\"semibold h4\">";// line 14echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 14), "html", null, true);echo "</td><td class=\"nowrap\">Catégorie : ";// line 16echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "category", [], "any", false, false, false, 16), "html", null, true);echo "<br>Type : ";// line 17echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "type", [], "any", false, false, false, 17), "html", null, true);echo "<br>Secteur : ";// line 18echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "sector", [], "any", false, false, false, 18), "html", null, true);echo "</td><td class=\"nowrap\">Ouverture : ";// line 21echo twig_escape_filter($this->env, $this->env->getFilter('frdatetime')->getCallable()(twig_get_attribute($this->env, $this->source, $context["o"], "openingDate", [], "any", false, false, false, 21)), "html", null, true);echo "<br>Clôture : ";// line 22echo twig_escape_filter($this->env, $this->env->getFilter('frdatetime')->getCallable()(twig_get_attribute($this->env, $this->source, $context["o"], "closingDate", [], "any", false, false, false, 22)), "html", null, true);echo "</td><td><a href=\"";// line 25echo 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", false, false, false, 25)]), "html", null, true);echo "\" title=\"Modifier\" class=\"action fas fa-edit btn-edit\"></a><a href=\"";// line 26echo 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", false, false, false, 26)]), "html", null, true);echo "\" class=\"action btn-flash fa ";echo ((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 26)) ? ("fa-times") : ("fa-check"));echo "\" title=\"";echo ((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 26)) ? ("Désactiver") : ("Activer"));echo "\"></a></td></tr>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 30echo "</table>";$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}public function getTemplateName(){return "Opportunities/list.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){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,);}public function getSourceContext(){return new Source("<table ><thead><tr><th>ID</th><th>Titre</th><th>Infos</th><th>Dates</th><th>Actions</th></tr></thead>{% for o in list %}\t<tr data-enabled=\"{{o.isEnabled is not same as (null) ? o.isEnabled == 1 ? 1 : 0 : ''}}\"><td>{{ o.id }}</td><td class=\"semibold h4\">{{ o.title }}</td><td class=\"nowrap\">Catégorie : {{ o.category }}<br>Type : {{ o.type }}<br>Secteur : {{ o.sector }}</td><td class=\"nowrap\">Ouverture : {{ o.openingDate|frdatetime }}<br>Clôture : {{ o.closingDate|frdatetime}}</td><td><a href=\"{{path('opportunities-edit',{'id':o.id})}}\" title=\"Modifier\" class=\"action fas fa-edit btn-edit\"></a><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></td></tr>{% endfor %}</table>", "Opportunities/list.html.twig", "/home/olasoftnka/asin/templates/Opportunities/list.html.twig");}}