var/cache/dev/twig/9d/9d3126828520201e4c3caf0224d7f90469426a7358edce24e12d73d56c4ad2bf.php line 48

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. /* job/list.html.twig */
  14. class __TwigTemplate_b61516c31ae0216925b673204a1c941fbbb6890e7d0296f747820e75065ba9e1 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.             'content' => [$this, 'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "job/list.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "job/list.html.twig"));
  38.         $this->parent = $this->loadTemplate("layout.html.twig", "job/list.html.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros = $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         // line 4
  54.         echo "<main id=\"main\" role=\"main\">
  55.     <section id=\"pro-jobs\" class=\"apk-jobs\">
  56.         <div class=\"uk-container\">
  57.             <div class=\"main-content\">
  58.                 <h1 class=\"uk-h2 apk-underlined\">";
  59.         // line 8
  60.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Les offres d'emplois"), "html", null, true);
  61.         echo "</h1>
  62.                 <div class=\"uk-margin-medium-top\">
  63.                     <ul class=\"uk-list uk-padding-remove uk-margin-remove \">
  64.                         ";
  65.         // line 11
  66.         $context["j"] = 0;
  67.         // line 12
  68.         echo "                        ";
  69.         $context['_parent'] = $context;
  70.         $context['_seq'] = twig_ensure_traversable((isset($context["jobs"]) || array_key_exists("jobs", $context) ? $context["jobs"] : (function () { throw new RuntimeError('Variable "jobs" does not exist.', 12, $this->source); })()));
  71.         foreach ($context['_seq'] as $context["_key"] => $context["job"]) {
  72.             // line 13
  73.             echo "                            <li class=\"uk-margin-top\">
  74.                                 <div class=\"apk-rounded-box\">
  75.                                     <div class=\"uk-grid-small uk-margin-bottom uk-grid\" uk-grid>
  76.                                         <div class=\"uk-width-expand@s\">
  77.                                             <span class=\"uk-text-bold big\">";
  78.             // line 17
  79.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["job"], "getTitle", [], "method", false, false, false, 17), "html", null, true);
  80.             echo "</span> ";
  81.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("chez"), "html", null, true);
  82.             echo " <span>";
  83.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["businesses"]) || array_key_exists("businesses", $context) ? $context["businesses"] : (function () { throw new RuntimeError('Variable "businesses" does not exist.', 17, $this->source); })()), (isset($context["j"]) || array_key_exists("j", $context) ? $context["j"] : (function () { throw new RuntimeError('Variable "j" does not exist.', 17, $this->source); })()), [], "array", false, false, false, 17), "getName", [], "method", false, false, false, 17), "html", null, true);
  84.             echo "</span>
  85.                                             <p class=\"uk-margin-remove-top\"><i>";
  86.             // line 18
  87.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["job"], "getContract", [], "method", false, false, false, 18), "html", null, true);
  88.             echo "</i></p>
  89.                                         </div>
  90.                                         <div class=\"uk-width-auto@s uk-grid-small uk-text-center uk-grid\" uk-grid>
  91.                                             <div>
  92.                                                 <a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase  uk-button-primary\" 
  93.                                                     href=\"";
  94.             // line 23
  95.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jobDetail", ["id" => twig_get_attribute($this->env, $this->source, $context["job"], "id", [], "any", false, false, false, 23)]), "html", null, true);
  96.             echo "\">
  97.                                                     <img class=\"uk-margin-small-right\" uk-svg width=\"20\" height=\"20\" src=\"/static/img/icons/editer.svg\" alt=\"";
  98.             // line 24
  99.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Postuler"), "html", null, true);
  100.             echo "\">
  101.                                                     ";
  102.             // line 25
  103.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Postuler"), "html", null, true);
  104.             echo "
  105.                                                 </a>
  106.                                             </div>                                        
  107.                                         </div>
  108.                                     </div>
  109.                                 </div>
  110.                             </li>
  111.                         ";
  112.             // line 32
  113.             $context["j"] = ((isset($context["j"]) || array_key_exists("j", $context) ? $context["j"] : (function () { throw new RuntimeError('Variable "j" does not exist.', 32, $this->source); })()) + 1);
  114.             // line 33
  115.             echo "                        ";
  116.         }
  117.         $_parent = $context['_parent'];
  118.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['job'], $context['_parent'], $context['loop']);
  119.         $context = array_intersect_key($context, $_parent) + $_parent;
  120.         // line 34
  121.         echo "                    </ul>
  122.                     ";
  123.         // line 35
  124.         if ( !(isset($context["jobs"]) || array_key_exists("jobs", $context) ? $context["jobs"] : (function () { throw new RuntimeError('Variable "jobs" does not exist.', 35, $this->source); })())) {
  125.             // line 36
  126.             echo "                    <div class=\"uk-alert-danger\" uk-alert>
  127.                         <p>";
  128.             // line 37
  129.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Il n'y a pas d'offre d'emploi disponible."), "html", null, true);
  130.             echo "</p>
  131.                     </div>
  132.                 </div>
  133.                 
  134.                 ";
  135.         }
  136.         // line 42
  137.         echo "                
  138.             </div>
  139.         </div>
  140.     </section>
  141. </main>
  142. ";
  143.         
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  145.         
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "job/list.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  151 => 42,  143 => 37,  140 => 36,  138 => 35,  135 => 34,  129 => 33,  127 => 32,  117 => 25,  113 => 24,  109 => 23,  101 => 18,  93 => 17,  87 => 13,  82 => 12,  80 => 11,  74 => 8,  68 => 4,  58 => 3,  35 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% extends 'layout.html.twig' %}
  163. {% block content %}
  164. <main id=\"main\" role=\"main\">
  165.     <section id=\"pro-jobs\" class=\"apk-jobs\">
  166.         <div class=\"uk-container\">
  167.             <div class=\"main-content\">
  168.                 <h1 class=\"uk-h2 apk-underlined\">{{ 'Les offres d\\'emplois'|trans }}</h1>
  169.                 <div class=\"uk-margin-medium-top\">
  170.                     <ul class=\"uk-list uk-padding-remove uk-margin-remove \">
  171.                         {% set j = 0 %}
  172.                         {% for job in jobs %}
  173.                             <li class=\"uk-margin-top\">
  174.                                 <div class=\"apk-rounded-box\">
  175.                                     <div class=\"uk-grid-small uk-margin-bottom uk-grid\" uk-grid>
  176.                                         <div class=\"uk-width-expand@s\">
  177.                                             <span class=\"uk-text-bold big\">{{job.getTitle()}}</span> {{'chez' |trans}} <span>{{businesses[j].getName()}}</span>
  178.                                             <p class=\"uk-margin-remove-top\"><i>{{job.getContract()}}</i></p>
  179.                                         </div>
  180.                                         <div class=\"uk-width-auto@s uk-grid-small uk-text-center uk-grid\" uk-grid>
  181.                                             <div>
  182.                                                 <a class=\"uk-flex uk-flex-middle uk-button uk-button-collapsed uk-text-uppercase  uk-button-primary\" 
  183.                                                     href=\"{{path('jobDetail', {'id' : job.id})}}\">
  184.                                                     <img class=\"uk-margin-small-right\" uk-svg width=\"20\" height=\"20\" src=\"/static/img/icons/editer.svg\" alt=\"{{ \"Postuler\"|trans }}\">
  185.                                                     {{'Postuler'|trans}}
  186.                                                 </a>
  187.                                             </div>                                        
  188.                                         </div>
  189.                                     </div>
  190.                                 </div>
  191.                             </li>
  192.                         {% set j = j + 1 %}
  193.                         {% endfor %}
  194.                     </ul>
  195.                     {% if not jobs %}
  196.                     <div class=\"uk-alert-danger\" uk-alert>
  197.                         <p>{{ \"Il n'y a pas d'offre d'emploi disponible.\"|trans }}</p>
  198.                     </div>
  199.                 </div>
  200.                 
  201.                 {% endif %}
  202.                 
  203.             </div>
  204.         </div>
  205.     </section>
  206. </main>
  207. {% endblock %}", "job/list.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/job/list.html.twig");
  208.     }
  209. }