var/cache/dev/twig/81/813bf8778a665765fc9cf61ff32b8c99.php line 49

Open in your IDE?
  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. /* jobOffer/show.html.twig */
  14. class __TwigTemplate_23242ff7196d1084ce6c1625c1d5cf1c 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->blocks = [
  23.             'body' => [$this'block_body'],
  24.             'js' => [$this'block_js'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "jobOffer/content.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""jobOffer/show.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""jobOffer/show.html.twig"));
  39.         $this->parent $this->loadTemplate("jobOffer/content.html.twig""jobOffer/show.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 4
  55.         echo "    <div class=\"content-i\">
  56.         <div class=\"content-box\">
  57.             ";
  58.         // line 7
  59.         echo "            <div class=\"element-wrapper\">
  60.                 <img src=\"";
  61.         // line 8
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/job.png"), "html"nulltrue);
  63.         echo "\" alt=\"locality\" class=\"title-icon\" style=\"margin-bottom: -35px;\">
  64.                 <h6 class=\"element-header\">
  65.                     ";
  66.         // line 10
  67.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.details_of_the_offer"), "html"nulltrue);
  68.         echo "  ";
  69.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  70.         echo "
  71.                     ";
  72.         // line 11
  73.         if ((($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse11), "roles", [], "any"falsefalsefalse11)) == "Entreprise") || ($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse11), "roles", [], "any"falsefalsefalse11)) == "Etablissement"))) {
  74.             // line 12
  75.             echo "                        <a class=\"btn btn-sm btn-primary float-right\" href=\"";
  76.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_new");
  77.             echo "\">
  78.                             <i class=\"fa fa-plus\"></i> ";
  79.             // line 13
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.add_a_job_offer"), "html"nulltrue);
  81.             echo "
  82.                         </a>
  83.                     ";
  84.         }
  85.         // line 17
  86.         echo "                        <a class=\"btn btn-sm btn-primary float-right kz_back\" href=\"";
  87.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobOffer_index");
  88.         echo "\">
  89.                             <i class=\"fa fa-arrow-left\"></i> ";
  90.         // line 18
  91.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.back_to_the_list"), "html"nulltrue);
  92.         echo "
  93.                         </a>
  94. ";
  95.         // line 21
  96.         echo "                </h6>
  97.                 <div class=\"element-box jobOffer\">
  98.                     <div class=\"form-group row jobOfferBanner\">
  99.                         ";
  100.         // line 24
  101.         $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"falsefalsefalse24);
  102.         // line 25
  103.         echo "                        ";
  104.         if (((isset($context["logo"]) || array_key_exists("logo"$context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.'25$this->source); })()) != false)) {
  105.             // line 26
  106.             echo "                            <img src=\"";
  107.             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"nulltrue);
  108.             echo "\" alt=\"Logo entreprise\">
  109.                         ";
  110.         } else {
  111.             // line 28
  112.             echo "                            <img src=\"";
  113.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/pinsuprem/logo_ifef.jpg"), "html"nulltrue);
  114.             echo "\" alt=\"Logo ifef\">
  115.                         ";
  116.         }
  117.         // line 30
  118.         echo "                        <span>";
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.job_offer"), "html"nulltrue);
  120.         echo "</span>
  121.                     </div>
  122.                     <div class=\"form-group row jobOfferTitle\">
  123.                         <h2>";
  124.         // line 33
  125.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  126.         echo "</h2>
  127.                     </div>
  128.                     <div class=\"form-group row jobOfferDates\">
  129.                         <p class=\"col-sm-12\">";
  130.         // line 36
  131.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.published_on"), "html"nulltrue);
  132.         echo "  ";
  133.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse36), "d/m/Y"), "html"nulltrue);
  134.         echo "</p>
  135.                         ";
  136.         // line 37
  137.         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"falsefalsefalse37) > 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"falsefalsefalse37))) {
  138.             // line 38
  139.             echo "                            <p class=\"col-sm-12\">";
  140.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.updated_on"), "html"nulltrue);
  141.             echo "  ";
  142.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse38), "d/m/Y"), "html"nulltrue);
  143.             echo "</p>
  144.                         ";
  145.         }
  146.         // line 40
  147.         echo "                        <p class=\"col-sm-12\">";
  148.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.expires_on"), "html"nulltrue);
  149.         echo " ";
  150.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse40), "html"nulltrue);
  151.         echo "</p>
  152.                         <p class=\"col-sm-12\">";
  153.         // line 41
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.type_of_contract"), "html"nulltrue);
  155.         echo " : ";
  156.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse41), "html"nulltrue);
  157.         echo "</p>
  158.                         ";
  159.         // line 42
  160.         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"falsefalsefalse42)) {
  161.             // line 43
  162.             echo "                            <p class=\"col-sm-12\">";
  163.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.localization"), "html"nulltrue);
  164.             echo " : ";
  165.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse43), "html"nulltrue);
  166.             echo "-";
  167.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse43), "html"nulltrue);
  168.             echo "</p>
  169.                         ";
  170.         } else {
  171.             // line 45
  172.             echo "                            <p class=\"col-sm-12\">";
  173.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.localization"), "html"nulltrue);
  174.             echo " : ";
  175.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse45), "html"nulltrue);
  176.             echo "-";
  177.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse45), "name", [], "any"falsefalsefalse45), "html"nulltrue);
  178.             echo "</p>
  179.                         ";
  180.         }
  181.         // line 47
  182.         echo "                    </div>
  183.                     <div class=\"form-group row jobOfferCompanyName\">
  184.                         ";
  185.         // line 50
  186.         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"falsefalsefalse50))) {
  187.             // line 51
  188.             echo "                            <a href=\"https://";
  189.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse51), "url", [], "any"falsefalsefalse51), "html"nulltrue);
  190.             echo "\">
  191.                                 <h2 class=\"col-form-label col-sm-12\">";
  192.             // line 52
  193.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "name", [], "any"falsefalsefalse52), "html"nulltrue);
  194.             echo "</h2>
  195.                             </a>
  196.                         ";
  197.         } elseif ( !(null === twig_get_attribute($this->env$this->source,         // line 54
  198. (isset($context["jobOffer"]) || array_key_exists("jobOffer"$context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.'54$this->source); })()), "school", [], "any"falsefalsefalse54))) {
  199.             // line 55
  200.             echo "                            <h2 class=\"col-form-label col-sm-12\">";
  201.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.establishment"), "html"nulltrue);
  202.             echo " - ";
  203.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse55), "name", [], "any"falsefalsefalse55), "html"nulltrue);
  204.             echo "</h2>
  205.                         ";
  206.         }
  207.         // line 57
  208.         echo "                    </div>
  209.                     <div class=\"row\">
  210.                         <fieldset class=\"col-form-label col-sm-6\">
  211.                             ";
  212.         // line 61
  213.         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"falsefalsefalse61))) {
  214.             // line 62
  215.             echo "                                <legend>
  216.                                     <span>";
  217.             // line 63
  218.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.description_of_the_company"), "html"nulltrue);
  219.             echo " </span>
  220.                                 </legend>
  221.                                 <div class=\"form-group row \">
  222.                                     <p class=\"col-sm-12\">";
  223.             // line 66
  224.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse66), "sectorArea", [], "any"falsefalsefalse66), "html"nulltrue);
  225.             echo "</p>
  226.                                 </div>
  227.                             ";
  228.         } elseif ( !(null === twig_get_attribute($this->env$this->source,         // line 68
  229. (isset($context["jobOffer"]) || array_key_exists("jobOffer"$context) ? $context["jobOffer"] : (function () { throw new RuntimeError('Variable "jobOffer" does not exist.'68$this->source); })()), "school", [], "any"falsefalsefalse68))) {
  230.             // line 69
  231.             echo "                                <legend>
  232.                                     <span>";
  233.             // line 70
  234.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.description_of_the_school"), "html"nulltrue);
  235.             echo " </span>
  236.                                 </legend>
  237.                                 <div class=\"form-group row \">
  238.                                     <p class=\"col-sm-12\">";
  239.             // line 73
  240.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse73), "description", [], "any"falsefalsefalse73), "html"nulltrue);
  241.             echo "</p>
  242.                                 </div>
  243.                             ";
  244.         }
  245.         // line 76
  246.         echo "                        </fieldset>
  247.                         <fieldset class=\"col-form-label col-sm-6\">
  248.                             <legend>
  249.                                 <span> ";
  250.         // line 79
  251.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.job_description"), "html"nulltrue);
  252.         echo "  </span>
  253.                             </legend>
  254.                             <div class=\"form-group row \">
  255.                                 <p class=\"col-sm-12\">";
  256.         // line 82
  257.         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"falsefalsefalse82);
  258.         echo "</p>
  259.                             </div>
  260.                             <div class=\"form-group row \">
  261.                                 <p>
  262.                                     ";
  263.         // line 86
  264.         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"falsefalsefalse86))) {
  265.             // line 87
  266.             echo "                                        ";
  267.             $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"falsefalsefalse87));
  268.             // line 88
  269.             echo "                                        <br>
  270.                                         <a href=\"";
  271.             // line 89
  272.             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"nulltrue);
  273.             echo "\" download>";
  274.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.description"), "html"nulltrue);
  275.             echo " PDF</a>
  276.                                     ";
  277.         }
  278.         // line 91
  279.         echo "                                </p>
  280.                             </div>
  281.                         </fieldset>
  282.                     </div>
  283.                     <div class=\"row\">
  284.                         <fieldset class=\"col-form-label col-sm-6\">
  285.                             <legend>
  286.                                 <span>";
  287.         // line 98
  288.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.candidate_profile"), "html"nulltrue);
  289.         echo " </span>
  290.                             </legend>
  291.                             <div class=\"form-group row \">
  292.                                 <p class=\"col-sm-12\">";
  293.         // line 101
  294.         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"falsefalsefalse101);
  295.         echo "</p>
  296.                             </div>
  297.                         </fieldset>
  298.                         <fieldset class=\"col-form-label col-sm-6\">
  299.                             <legend >
  300.                                 <span>";
  301.         // line 106
  302.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("job.person_in_charge_of_recruitment"), "html"nulltrue);
  303.         echo " </span>
  304.                             </legend>
  305.                             <div class=\"form-group row \">
  306.                                 ";
  307.         // line 109
  308.         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"falsefalsefalse109)) {
  309.             // line 110
  310.             echo "                                    <p class=\"col-sm-12\">";
  311.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse110), "html"nulltrue);
  312.             echo "</p>
  313.                                 ";
  314.         }
  315.         // line 112
  316.         echo "                                ";
  317.         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"falsefalsefalse112)) {
  318.             // line 113
  319.             echo "                                    <p class=\"col-sm-12\"><i class=\"fa fa-phone\"></i>    ";
  320.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse113), "html"nulltrue);
  321.             echo "</p>
  322.                                 ";
  323.         }
  324.         // line 115
  325.         echo "                                ";
  326.         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"falsefalsefalse115)) {
  327.             // line 116
  328.             echo "                                    <p class=\"col-sm-12\"><i class=\"fa fa-envelope\"></i>   ";
  329.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse116), "html"nulltrue);
  330.             echo "</p>
  331.                                 ";
  332.         }
  333.         // line 118
  334.         echo "                            </div>
  335.                         </fieldset>
  336.                     </div>
  337.                     ";
  338.         // line 122
  339.         if (($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse122), "roles", [], "any"falsefalsefalse122)) == "Diplômé")) {
  340.             // line 123
  341.             echo "                        <a href=\"";
  342.             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"falsefalsefalse123)]), "html"nulltrue);
  343.             echo "\" class=\"btn btn-lg btn-success\" role=\"button\">";
  344.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.apply"), "html"nulltrue);
  345.             echo "</a>
  346.                     ";
  347.         }
  348.         // line 126
  349.         echo "                    ";
  350.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["jobOffer"] ?? null), "file", [], "any"falsetruefalse126), "vars", [], "any"falsetruefalse126), "data", [], "any"truetruefalse126) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse126), "vars", [], "any"falsefalsefalse126), "data", [], "any"falsefalsefalse126)))) {
  351.             // line 127
  352.             echo "                        <div class=\"form-group row\">
  353.                             <label class=\"col-form-label col-sm-4\">Fichier</label>
  354.                             <div class=\"col-sm-8\">
  355.                                 <img src=\"";
  356.             // line 130
  357.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse130), "path", [], "any"falsefalsefalse130) . "/") . twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse130), "filename", [], "any"falsefalsefalse130))), "html"nulltrue);
  358.             echo "\" alt=\"image\" style=\"max-width: 200px; max-height: 150px;\">
  359.                             </div>
  360.                         </div>
  361.                     ";
  362.         }
  363.         // line 134
  364.         echo "                    ";
  365.         if (($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse134), "roles", [], "any"falsefalsefalse134)) == "Administrateur")) {
  366.             // line 135
  367.             echo "                        <div class=\"controls-above-table\">
  368.                             <div class=\"row\" id=\"actions\">
  369.                                 <div class=\"col-sm-6\">
  370.                                     <a class=\"btn btn-sm btn-primary\" href=\"";
  371.             // line 138
  372.             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"falsefalsefalse138)]), "html"nulltrue);
  373.             echo "\">
  374.                                         <img src=\"";
  375.             // line 139
  376.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/edit_16_ba.png"), "html"nulltrue);
  377.             echo "\" alt=\"edit\"> ";
  378.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.edit"), "html"nulltrue);
  379.             echo "</a>
  380.                                     <button class=\"btn btn-sm btn-danger\" onclick=\"deleteElement('";
  381.             // line 140
  382.             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"falsefalsefalse140)]), "html"nulltrue);
  383.             echo "')\">
  384.                                         <img src=\"";
  385.             // line 141
  386.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icon/delete_16_ba.png"), "html"nulltrue);
  387.             echo "\" alt=\"delete\">";
  388.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.delete"), "html"nulltrue);
  389.             echo "</button>
  390.                                 </div>
  391.                             </div>
  392.                         </div>
  393.                     ";
  394.         }
  395.         // line 146
  396.         echo "                </div>
  397.             </div>
  398.         </div>
  399.     </div>
  400. ";
  401.         
  402.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  403.         
  404.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  405.     }
  406.     // line 153
  407.     public function block_js($context, array $blocks = [])
  408.     {
  409.         $macros $this->macros;
  410.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  411.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  412.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  413.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  414.         // line 154
  415.         echo "    <script>
  416.         \$('#actions form').css('display', 'inline-block');
  417.     </script>
  418. ";
  419.         
  420.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  421.         
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  423.     }
  424.     public function getTemplateName()
  425.     {
  426.         return "jobOffer/show.html.twig";
  427.     }
  428.     public function isTraitable()
  429.     {
  430.         return false;
  431.     }
  432.     public function getDebugInfo()
  433.     {
  434.         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,);
  435.     }
  436.     public function getSourceContext()
  437.     {
  438.         return new Source("{% extends 'jobOffer/content.html.twig' %}
  439. {% block body %}
  440.     <div class=\"content-i\">
  441.         <div class=\"content-box\">
  442.             {# Tableau 1 #}
  443.             <div class=\"element-wrapper\">
  444.                 <img src=\"{{ asset('build/images/icon/job.png') }}\" alt=\"locality\" class=\"title-icon\" style=\"margin-bottom: -35px;\">
  445.                 <h6 class=\"element-header\">
  446.                     {{ 'job.details_of_the_offer' | trans }}  {{ jobOffer.id }}
  447.                     {%  if app.user.roles|role == \"Entreprise\" or app.user.roles|role == \"Etablissement\"%}
  448.                         <a class=\"btn btn-sm btn-primary float-right\" href=\"{{ path('jobOffer_new') }}\">
  449.                             <i class=\"fa fa-plus\"></i> {{ 'job.add_a_job_offer' | trans }}
  450.                         </a>
  451.                     {% endif %}
  452. {#                    {%  if app.user.roles|role == \"Administrateur\" or app.user.roles|role == \"Entreprise\"%}#}
  453.                         <a class=\"btn btn-sm btn-primary float-right kz_back\" href=\"{{ path('jobOffer_index') }}\">
  454.                             <i class=\"fa fa-arrow-left\"></i> {{ 'menu.back_to_the_list' | trans }}
  455.                         </a>
  456. {#                    {% endif %}#}
  457.                 </h6>
  458.                 <div class=\"element-box jobOffer\">
  459.                     <div class=\"form-group row jobOfferBanner\">
  460.                         {% set logo = jobOffer.logo %}
  461.                         {% if logo != false %}
  462.                             <img src=\"{{ asset('uploads/avatars/' ~ logo) }}\" alt=\"Logo entreprise\">
  463.                         {%  else %}
  464.                             <img src=\"{{ asset('build/images/pinsuprem/logo_ifef.jpg') }}\" alt=\"Logo ifef\">
  465.                         {% endif %}
  466.                         <span>{{ 'menu.job_offer' | trans }}</span>
  467.                     </div>
  468.                     <div class=\"form-group row jobOfferTitle\">
  469.                         <h2>{{ jobOffer.title }}</h2>
  470.                     </div>
  471.                     <div class=\"form-group row jobOfferDates\">
  472.                         <p class=\"col-sm-12\">{{ 'job.published_on' | trans }}  {{ jobOffer.createdDate|date('d/m/Y') }}</p>
  473.                         {%  if jobOffer.updatedDate > jobOffer.createdDate %}
  474.                             <p class=\"col-sm-12\">{{ 'job.updated_on' | trans }}  {{ jobOffer.updatedDate|date('d/m/Y') }}</p>
  475.                         {% endif %}
  476.                         <p class=\"col-sm-12\">{{ 'menu.expires_on' | trans }} {{ jobOffer.closedDate }}</p>
  477.                         <p class=\"col-sm-12\">{{ 'job.type_of_contract' | trans }} : {{ jobOffer.contract }}</p>
  478.                         {% if jobOffer.otherCity %}
  479.                             <p class=\"col-sm-12\">{{ 'menu.localization' | trans }} : {{ jobOffer.country }}-{{ jobOffer.otherCity }}</p>
  480.                         {% else %}
  481.                             <p class=\"col-sm-12\">{{ 'menu.localization' | trans }} : {{ jobOffer.country }}-{{ jobOffer.city.name }}</p>
  482.                         {% endif %}
  483.                     </div>
  484.                     <div class=\"form-group row jobOfferCompanyName\">
  485.                         {% if jobOffer.company is not null %}
  486.                             <a href=\"https://{{ jobOffer.company.url }}\">
  487.                                 <h2 class=\"col-form-label col-sm-12\">{{ jobOffer.company.name }}</h2>
  488.                             </a>
  489.                         {% elseif jobOffer.school is not null %}
  490.                             <h2 class=\"col-form-label col-sm-12\">{{ 'menu.establishment' | trans }} - {{ jobOffer.school.name }}</h2>
  491.                         {% endif %}
  492.                     </div>
  493.                     <div class=\"row\">
  494.                         <fieldset class=\"col-form-label col-sm-6\">
  495.                             {% if jobOffer.company is not null %}
  496.                                 <legend>
  497.                                     <span>{{ 'job.description_of_the_company' | trans }} </span>
  498.                                 </legend>
  499.                                 <div class=\"form-group row \">
  500.                                     <p class=\"col-sm-12\">{{ jobOffer.company.sectorArea }}</p>
  501.                                 </div>
  502.                             {% elseif jobOffer.school is not null %}
  503.                                 <legend>
  504.                                     <span>{{ 'job.description_of_the_school' | trans }} </span>
  505.                                 </legend>
  506.                                 <div class=\"form-group row \">
  507.                                     <p class=\"col-sm-12\">{{ jobOffer.school.description }}</p>
  508.                                 </div>
  509.                             {% endif %}
  510.                         </fieldset>
  511.                         <fieldset class=\"col-form-label col-sm-6\">
  512.                             <legend>
  513.                                 <span> {{ 'job.job_description' | trans }}  </span>
  514.                             </legend>
  515.                             <div class=\"form-group row \">
  516.                                 <p class=\"col-sm-12\">{{  jobOffer.description | raw }}</p>
  517.                             </div>
  518.                             <div class=\"form-group row \">
  519.                                 <p>
  520.                                     {% if jobOffer.filename is not null %}
  521.                                         {% set filepath = 'uploads/brochures/'  ~ jobOffer.filename %}
  522.                                         <br>
  523.                                         <a href=\"{{ asset(filepath) }}\" download>{{ 'menu.description' | trans }} PDF</a>
  524.                                     {% endif %}
  525.                                 </p>
  526.                             </div>
  527.                         </fieldset>
  528.                     </div>
  529.                     <div class=\"row\">
  530.                         <fieldset class=\"col-form-label col-sm-6\">
  531.                             <legend>
  532.                                 <span>{{ 'job.candidate_profile' | trans }} </span>
  533.                             </legend>
  534.                             <div class=\"form-group row \">
  535.                                 <p class=\"col-sm-12\">{{ jobOffer.candidateProfile | raw }}</p>
  536.                             </div>
  537.                         </fieldset>
  538.                         <fieldset class=\"col-form-label col-sm-6\">
  539.                             <legend >
  540.                                 <span>{{ 'job.person_in_charge_of_recruitment' | trans }} </span>
  541.                             </legend>
  542.                             <div class=\"form-group row \">
  543.                                 {% if jobOffer.postedContact %}
  544.                                     <p class=\"col-sm-12\">{{ jobOffer.postedContact }}</p>
  545.                                 {% endif %}
  546.                                 {% if jobOffer.postedPhone %}
  547.                                     <p class=\"col-sm-12\"><i class=\"fa fa-phone\"></i>    {{ jobOffer.postedPhone }}</p>
  548.                                 {% endif %}
  549.                                 {% if jobOffer.postedEmail %}
  550.                                     <p class=\"col-sm-12\"><i class=\"fa fa-envelope\"></i>   {{ jobOffer.postedEmail }}</p>
  551.                                 {% endif %}
  552.                             </div>
  553.                         </fieldset>
  554.                     </div>
  555.                     {%  if app.user.roles|role == \"Diplômé\"%}
  556.                         <a href=\"{{ path('front_persondegree_candidate', { 'id': jobOffer.id }) }}\" class=\"btn btn-lg btn-success\" role=\"button\">{{ 'menu.apply' | trans }}</a>
  557.                     {% endif %}
  558.                     {% if attribute(jobOffer.file.vars, 'data') is defined and jobOffer.file.vars.data is not empty %}
  559.                         <div class=\"form-group row\">
  560.                             <label class=\"col-form-label col-sm-4\">Fichier</label>
  561.                             <div class=\"col-sm-8\">
  562.                                 <img src=\"{{ asset(jobOffer.file.path ~ '/' ~ jobOffer.file.filename) }}\" alt=\"image\" style=\"max-width: 200px; max-height: 150px;\">
  563.                             </div>
  564.                         </div>
  565.                     {% endif %}
  566.                     {%  if app.user.roles|role == \"Administrateur\" %}
  567.                         <div class=\"controls-above-table\">
  568.                             <div class=\"row\" id=\"actions\">
  569.                                 <div class=\"col-sm-6\">
  570.                                     <a class=\"btn btn-sm btn-primary\" href=\"{{ path('jobOffer_edit', {'id': jobOffer.id}) }}\">
  571.                                         <img src=\"{{ asset('build/images/icon/edit_16_ba.png') }}\" alt=\"edit\"> {{ 'menu.edit' | trans }}</a>
  572.                                     <button class=\"btn btn-sm btn-danger\" onclick=\"deleteElement('{{ path('jobOffer_delete', {'id': jobOffer.id}) }}')\">
  573.                                         <img src=\"{{ asset('build/images/icon/delete_16_ba.png') }}\" alt=\"delete\">{{ 'menu.delete' | trans }}</button>
  574.                                 </div>
  575.                             </div>
  576.                         </div>
  577.                     {% endif %}
  578.                 </div>
  579.             </div>
  580.         </div>
  581.     </div>
  582. {% endblock %}
  583. {% block js %}
  584.     <script>
  585.         \$('#actions form').css('display', 'inline-block');
  586.     </script>
  587. {% endblock %}
  588. ""jobOffer/show.html.twig""/home/dbtechaf/public_html/DBTA/templates/jobOffer/show.html.twig");
  589.     }
  590. }