templates/home.html.twig line 1

Open in your IDE?
  1. {% extends "template.html.twig" %}
  2. {% set title = "Espace recrutement" %}
  3. {% set desc = "" %}
  4. {% set menu = 'accounts' %}
  5. {% block banner %}
  6.     <div class='relative bg-warning w100 htop-in {{desktop("flex row")}} {{mobile("")}}'>
  7.         <div class="gpadding {{ desktop("top-60 bottom-40") }}{{ mobile("padding-20")}} flex col fill relative">
  8.             <h1 class="{{ desktop("h4") }}{{ mobile("h3 text-center")}} white top-10">{{ static.BannerTitle|raw }}</h1>
  9.             <div class="{{ desktop("top-30") }}">
  10.                 {{ form_start(form) }}
  11.                 <div class="flex row space search bottom mblock">
  12.                     <div class="w100 right-10">
  13.                         <label for="synonym-search" class="{{ desktop("bottom-10 medium block") }}{{ mobile("bottom-5 mblock top-20")}} white">{{ "Mot clé"|trans }}</label>
  14.                         {{ form_widget(form.query) }}
  15.                     </div>
  16.                     <div class="w100 right-10">
  17.                         <label for="synonym-sector" class="{{ desktop("bottom-10 medium block") }}{{ mobile("bottom-5 mblock top-20")}} white">{{ "Secteur d'activités"|trans }}</label>
  18.                         {{ form_widget(form.sectors) }}
  19.                     </div>
  20.                     <div class="flex row bottom {{ mobile("top-15-in space") }}">
  21.                         <button type="submit" class="pointer flex row middle {{desktop('btn shadow success radius-5 vt-15-in hz-40-in bg-success')}}{{mobile('bg-gray semibold border border-1x border-success success half-5 flex col middle white noborder vt-8-in hz-25-in radius-4 nowrap p-alt')}}">
  22.                             <span class="nowrap p-alt">{{ "search"|trans }}</span>
  23.                         </button>
  24.                         {% if isDesktop() %}
  25.                             <div class="left-20"></div>
  26.                         {% endif %}
  27.                        <a href="{{ path('job-search') }}" class="flex row middle center success {{desktop('semibold bottom radius-5 vt-15-in')}}{{mobile('medium vt-10-in hz-10-in top-8')}}">
  28.                            <svg style="height: 30px" aria-hidden="true" fill="currentColor" focusable="false" viewBox="0 0 24 24" class="mhide Svg-sc-t66izd-0 Icon__Svg-sc-1yrtjf1-0  bUGIUj">
  29.                                <path d="M10.5 24h-.2c-.2-.1-.3-.3-.3-.5V12.8L.1.8C0 .7 0 .5 0 .3.1.1.3 0 .5 0h23c.2 0 .4.1.5.3 0 .2 0 .4-.1.5l-9.9 12v7.7c0 .1-.1.3-.1.4l-3 3c-.1 0-.3.1-.4.1zM1.6 1l9.3 11.3c.1.1.1.2.1.3v9.7l2-2v-7.7c0-.1 0-.2.1-.3L22.4 1H1.6z"></path>
  30.                            </svg>
  31.                            <span class="nowrap">{{ "more filter"|trans }}</span>
  32.                        </a>
  33.                     </div>
  34.                 </div>
  35.                 {{ form_end(form) }}
  36.             </div>
  37.         </div>
  38.     </div>
  39. {% endblock %}
  40. {% block content %}
  41.     <div class='{{desktop("gpadding vt-80-in")}} {{mobile("hz-20-in")}}'>
  42.         <div class='{{desktop("flex row space top")}} {{mobile("")}}'>
  43.             <div id='article' class='w100 {{mobile("vt-20-in")}}'>
  44.                 <div class="{{desktop("h2 bottom-20")}}{{mobile("bottom-20 h3 success top-5")}}">
  45.                     {{ static.OffertBlockTitle|raw }}
  46.                 </div>
  47.                 <div class="{{ desktop("flex wrap space top-20") }}{{ mobile("flex col") }}">
  48.                     {% for o in paginator.results %}
  49.                         <div class="half-20 mw100">
  50.                             {{ include('Jobs/_jobs_card.html.twig', {job: o}) }}
  51.                         </div>
  52.                     {% endfor %}
  53.                 </div>
  54.                 {% if isMobile() %}
  55.                     <div class="top-30 bottom-20 flex col middle center">
  56.                             {{ include('_paginator_.html.twig', {expanded: true}) }}
  57.                     </div>
  58.                 {% else %}
  59.                     <div class="top-80-in bottom-60 flex row space w100">
  60.                         <div></div>
  61.                         <div>
  62.                             {{ include('_paginator_.html.twig', {expanded: true}) }}
  63.                         </div>
  64.                     </div>
  65.                 {% endif %}
  66.         </div>
  67.     </div>
  68. {% endblock %}