templates/offres/index.html.twig line 1

Open in your IDE?
  1. {# templates/demandeur/new.html.twig #}
  2. {% extends 'base.html.twig' %}
  3. {% block title %}Offres de recrutement sur contrat de recherche{% endblock %}
  4. {% block body %}
  5. <div class="box_langues">
  6.     <a href="{{ path('app_offres_index', {'lang' : 'fr'}) }}"><div class="lang l_fr {% if lang == 'fr' %}active{% endif %}"></div></a>
  7.     <a href="{{ path('app_offres_index', {'lang' : 'en'}) }}"><div class="lang l_en {% if lang == 'en' %}active{% endif %}"></div></a>
  8. </div>
  9. <h1>{% if lang == 'en' %}Offers{% else %}Offres de recrutement sur contrat de recherche{% endif %}</h1>
  10. {% for message in app.flashes('message') %}
  11.     <div class="message">
  12.         {{ message }}
  13.     </div>
  14. {% endfor %}
  15. <form method="get"  id="form_recherche" class="exposed_form">
  16.     <select name="filtre[type_poste]">
  17.         <option value="">{% if lang == 'en' %}Job Type{% else %}Type de poste{% endif %}</option>
  18.         {% for type_poste in types_poste %}
  19.             <option value="{{ type_poste.id }}" {% if filtre.type_poste|default == type_poste.id %}selected{% endif %}>{{ type_poste.libelle }}</option>
  20.         {% endfor %}
  21.     </select>
  22.     <select name="filtre[champ_scientifique]">    
  23.         <option value="">{% if lang == 'en' %}Scientific field{% else %}Champ Scientifique{% endif %}</option>
  24.         {% for champ_scientifique in champs_scientifiques %}
  25.             <option value="{{ champ_scientifique.id }}" {% if filtre.champ_scientifique|default == champ_scientifique.id %}selected{% endif %}>{{ champ_scientifique.libelle }}</option>
  26.         {% endfor %}
  27.     </select>
  28.     <select name="filtre[categorie]">    
  29.         <option value="">{% if lang == 'en' %}Category{% else %}Catégorie{% endif %}</option>
  30.         <option value="A" {% if filtre.categorie|default == "A" %}selected{% endif %}>A - Cadre</option>
  31.         <option value="B" {% if filtre.categorie|default == "B" %}selected{% endif %}>B - Technicien</option>
  32.     </select>
  33.     <input type="text" name="filtre[mot_cle]" value="{{ filtre.mot_cle|default }}" placeholder="{% if lang == 'en' %}Keywords{% else %}Mot-clés{% endif %}">
  34.     <input type="hidden" name="tri" id="input_tri" value="{{ tri|default }}">
  35.     <input type="hidden" name="sens" id="input_sens" value="{{ sens|default }}">
  36.     <input type="hidden" name="lang" id="input_lang" value="{{ lang|default }}">
  37.     <input type="submit" name="ok" value="{% if lang == 'en' %}Filter{% else %}Valider{% endif %}">
  38. </form>
  39. <div class="box_tri">
  40.     <div class="tri_lab">{% if lang == 'en' %}Filter by:{% else %}Trier par:{% endif %}</div>
  41.     <a href="javascript:void(0)" onClick="jQuery('#input_tri').val('dateValidation'); jQuery('#input_sens').val('{% if sens=='DESC' %}ASC{% else %}DESC{% endif %}'); jQuery('#form_recherche').submit()">
  42.         {% if lang == 'en' %}Creation date{% else %}Date de saisie{% endif %}
  43.     </a>
  44.     {% if tri=='dateValidation' and sens=='ASC' %}<span class="tri triA"></span>{% endif %}
  45.     {% if tri=='dateValidation' and sens=='DESC' %}<span class="tri triD"></span>{% endif %}
  46.     <a href="javascript:void(0)" onClick="jQuery('#input_tri').val('datePriseDeFonction'); jQuery('#input_sens').val('{% if sens=='DESC' %}ASC{% else %}DESC{% endif %}'); jQuery('#form_recherche').submit()">
  47.         {% if lang == 'en' %}Start date{% else %}Prise de fonction{% endif %}
  48.     </a>
  49.     {% if tri=='datePriseDeFonction' and sens=='ASC' %}<span class="tri triA"></span>{% endif %}
  50.     {% if tri=='datePriseDeFonction' and sens=='DESC' %}<span class="tri triD"></span>{% endif %}
  51.     <a href="javascript:void(0)" onClick="jQuery('#input_tri').val('categorie'); jQuery('#input_sens').val('{% if sens=='DESC' %}ASC{% else %}DESC{% endif %}'); jQuery('#form_recherche').submit()">
  52.         {% if lang == 'en' %}Category{% else %}Catégorie{% endif %}
  53.     </a>
  54.     {% if tri=='categorie' and sens=='ASC' %}<span class="tri triA"></span>{% endif %}
  55.     {% if tri=='categorie' and sens=='DESC' %}<span class="tri triD"></span>{% endif %}
  56. </div>
  57. <div class="liste_blocs liste_offres">
  58.     {% for demandeur in pagination %}
  59.     <div class="it_bloc it_offre">
  60.         <div class="it_bloc_infos">
  61.             <div class="it_dates">
  62.             <div class="it_date">
  63.                     <span class="label">{% if lang == 'en' %}Start date{% else %}Prise de fonction{% endif %}</span>
  64.                 <span class="date">{% if lang == 'en' %}{{ demandeur.datePriseDeFonction|date("m d y") }}{% else %}{{ demandeur.datePriseDeFonction|date("d m y") }}{% endif %}</span>
  65.             </div>
  66.             <div class="it_date">
  67.                 <span class="label">{% if lang == 'en' %}Application deadline{% else %}Date limite de candidature{% endif %}</span>
  68.                    <span class="date">{% if lang == 'en' %}{{ demandeur.dateLimiteCandidature|date("m d y") }}{% else %}{{ demandeur.dateLimiteCandidature|date("d m y") }}{% endif %}</span>
  69.             </div>
  70.             </div>
  71.             <div class="it_infos">
  72.                 <div class="it_types">
  73.                 <div class="typePoste">
  74.                     <span class="label">{{ demandeur.typePoste }}</span>
  75.                 </div>
  76.                 <div class="categorie">
  77.                     <span class="label">Cat. {{ demandeur.categorie }}</span>
  78.                 </div>
  79.                 <div class="quotite">
  80.                     <span class="label">{{ demandeur.quotite }}</span>
  81.                 </div>
  82.             </div>
  83.             <a href="{{ path('app_offres_voir', {'id' : demandeur.id, 'lang' : lang}) }}" target="_blank" class="it_intitules">
  84.                 <h2 class="it_intitule">{{ demandeur.intitule }}</h2>
  85.                 <div class="it_poste intitule_poste">{{ demandeur.intituleDuPoste }}</div>
  86.             </a>
  87.         </div>
  88.         </div>
  89.         <div class="it_action"><a href="{{ path('app_offres_voir', {'id' : demandeur.id, 'lang' : lang }) }}" target="_blank" class="submit">
  90.             {% if lang == 'en' %}Show{% else %}Voir{% endif %}
  91.             </a></div>
  92.     </div>
  93.     {% endfor %}
  94.     {{ knp_pagination_render(pagination) }}
  95. </div>
  96. {% endblock %}