templates/site/job/index.html.twig line 1

Open in your IDE?
  1. {% extends 'site/base.html.twig' %}
  2. {% block title %}
  3.     Inicio
  4. {% endblock %}
  5. {% block jobs_list %}
  6.     <!-- Jobs End -->
  7.     <div class="section-padding alice-bg">
  8.         <div class="container">
  9.             <div class="row">
  10.                 <div class="col-12">
  11.                     <div class="row">
  12.                         <div class="col">
  13.                             <div class="section-header section-header-2 section-header-with-right-content">
  14.                                 <h2>
  15.                                     Trabajos recientes
  16.                                 </h2>
  17.                                 <a href="{{ path('job_list') }}" class="header-right">
  18.                                     + Buscar todos los empleos
  19.                                 </a>
  20.                             </div>
  21.                         </div>
  22.                     </div>
  23.                     <div class="row">
  24.                         <div class="col container">
  25.                             {% for j in jobs %}
  26.                                 <div class="job-list row">
  27.                                     <div class="thumb">
  28.                                         <a href="{{ path('job_show', {'id': j.id}) }}">
  29.                                             <img src="{{ asset('site/images/upload/company/')~'_user_'~j.user.id~'/'~ j.image }}" class="img-fluid" alt="{{ j.title }}"></a>
  30.                                     </div>
  31.                                     <div class="body">
  32.                                         <div class="content">
  33.                                             <h4>
  34.                                                 <a href="{{ path('job_show', {'id': j.id}) }}">
  35.                                                     {{ j.title }}
  36.                                                 </a>
  37.                                             </h4>
  38.                                             <div class="info">
  39.                                                 <span class="company">
  40.                                                     <a>
  41.                                                         <i data-feather="briefcase"></i>
  42.                                                         {{ j.CompanyName }}
  43.                                                     </a>
  44.                                                 </span>
  45.                                                 <span class="office-location">
  46.                                                     <a>
  47.                                                         <i data-feather="map-pin"></i>
  48.                                                         {{ j.Localtion }}
  49.                                                     </a>
  50.                                                 </span>
  51.                                                 {% if j.type == 'partial' %}
  52.                                                     <span class="job-type part-time">
  53.                                                         <a>
  54.                                                             <i data-feather="clock"></i>
  55.                                                             A tiempo parcial
  56.                                                         </a>
  57.                                                     </span>
  58.                                                 {% endif %}
  59.                                                 {% if j.type == 'ful' %}
  60.                                                     <span class="job-type full-time">
  61.                                                         <a>
  62.                                                             <i data-feather="clock"></i>
  63.                                                             A tiempo completo
  64.                                                         </a>
  65.                                                     </span>
  66.                                                 {% endif %}
  67.                                                 {% if j.type == 'temporary' %}
  68.                                                     <span class="job-type temporary">
  69.                                                         <a>
  70.                                                             <i data-feather="clock"></i>
  71.                                                             Temporal
  72.                                                         </a>
  73.                                                     </span>
  74.                                                 {% endif %}
  75.                                                 {% if j.type == 'freelance' %}
  76.                                                     <span class="job-type freelance">
  77.                                                         <a>
  78.                                                             <i data-feather="clock"></i>
  79.                                                             Independiente
  80.                                                         </a>
  81.                                                     </span>
  82.                                                 {% endif %}
  83.                                             </div>
  84.                                         </div>
  85.                                         <div class="more">
  86.                                             <div class="buttons">
  87.                                                 {% if app.user %}
  88.                                                     <a id="applied-btn-{{ j.id }}" onclick="applied('{{ j.id }}')" class="button btn">
  89.                                                         {% if get_status_job(app.user,j) %}
  90.                                                             Cancelar
  91.                                                         {% else %}
  92.                                                             Aplica ya!
  93.                                                         {% endif %}
  94.                                                     </a>
  95.                                                     <a onclick="bookMark('{{ j.id }}')" class="favourite {% if j.id in app.user.bookmarked %}active{% endif %} ">
  96.                                                         <i data-feather="heart"></i>
  97.                                                     </a>
  98.                                                 {% else %}
  99.                                                     <a data-toggle="modal" data-target="#exampleModalLong" class="button btn">
  100.                                                         Aplica ya!
  101.                                                     </a>
  102.                                                 {% endif %}
  103.                                             </div>
  104.                                             <p class="deadline">
  105.                                                 {{ j.dateCreated|localizeddate('short', 'none', 'en') }}
  106.                                             </p>
  107.                                         </div>
  108.                                     </div>
  109.                                     <div class="col-12 job-about"></div>
  110.                                 </div>
  111.                             {% endfor %}
  112.                         </div>
  113.                     </div>
  114.                 </div>
  115.             </div>
  116.             <div class="row">
  117.                 <div class="col-12 text-center">
  118.                     <a href="{{ path('job_list') }}" class="btn btn-primary btn-lg" style="margin-top: 20px;">
  119.                         <i class="fa fa-eye"></i>
  120.                         Ver más
  121.                     </a>
  122.                 </div>
  123.             </div>
  124.         </div>
  125.     </div>
  126.     <div class="container">
  127.         <div class="row">
  128.             <div class="col-md-12">
  129.                 <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2667595224207635" crossorigin="anonymous"></script>
  130.                 <!-- Bloq1 -->
  131.                 <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-2667595224207635" data-ad-slot="2646587945" data-ad-format="auto" data-full-width-responsive="true"></ins>
  132.                 <script>
  133.                     (adsbygoogle = window.adsbygoogle || []).push({});
  134.                 </script>
  135.             </div>
  136.         </div>
  137.     </div>
  138. {% endblock %}