templates/Frontend/Candidat/postes.html.twig line 1

Open in your IDE?
  1. {% extends "Frontend/base-recrutement.html.twig" %}
  2. {% block body %}
  3.     <div id="cadre">
  4.         <div class="row justify-content-end">
  5.             <div class="col-4">
  6.             {% if app.user %}
  7.                 <a href="{% if app.user.candidatures is defined %}{{ path('frontend_candidat_externe_view') }}{% else %} {{ path('frontend_candidat_interne_view') }}{% endif %}" class="btn btn-warning">
  8.                     <i class="fa fa-chevron-left"></i>
  9.                     Retour
  10.                 </a>
  11.                 <a href="{% if app.user.candidatures is defined %}{{ path('frontend_candidat_externe_logout') }}{%else%}{{ path('frontend_candidat_interne_logout') }}{%endif%}" class="btn btn-primary">
  12.                     <i class="fa fa-sign-out-alt"></i>
  13.                     Deconnexion
  14.                 </a>
  15.             {% else %}
  16.                 <a href="{{ path('frontend_candidat') }}" class="btn btn-warning">
  17.                     <i class="fa fa-home"></i>
  18.                     Accueil
  19.                 </a>
  20.             {% endif %}
  21.             </div>
  22.         </div>
  23.         <div class="row view">
  24.             <div class="col">
  25.                 <legend>Poste(s) disponible(s) actuellement</legend>
  26.                 <ul class="nav nav-tabs" role="tablist">
  27.                     {% for catTypePop in catsTypePop %}
  28.                         {% set cat = attribute(catTypePop, 'cat') %}
  29.                         <li  class="nav-item">
  30.                             <button id="cat-tab-{{cat.id}}" class="nav-link {% if loop.first %}active{% endif %}" aria-expanded="{% if loop.first %}true{% else %}false{% endif %}" aria-controls="cat-{{cat.id}}" data-bs-toggle="tab" data-bs-target="#cat-{{cat.id}}" role="tab">{{cat.name}}</button>
  31.                         </li>
  32.                     {% endfor %}
  33.                 </ul>
  34.                 <div class="tab-content">
  35.                     {% for catTypePop in catsTypePop %}
  36.                         {% set cat = attribute(catTypePop, 'cat') %}
  37.                         {% set types = attribute(catTypePop, 'types') %}
  38.                         {% set catPostes = attribute(postesByCategory, cat.id) %}
  39.                             <div id="cat-{{cat.id}}" class="tab-pane fade {% if loop.first %}show active{% endif %}" role="tabpanel" aria-labelledby="cat-tab-{{ cat.id }}">
  40.                                 <ul class="nav nav-tabs" role="tablist">
  41.                                     {% for type in types %}
  42.                                         {% set postes = attribute(catPostes, type.id) %}
  43.                                         <li class="nav-item">
  44.                                             <button id="typepop-tab{{ type.id }}" class="nav-link {% if loop.first %}active{% endif %}"  aria-expanded="{% if loop.first %}true{% else %}false{% endif %}" data-bs-toggle="tab" data-bs-target="#typepop-{{type.id}}" >{{type.name}}</button>
  45.                                         </li>
  46.                                     {% endfor %}
  47.                                 </ul>
  48.                                 <div class="tab-content">
  49.                                     {% for type in types %}
  50.                                         {% set postes = attribute(catPostes, type.id) %}
  51.                                         <div id="typepop-{{type.id}}" class="tab-pane fade {% if loop.first %}show active{% endif %}" role="tabpanel" aria-labelledby="typepop-tab{{ type.id }}">
  52.                                             {% include 'Frontend/Candidat/liste-postes.html.twig' %}
  53.                                         </div>
  54.                                     {% endfor %}
  55.                                 </div>
  56.                             </div>
  57.                     {% endfor %}
  58.                 </div>
  59.             </div>
  60.         </div>
  61.     </div>
  62.     {% endblock %}
  63. {% block contact %}
  64.     <p><a target="_blank" href="mailto:{{ mail_rh_recrutement }}">Contacter les ressources humaines</a></p>
  65. {% endblock %}