<?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/detail.html.twig */
class __TwigTemplate_8673dc79e2fafe2804505ba1c5870edb0c6142635453d50875c2f2e4235bd8b9 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/detail.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/detail.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "job/detail.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 "
";
// line 5
$context["bgImage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 5, $this->source); })()), "getProperty", [0 => "bannerSearchImage"], "method", false, false, false, 5), "thumbnail", [0 => "full-background"], "method", false, false, false, 5), "html", [0 => ["imgAttributes" => ["uk-cover" => null, "class" => "uk-cover"]]], "method", false, false, false, 5);
// line 6
echo "<main id=\"main\" role=\"main\" class=\"apk-jobs-detail\">
<section id=\"search\">
<div class=\"apk-banner-container uk-cover-container\">
";
// line 9
if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 9, $this->source); })()), "getProperty", [0 => "bannerSearchImage"], "method", false, false, false, 9)) {
// line 10
echo " ";
echo (isset($context["bgImage"]) || array_key_exists("bgImage", $context) ? $context["bgImage"] : (function () { throw new RuntimeError('Variable "bgImage" does not exist.', 10, $this->source); })());
echo "
";
}
// line 12
echo " <div class=\"uk-container uk-position-relative uk-height-1-1 uk-position-z-index\">
<div class=\"uk-flex uk-flex-bottom uk-height-1-1\">
<div class=\"uk-container apk-container-1200\">
<form class=\"uk-light\" action=\"";
// line 15
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search");
echo "\" method=\"GET\">
<div class=\"uk-grid-small uk-flex uk-flex-middle uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<input class=\"uk-input\" type=\"text\" name=\"search\" id=\"search\" placeholder=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Adresse, ville ou code postal"), "html", null, true);
echo "\">
</div>
<div class=\"uk-width-auto@s uk-flex uk-flex-center\">
<button class=\"uk-button uk-button-large uk-button-primary uk-flex uk-flex-center uk-flex-middle\" type=\"submit\" id=\"\" value=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recherche"), "html", null, true);
echo "\">
<span>";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rechercher"), "html", null, true);
echo "</span>
<img class=\"uk-margin-small-left\" uk-svg width=\"25\" height=\"25\" src=\"/static/img/icons/zoom.svg\" alt=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recherche"), "html", null, true);
echo "\">
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<section id=\"job\" class=\"apk-jobs-detail-container\">
<div class=\"uk-container apk-container-1200\">
<div class=\"uk-grid-medium uk-grid\" uk-grid>
<div class=\"uk-width-3-4@m\">
<h1 class=\"uk-h2 uk-margin-remove-bottom\">";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 37, $this->source); })()), "getTitle", [], "method", false, false, false, 37), "html", null, true);
echo "</h1>
<span class=\"apk-text-smaller\">";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38), "html", null, true);
echo " • ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 38, $this->source); })()), "contract", [], "any", false, false, false, 38), "html", null, true);
echo " • ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 38, $this->source); })()), "address", [], "any", false, false, false, 38), "zip", [], "any", false, false, false, 38), "html", null, true);
echo " • ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 38, $this->source); })()), "address", [], "any", false, false, false, 38), "city", [], "any", false, false, false, 38), "html", null, true);
echo "</span>
";
// line 39
if (twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 39, $this->source); })()), "description", [], "any", false, false, false, 39)) {
// line 40
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 40, $this->source); })()), "description", [], "any", false, false, false, 40);
echo "
";
} else {
// line 42
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Acune description n'est disponible pour cette offre d'emploi"), "html", null, true);
echo "</p>
";
}
// line 44
echo " </div>
<div class=\"uk-width-1-4@m\">
<div class=\"apk-jobs-detail-aside\">
<h2 class=\"uk-h3\">";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Plus à propos de ce lieu"), "html", null, true);
echo "</h2>
<div class=\"apk-media\">
";
// line 50
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 50, $this->source); })()), "image", [], "any", false, false, false, 50), "getThumbnail", [0 => "news-thumb"], "method", false, false, false, 50), "html", [], "method", false, false, false, 50);
echo "
</div>
<div class=\"apk-title\">
<span class=\"uk-h3\">";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 53, $this->source); })()), "name", [], "any", false, false, false, 53), "html", null, true);
echo "</span>
</div>
<span class=\"apk-location\">";
// line 55
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 55, $this->source); })()), "address", [], "any", false, false, false, 55), "street", [], "any", false, false, false, 55), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 55, $this->source); })()), "address", [], "any", false, false, false, 55), "zip", [], "any", false, false, false, 55), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 55, $this->source); })()), "address", [], "any", false, false, false, 55), "city", [], "any", false, false, false, 55), "html", null, true);
echo "</span>
<div class=\"apk-description\">
";
// line 57
echo twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 57, $this->source); })()), "presentation", [], "any", false, false, false, 57);
echo "
</div>
<div class=\"apk-services\">
";
// line 60
if (twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 60, $this->source); })()), "services", [], "any", false, false, false, 60)) {
// line 61
echo " <ul class=\"uk-list apk-list-inline apk-services uk-margin-remove\">
";
// line 62
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 62, $this->source); })()), "services", [], "any", false, false, false, 62));
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 63
echo " <li class=\"uk-text-center\">
<div class=\"apk-services-container uk-flex uk-flex-middle uk-flex-center\" uk-tooltip=\"";
// line 64
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "getName", [], "method", false, false, false, 64), "html", null, true);
echo "\">
<img uk-svg width=\"20\" heigh=\"20\" src=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["service"], "getImage", [], "method", false, false, false, 65), "getFullPath", [], "method", false, false, false, 65), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "getName", [], "method", false, false, false, 65), "html", null, true);
echo "\">
</div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
echo " </ul>
";
} else {
// line 70
echo "
";
// line 71
echo "Aucune information sur les services";
echo "
";
}
// line 73
echo " </div>
<div class=\"apk-action uk-flex uk-flex-right@m uk-flex-center\">
<a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase uk-button-primary\"
href=\"";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("business_detail", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 77, $this->source); })()), "slug", [], "any", false, false, false, 77)]), "html", null, true);
echo "\">
<div class=\"uk-width-expand\">
";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Voir la fiche"), "html", null, true);
echo "
</div>
<div class=\"uk-width-auto\">
<img class=\"uk-margin-small-left\" uk-svg width=\"12\" height=\"18\" src=\"/static/img/pictos/double_arrow.svg\" alt=\"";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("arrow"), "html", null, true);
echo "\">
</div>
</a>
</div>
</div>
</div>
</div>
";
// line 111
echo " </div>
</section>
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "job/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 261 => 111, 250 => 82, 244 => 79, 239 => 77, 233 => 73, 228 => 71, 225 => 70, 221 => 69, 209 => 65, 205 => 64, 202 => 63, 198 => 62, 195 => 61, 193 => 60, 187 => 57, 178 => 55, 173 => 53, 167 => 50, 162 => 48, 156 => 44, 150 => 42, 144 => 40, 142 => 39, 132 => 38, 128 => 37, 111 => 23, 107 => 22, 103 => 21, 97 => 18, 91 => 15, 86 => 12, 80 => 10, 78 => 9, 73 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
{% set bgImage = document.getProperty('bannerSearchImage').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null, 'class' : 'uk-cover' }}) %}
<main id=\"main\" role=\"main\" class=\"apk-jobs-detail\">
<section id=\"search\">
<div class=\"apk-banner-container uk-cover-container\">
{% if document.getProperty('bannerSearchImage') %}
{{ bgImage|raw }}
{% endif %}
<div class=\"uk-container uk-position-relative uk-height-1-1 uk-position-z-index\">
<div class=\"uk-flex uk-flex-bottom uk-height-1-1\">
<div class=\"uk-container apk-container-1200\">
<form class=\"uk-light\" action=\"{{path('search')}}\" method=\"GET\">
<div class=\"uk-grid-small uk-flex uk-flex-middle uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<input class=\"uk-input\" type=\"text\" name=\"search\" id=\"search\" placeholder=\"{{'Adresse, ville ou code postal' |trans}}\">
</div>
<div class=\"uk-width-auto@s uk-flex uk-flex-center\">
<button class=\"uk-button uk-button-large uk-button-primary uk-flex uk-flex-center uk-flex-middle\" type=\"submit\" id=\"\" value=\"{{'Recherche'|trans}}\">
<span>{{'Rechercher'|trans}}</span>
<img class=\"uk-margin-small-left\" uk-svg width=\"25\" height=\"25\" src=\"/static/img/icons/zoom.svg\" alt=\"{{'Recherche' | trans}}\">
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<section id=\"job\" class=\"apk-jobs-detail-container\">
<div class=\"uk-container apk-container-1200\">
<div class=\"uk-grid-medium uk-grid\" uk-grid>
<div class=\"uk-width-3-4@m\">
<h1 class=\"uk-h2 uk-margin-remove-bottom\">{{job.getTitle()}}</h1>
<span class=\"apk-text-smaller\">{{business.name}} • {{job.contract}} • {{business.address.zip}} • {{business.address.city}}</span>
{% if job.description %}
{{job.description|raw}}
{% else %}
<p>{{ \"Acune description n'est disponible pour cette offre d'emploi\"|trans }}</p>
{% endif %}
</div>
<div class=\"uk-width-1-4@m\">
<div class=\"apk-jobs-detail-aside\">
<h2 class=\"uk-h3\">{{ \"Plus à propos de ce lieu\"|trans }}</h2>
<div class=\"apk-media\">
{{ business.image.getThumbnail('news-thumb').html()|raw }}
</div>
<div class=\"apk-title\">
<span class=\"uk-h3\">{{ business.name }}</span>
</div>
<span class=\"apk-location\">{{ business.address.street }} - {{ business.address.zip }} {{ business.address.city }}</span>
<div class=\"apk-description\">
{{ business.presentation|raw }}
</div>
<div class=\"apk-services\">
{% if business.services %}
<ul class=\"uk-list apk-list-inline apk-services uk-margin-remove\">
{% for service in business.services %}
<li class=\"uk-text-center\">
<div class=\"apk-services-container uk-flex uk-flex-middle uk-flex-center\" uk-tooltip=\"{{ service.getName() }}\">
<img uk-svg width=\"20\" heigh=\"20\" src=\"{{ service.getImage().getFullPath() }}\" alt=\"{{ service.getName() }}\">
</div>
</li>
{% endfor %}
</ul>
{% else %}
{{ \"Aucune information sur les services\" }}
{% endif %}
</div>
<div class=\"apk-action uk-flex uk-flex-right@m uk-flex-center\">
<a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase uk-button-primary\"
href=\"{{path('business_detail', {'slug' : business.slug})}}\">
<div class=\"uk-width-expand\">
{{'Voir la fiche'|trans}}
</div>
<div class=\"uk-width-auto\">
<img class=\"uk-margin-small-left\" uk-svg width=\"12\" height=\"18\" src=\"/static/img/pictos/double_arrow.svg\" alt=\"{{ \"arrow\"|trans }}\">
</div>
</a>
</div>
</div>
</div>
</div>
{#
<form action=\"{{path('jobApply', {'id': job.id})}}\" method=\"post\">
<div>
<label for=\"name\">{{'Nom'|trans}}</label>
<input type=\"text\" name=\"name\" id=\"name\">
</div>
<div>
<label for=\"phone\">{{'Téléphone'|trans}}</label>
<input type=\"phone\" name=\"phone\" id=\"phone\">
</div>
<div>
<label for=\"email\">{{'Email'|trans}}</label>
<input type=\"email\" name=\"email\" id=\"email\">
</div>
<div>
<label for=\"message\">{{'Message'}}</label>
<textarea name=\"message\" id=\"message\" cols=\"30\" rows=\"10\"></textarea>
</div>
<input type=\"submit\" value=\"{{'Postuler'|trans}}\">
</form>
#}
</div>
</section>
</main>
{% endblock %}", "job/detail.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/job/detail.html.twig");
}
}