<?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;
/* job/list.html.twig */
class __TwigTemplate_b61516c31ae0216925b673204a1c941fbbb6890e7d0296f747820e75065ba9e1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.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", "job/list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "job/list.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "job/list.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_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "<main id=\"main\" role=\"main\">
<section id=\"pro-jobs\" class=\"apk-jobs\">
<div class=\"uk-container\">
<div class=\"main-content\">
<h1 class=\"uk-h2 apk-underlined\">";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Les offres d'emplois"), "html", null, true);
echo "</h1>
<div class=\"uk-margin-medium-top\">
<ul class=\"uk-list uk-padding-remove uk-margin-remove \">
";
// line 11
$context["j"] = 0;
// line 12
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["jobs"]) || array_key_exists("jobs", $context) ? $context["jobs"] : (function () { throw new RuntimeError('Variable "jobs" does not exist.', 12, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["job"]) {
// line 13
echo " <li class=\"uk-margin-top\">
<div class=\"apk-rounded-box\">
<div class=\"uk-grid-small uk-margin-bottom uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<span class=\"uk-text-bold big\">";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["job"], "getTitle", [], "method", false, false, false, 17), "html", null, true);
echo "</span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("chez"), "html", null, true);
echo " <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["businesses"]) || array_key_exists("businesses", $context) ? $context["businesses"] : (function () { throw new RuntimeError('Variable "businesses" does not exist.', 17, $this->source); })()), (isset($context["j"]) || array_key_exists("j", $context) ? $context["j"] : (function () { throw new RuntimeError('Variable "j" does not exist.', 17, $this->source); })()), [], "array", false, false, false, 17), "getName", [], "method", false, false, false, 17), "html", null, true);
echo "</span>
<p class=\"uk-margin-remove-top\"><i>";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["job"], "getContract", [], "method", false, false, false, 18), "html", null, true);
echo "</i></p>
</div>
<div class=\"uk-width-auto@s uk-grid-small uk-text-center uk-grid\" uk-grid>
<div>
<a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase uk-button-primary\"
href=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobDetail", ["id" => twig_get_attribute($this->env, $this->source, $context["job"], "id", [], "any", false, false, false, 23)]), "html", null, true);
echo "\">
<img class=\"uk-margin-small-right\" uk-svg width=\"20\" height=\"20\" src=\"/static/img/icons/editer.svg\" alt=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Postuler"), "html", null, true);
echo "\">
";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Postuler"), "html", null, true);
echo "
</a>
</div>
</div>
</div>
</div>
</li>
";
// line 32
$context["j"] = ((isset($context["j"]) || array_key_exists("j", $context) ? $context["j"] : (function () { throw new RuntimeError('Variable "j" does not exist.', 32, $this->source); })()) + 1);
// line 33
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['job'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </ul>
";
// line 35
if ( !(isset($context["jobs"]) || array_key_exists("jobs", $context) ? $context["jobs"] : (function () { throw new RuntimeError('Variable "jobs" does not exist.', 35, $this->source); })())) {
// line 36
echo " <div class=\"uk-alert-danger\" uk-alert>
<p>";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Il n'y a pas d'offre d'emploi disponible."), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 42
echo "
</div>
</div>
</section>
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "job/list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 151 => 42, 143 => 37, 140 => 36, 138 => 35, 135 => 34, 129 => 33, 127 => 32, 117 => 25, 113 => 24, 109 => 23, 101 => 18, 93 => 17, 87 => 13, 82 => 12, 80 => 11, 74 => 8, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
<main id=\"main\" role=\"main\">
<section id=\"pro-jobs\" class=\"apk-jobs\">
<div class=\"uk-container\">
<div class=\"main-content\">
<h1 class=\"uk-h2 apk-underlined\">{{ 'Les offres d\\'emplois'|trans }}</h1>
<div class=\"uk-margin-medium-top\">
<ul class=\"uk-list uk-padding-remove uk-margin-remove \">
{% set j = 0 %}
{% for job in jobs %}
<li class=\"uk-margin-top\">
<div class=\"apk-rounded-box\">
<div class=\"uk-grid-small uk-margin-bottom uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<span class=\"uk-text-bold big\">{{job.getTitle()}}</span> {{'chez' |trans}} <span>{{businesses[j].getName()}}</span>
<p class=\"uk-margin-remove-top\"><i>{{job.getContract()}}</i></p>
</div>
<div class=\"uk-width-auto@s uk-grid-small uk-text-center uk-grid\" uk-grid>
<div>
<a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase uk-button-primary\"
href=\"{{path('jobDetail', {'id' : job.id})}}\">
<img class=\"uk-margin-small-right\" uk-svg width=\"20\" height=\"20\" src=\"/static/img/icons/editer.svg\" alt=\"{{ \"Postuler\"|trans }}\">
{{'Postuler'|trans}}
</a>
</div>
</div>
</div>
</div>
</li>
{% set j = j + 1 %}
{% endfor %}
</ul>
{% if not jobs %}
<div class=\"uk-alert-danger\" uk-alert>
<p>{{ \"Il n'y a pas d'offre d'emploi disponible.\"|trans }}</p>
</div>
</div>
{% endif %}
</div>
</div>
</section>
</main>
{% endblock %}", "job/list.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/job/list.html.twig");
}
}