<?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;
/* jobOffer/show.html.twig */
class __TwigTemplate_23242ff7196d1084ce6c1625c1d5cf1c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'js' => [$this, 'block_js'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "jobOffer/content.html.twig";
}
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", "jobOffer/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "jobOffer/show.html.twig"));
$this->parent = $this->loadTemplate("jobOffer/content.html.twig", "jobOffer/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo " <div class=\"content-i\">
<div class=\"content-box\">
";
// line 7
echo " <div class=\"element-wrapper\">
<img src=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/job.png"), "html", null, true);
echo "\" alt=\"locality\" class=\"title-icon\" style=\"margin-bottom: -35px;\">
<h6 class=\"element-header\">
";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.details_of_the_offer"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 10, $this->source); })()), "id", [], "any", false, false, false, 10), "html", null, true);
echo "
";
// line 11
if ((($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "user", [], "any", false, false, false, 11), "roles", [], "any", false, false, false, 11)) == "Entreprise") || ($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "user", [], "any", false, false, false, 11), "roles", [], "any", false, false, false, 11)) == "Etablissement"))) {
// line 12
echo " <a class=\"btn btn-sm btn-primary float-right\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_new");
echo "\">
<i class=\"fa fa-plus\"></i> ";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.add_a_job_offer"), "html", null, true);
echo "
</a>
";
}
// line 17
echo " <a class=\"btn btn-sm btn-primary float-right kz_back\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_index");
echo "\">
<i class=\"fa fa-arrow-left\"></i> ";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.back_to_the_list"), "html", null, true);
echo "
</a>
";
// line 21
echo " </h6>
<div class=\"element-box jobOffer\">
<div class=\"form-group row jobOfferBanner\">
";
// line 24
$context["logo"] = twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 24, $this->source); })()), "logo", [], "any", false, false, false, 24);
// line 25
echo " ";
if (((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 25, $this->source); })()) != false)) {
// line 26
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/avatars/" . (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 26, $this->source); })()))), "html", null, true);
echo "\" alt=\"Logo entreprise\">
";
} else {
// line 28
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/pinsuprem/logo_ifef.jpg"), "html", null, true);
echo "\" alt=\"Logo ifef\">
";
}
// line 30
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.job_offer"), "html", null, true);
echo "</span>
</div>
<div class=\"form-group row jobOfferTitle\">
<h2>";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33), "html", null, true);
echo "</h2>
</div>
<div class=\"form-group row jobOfferDates\">
<p class=\"col-sm-12\">";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.published_on"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 36, $this->source); })()), "createdDate", [], "any", false, false, false, 36), "d/m/Y"), "html", null, true);
echo "</p>
";
// line 37
if ((twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 37, $this->source); })()), "updatedDate", [], "any", false, false, false, 37) > twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 37, $this->source); })()), "createdDate", [], "any", false, false, false, 37))) {
// line 38
echo " <p class=\"col-sm-12\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.updated_on"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 38, $this->source); })()), "updatedDate", [], "any", false, false, false, 38), "d/m/Y"), "html", null, true);
echo "</p>
";
}
// line 40
echo " <p class=\"col-sm-12\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.expires_on"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 40, $this->source); })()), "closedDate", [], "any", false, false, false, 40), "html", null, true);
echo "</p>
<p class=\"col-sm-12\">";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.type_of_contract"), "html", null, true);
echo " : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 41, $this->source); })()), "contract", [], "any", false, false, false, 41), "html", null, true);
echo "</p>
";
// line 42
if (twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 42, $this->source); })()), "otherCity", [], "any", false, false, false, 42)) {
// line 43
echo " <p class=\"col-sm-12\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.localization"), "html", null, true);
echo " : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 43, $this->source); })()), "country", [], "any", false, false, false, 43), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 43, $this->source); })()), "otherCity", [], "any", false, false, false, 43), "html", null, true);
echo "</p>
";
} else {
// line 45
echo " <p class=\"col-sm-12\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.localization"), "html", null, true);
echo " : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 45, $this->source); })()), "country", [], "any", false, false, false, 45), "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["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 45, $this->source); })()), "city", [], "any", false, false, false, 45), "name", [], "any", false, false, false, 45), "html", null, true);
echo "</p>
";
}
// line 47
echo " </div>
<div class=\"form-group row jobOfferCompanyName\">
";
// line 50
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 50, $this->source); })()), "company", [], "any", false, false, false, 50))) {
// line 51
echo " <a href=\"https://";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 51, $this->source); })()), "company", [], "any", false, false, false, 51), "url", [], "any", false, false, false, 51), "html", null, true);
echo "\">
<h2 class=\"col-form-label col-sm-12\">";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 52, $this->source); })()), "company", [], "any", false, false, false, 52), "name", [], "any", false, false, false, 52), "html", null, true);
echo "</h2>
</a>
";
} elseif ( !(null === twig_get_attribute($this->env, $this->source, // line 54
(isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 54, $this->source); })()), "school", [], "any", false, false, false, 54))) {
// line 55
echo " <h2 class=\"col-form-label col-sm-12\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.establishment"), "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["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 55, $this->source); })()), "school", [], "any", false, false, false, 55), "name", [], "any", false, false, false, 55), "html", null, true);
echo "</h2>
";
}
// line 57
echo " </div>
<div class=\"row\">
<fieldset class=\"col-form-label col-sm-6\">
";
// line 61
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 61, $this->source); })()), "company", [], "any", false, false, false, 61))) {
// line 62
echo " <legend>
<span>";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.description_of_the_company"), "html", null, true);
echo " </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 66, $this->source); })()), "company", [], "any", false, false, false, 66), "sectorArea", [], "any", false, false, false, 66), "html", null, true);
echo "</p>
</div>
";
} elseif ( !(null === twig_get_attribute($this->env, $this->source, // line 68
(isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 68, $this->source); })()), "school", [], "any", false, false, false, 68))) {
// line 69
echo " <legend>
<span>";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.description_of_the_school"), "html", null, true);
echo " </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">";
// line 73
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 73, $this->source); })()), "school", [], "any", false, false, false, 73), "description", [], "any", false, false, false, 73), "html", null, true);
echo "</p>
</div>
";
}
// line 76
echo " </fieldset>
<fieldset class=\"col-form-label col-sm-6\">
<legend>
<span> ";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.job_description"), "html", null, true);
echo " </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">";
// line 82
echo twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 82, $this->source); })()), "description", [], "any", false, false, false, 82);
echo "</p>
</div>
<div class=\"form-group row \">
<p>
";
// line 86
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 86, $this->source); })()), "filename", [], "any", false, false, false, 86))) {
// line 87
echo " ";
$context["filepath"] = ("uploads/brochures/" . twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 87, $this->source); })()), "filename", [], "any", false, false, false, 87));
// line 88
echo " <br>
<a href=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["filepath"]) || array_key_exists("filepath", $context) ? $context["filepath"] : (function () { throw new RuntimeError('Variable "filepath" does not exist.', 89, $this->source); })())), "html", null, true);
echo "\" download>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.description"), "html", null, true);
echo " PDF</a>
";
}
// line 91
echo " </p>
</div>
</fieldset>
</div>
<div class=\"row\">
<fieldset class=\"col-form-label col-sm-6\">
<legend>
<span>";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.candidate_profile"), "html", null, true);
echo " </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">";
// line 101
echo twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 101, $this->source); })()), "candidateProfile", [], "any", false, false, false, 101);
echo "</p>
</div>
</fieldset>
<fieldset class=\"col-form-label col-sm-6\">
<legend >
<span>";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.person_in_charge_of_recruitment"), "html", null, true);
echo " </span>
</legend>
<div class=\"form-group row \">
";
// line 109
if (twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 109, $this->source); })()), "postedContact", [], "any", false, false, false, 109)) {
// line 110
echo " <p class=\"col-sm-12\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 110, $this->source); })()), "postedContact", [], "any", false, false, false, 110), "html", null, true);
echo "</p>
";
}
// line 112
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 112, $this->source); })()), "postedPhone", [], "any", false, false, false, 112)) {
// line 113
echo " <p class=\"col-sm-12\"><i class=\"fa fa-phone\"></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 113, $this->source); })()), "postedPhone", [], "any", false, false, false, 113), "html", null, true);
echo "</p>
";
}
// line 115
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 115, $this->source); })()), "postedEmail", [], "any", false, false, false, 115)) {
// line 116
echo " <p class=\"col-sm-12\"><i class=\"fa fa-envelope\"></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 116, $this->source); })()), "postedEmail", [], "any", false, false, false, 116), "html", null, true);
echo "</p>
";
}
// line 118
echo " </div>
</fieldset>
</div>
";
// line 122
if (($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 122, $this->source); })()), "user", [], "any", false, false, false, 122), "roles", [], "any", false, false, false, 122)) == "Diplômé")) {
// line 123
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_persondegree_candidate", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123)]), "html", null, true);
echo "\" class=\"btn btn-lg btn-success\" role=\"button\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.apply"), "html", null, true);
echo "</a>
";
}
// line 126
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["jobOffer"] ?? null), "file", [], "any", false, true, false, 126), "vars", [], "any", false, true, false, 126), "data", [], "any", true, true, false, 126) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 126, $this->source); })()), "file", [], "any", false, false, false, 126), "vars", [], "any", false, false, false, 126), "data", [], "any", false, false, false, 126)))) {
// line 127
echo " <div class=\"form-group row\">
<label class=\"col-form-label col-sm-4\">Fichier</label>
<div class=\"col-sm-8\">
<img src=\"";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 130, $this->source); })()), "file", [], "any", false, false, false, 130), "path", [], "any", false, false, false, 130) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 130, $this->source); })()), "file", [], "any", false, false, false, 130), "filename", [], "any", false, false, false, 130))), "html", null, true);
echo "\" alt=\"image\" style=\"max-width: 200px; max-height: 150px;\">
</div>
</div>
";
}
// line 134
echo " ";
if (($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 134, $this->source); })()), "user", [], "any", false, false, false, 134), "roles", [], "any", false, false, false, 134)) == "Administrateur")) {
// line 135
echo " <div class=\"controls-above-table\">
<div class=\"row\" id=\"actions\">
<div class=\"col-sm-6\">
<a class=\"btn btn-sm btn-primary\" href=\"";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_edit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138)]), "html", null, true);
echo "\">
<img src=\"";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/edit_16_ba.png"), "html", null, true);
echo "\" alt=\"edit\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.edit"), "html", null, true);
echo "</a>
<button class=\"btn btn-sm btn-danger\" onclick=\"deleteElement('";
// line 140
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_delete", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["jobOffer"]) || array_key_exists("jobOffer", $context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.', 140, $this->source); })()), "id", [], "any", false, false, false, 140)]), "html", null, true);
echo "')\">
<img src=\"";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/delete_16_ba.png"), "html", null, true);
echo "\" alt=\"delete\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.delete"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
}
// line 146
echo " </div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 153
public function block_js($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(), "block", "js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
// line 154
echo " <script>
\$('#actions form').css('display', 'inline-block');
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "jobOffer/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 439 => 154, 429 => 153, 414 => 146, 404 => 141, 400 => 140, 394 => 139, 390 => 138, 385 => 135, 382 => 134, 375 => 130, 370 => 127, 367 => 126, 358 => 123, 356 => 122, 350 => 118, 344 => 116, 341 => 115, 335 => 113, 332 => 112, 326 => 110, 324 => 109, 318 => 106, 310 => 101, 304 => 98, 295 => 91, 288 => 89, 285 => 88, 282 => 87, 280 => 86, 273 => 82, 267 => 79, 262 => 76, 256 => 73, 250 => 70, 247 => 69, 245 => 68, 240 => 66, 234 => 63, 231 => 62, 229 => 61, 223 => 57, 215 => 55, 213 => 54, 208 => 52, 203 => 51, 201 => 50, 196 => 47, 186 => 45, 176 => 43, 174 => 42, 168 => 41, 161 => 40, 153 => 38, 151 => 37, 145 => 36, 139 => 33, 132 => 30, 126 => 28, 120 => 26, 117 => 25, 115 => 24, 110 => 21, 105 => 18, 100 => 17, 94 => 13, 89 => 12, 87 => 11, 81 => 10, 76 => 8, 73 => 7, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'jobOffer/content.html.twig' %}
{% block body %}
<div class=\"content-i\">
<div class=\"content-box\">
{# Tableau 1 #}
<div class=\"element-wrapper\">
<img src=\"{{ asset('build/images/icon/job.png') }}\" alt=\"locality\" class=\"title-icon\" style=\"margin-bottom: -35px;\">
<h6 class=\"element-header\">
{{ 'job.details_of_the_offer' | trans }} {{ jobOffer.id }}
{% if app.user.roles|role == \"Entreprise\" or app.user.roles|role == \"Etablissement\"%}
<a class=\"btn btn-sm btn-primary float-right\" href=\"{{ path('jobOffer_new') }}\">
<i class=\"fa fa-plus\"></i> {{ 'job.add_a_job_offer' | trans }}
</a>
{% endif %}
{# {% if app.user.roles|role == \"Administrateur\" or app.user.roles|role == \"Entreprise\"%}#}
<a class=\"btn btn-sm btn-primary float-right kz_back\" href=\"{{ path('jobOffer_index') }}\">
<i class=\"fa fa-arrow-left\"></i> {{ 'menu.back_to_the_list' | trans }}
</a>
{# {% endif %}#}
</h6>
<div class=\"element-box jobOffer\">
<div class=\"form-group row jobOfferBanner\">
{% set logo = jobOffer.logo %}
{% if logo != false %}
<img src=\"{{ asset('uploads/avatars/' ~ logo) }}\" alt=\"Logo entreprise\">
{% else %}
<img src=\"{{ asset('build/images/pinsuprem/logo_ifef.jpg') }}\" alt=\"Logo ifef\">
{% endif %}
<span>{{ 'menu.job_offer' | trans }}</span>
</div>
<div class=\"form-group row jobOfferTitle\">
<h2>{{ jobOffer.title }}</h2>
</div>
<div class=\"form-group row jobOfferDates\">
<p class=\"col-sm-12\">{{ 'job.published_on' | trans }} {{ jobOffer.createdDate|date('d/m/Y') }}</p>
{% if jobOffer.updatedDate > jobOffer.createdDate %}
<p class=\"col-sm-12\">{{ 'job.updated_on' | trans }} {{ jobOffer.updatedDate|date('d/m/Y') }}</p>
{% endif %}
<p class=\"col-sm-12\">{{ 'menu.expires_on' | trans }} {{ jobOffer.closedDate }}</p>
<p class=\"col-sm-12\">{{ 'job.type_of_contract' | trans }} : {{ jobOffer.contract }}</p>
{% if jobOffer.otherCity %}
<p class=\"col-sm-12\">{{ 'menu.localization' | trans }} : {{ jobOffer.country }}-{{ jobOffer.otherCity }}</p>
{% else %}
<p class=\"col-sm-12\">{{ 'menu.localization' | trans }} : {{ jobOffer.country }}-{{ jobOffer.city.name }}</p>
{% endif %}
</div>
<div class=\"form-group row jobOfferCompanyName\">
{% if jobOffer.company is not null %}
<a href=\"https://{{ jobOffer.company.url }}\">
<h2 class=\"col-form-label col-sm-12\">{{ jobOffer.company.name }}</h2>
</a>
{% elseif jobOffer.school is not null %}
<h2 class=\"col-form-label col-sm-12\">{{ 'menu.establishment' | trans }} - {{ jobOffer.school.name }}</h2>
{% endif %}
</div>
<div class=\"row\">
<fieldset class=\"col-form-label col-sm-6\">
{% if jobOffer.company is not null %}
<legend>
<span>{{ 'job.description_of_the_company' | trans }} </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">{{ jobOffer.company.sectorArea }}</p>
</div>
{% elseif jobOffer.school is not null %}
<legend>
<span>{{ 'job.description_of_the_school' | trans }} </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">{{ jobOffer.school.description }}</p>
</div>
{% endif %}
</fieldset>
<fieldset class=\"col-form-label col-sm-6\">
<legend>
<span> {{ 'job.job_description' | trans }} </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">{{ jobOffer.description | raw }}</p>
</div>
<div class=\"form-group row \">
<p>
{% if jobOffer.filename is not null %}
{% set filepath = 'uploads/brochures/' ~ jobOffer.filename %}
<br>
<a href=\"{{ asset(filepath) }}\" download>{{ 'menu.description' | trans }} PDF</a>
{% endif %}
</p>
</div>
</fieldset>
</div>
<div class=\"row\">
<fieldset class=\"col-form-label col-sm-6\">
<legend>
<span>{{ 'job.candidate_profile' | trans }} </span>
</legend>
<div class=\"form-group row \">
<p class=\"col-sm-12\">{{ jobOffer.candidateProfile | raw }}</p>
</div>
</fieldset>
<fieldset class=\"col-form-label col-sm-6\">
<legend >
<span>{{ 'job.person_in_charge_of_recruitment' | trans }} </span>
</legend>
<div class=\"form-group row \">
{% if jobOffer.postedContact %}
<p class=\"col-sm-12\">{{ jobOffer.postedContact }}</p>
{% endif %}
{% if jobOffer.postedPhone %}
<p class=\"col-sm-12\"><i class=\"fa fa-phone\"></i> {{ jobOffer.postedPhone }}</p>
{% endif %}
{% if jobOffer.postedEmail %}
<p class=\"col-sm-12\"><i class=\"fa fa-envelope\"></i> {{ jobOffer.postedEmail }}</p>
{% endif %}
</div>
</fieldset>
</div>
{% if app.user.roles|role == \"Diplômé\"%}
<a href=\"{{ path('front_persondegree_candidate', { 'id': jobOffer.id }) }}\" class=\"btn btn-lg btn-success\" role=\"button\">{{ 'menu.apply' | trans }}</a>
{% endif %}
{% if attribute(jobOffer.file.vars, 'data') is defined and jobOffer.file.vars.data is not empty %}
<div class=\"form-group row\">
<label class=\"col-form-label col-sm-4\">Fichier</label>
<div class=\"col-sm-8\">
<img src=\"{{ asset(jobOffer.file.path ~ '/' ~ jobOffer.file.filename) }}\" alt=\"image\" style=\"max-width: 200px; max-height: 150px;\">
</div>
</div>
{% endif %}
{% if app.user.roles|role == \"Administrateur\" %}
<div class=\"controls-above-table\">
<div class=\"row\" id=\"actions\">
<div class=\"col-sm-6\">
<a class=\"btn btn-sm btn-primary\" href=\"{{ path('jobOffer_edit', {'id': jobOffer.id}) }}\">
<img src=\"{{ asset('build/images/icon/edit_16_ba.png') }}\" alt=\"edit\"> {{ 'menu.edit' | trans }}</a>
<button class=\"btn btn-sm btn-danger\" onclick=\"deleteElement('{{ path('jobOffer_delete', {'id': jobOffer.id}) }}')\">
<img src=\"{{ asset('build/images/icon/delete_16_ba.png') }}\" alt=\"delete\">{{ 'menu.delete' | trans }}</button>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block js %}
<script>
\$('#actions form').css('display', 'inline-block');
</script>
{% endblock %}
", "jobOffer/show.html.twig", "/home/dbtechaf/public_html/DBTA/templates/jobOffer/show.html.twig");
}
}