templates/Jobs/_job_info_.html.twig line 1

Open in your IDE?
  1. {% if job is defined %}
  2.     <div id='article' class='w100'>
  3.         <div class="flex row {{ desktop("middle") }}{{ mobile("black-alt p-alt space") }}">
  4.             <span class="flex row bg-white {{ desktop("border border-1x border-gray radius-10")}}{{ mobile("radius-5 border border-1x border-gray-alt half-5")}} hoverflow">
  5.                         <i class="{{ desktop("bg-success-alt white") }}{{ mobile("bg-gray")}} flex col middle {{ desktop("hz-15-in vt-10-in") }} {{ mobile("hz-10-in vt-8-in p-alt") }}"><i>{{ "DU"|trans }}</i></i>
  6.                         <span class="flex row middle {{ desktop("hz-15-in")}} {{ mobile("hz-10-in")}} nowrap">{{ job.startAt.date|frdate }}</span>
  7.                     </span>
  8.             <span class="flex row bg-white {{ desktop("border border-1x border-gray radius-10 left-20")}}{{ mobile("radius-5 border border-1x border-gray-alt half-5")}} hoverflow">
  9.                         <i class="{{ desktop("bg-error white")}}{{ mobile("bg-gray")}} flex col middle {{ desktop("hz-15-in vt-10-in") }} {{ mobile("hz-10-in vt-8-in p-alt") }}"><i>{{ "AU"|trans }}</i></i>
  10.                         <span class="flex row middle {{ desktop("hz-15-in")}} {{ mobile("hz-10-in")}} nowrap">{{ job.endAt.date|frdate }}</span>
  11.                     </span>
  12.             {% if withButton is defined and withButton and isDesktop() %}
  13.                 <div class="left-20">
  14.                     {{ include('Jobs/_job_application_btn.html.twig', {"full": true}) }}
  15.                 </div>
  16.             {% endif %}
  17.         </div>
  18.         <article  class='article lh-4x text-justify {{desktop("h6 top-50")}}{{ mobile("p top-25") }}'>
  19.             {{ job.description|raw }}
  20.         </article>
  21.         <article  class='article lh-4x {{ isDesktop() ? 'black-alt'}} text-justify {{desktop("top-20 h6")}}{{ mobile("p top-20") }}'>
  22.             {{ job.content|raw }}
  23.         </article>
  24.         <h2 class='adapt {{ desktop("h4 top-60")}}{{ mobile("h4 top-30")}} adapt success'>{{ "Détails"|trans }}</h2>
  25.         {% if isMobile() %}
  26.             <div class="border border-gray border-1x {{ mobile("top-20") }}"></div>
  27.         {% endif %}
  28.         <table class="record ">
  29.             <tbody>
  30.             <tr>
  31.                 <th class="semibold">{{ "Secteurs"|trans }}: </th>
  32.                 <td>
  33.                     <article  class='flex wrap'>
  34.                         {% for o in job.sectors %}
  35.                             <div class="bg-gray flex col {{ desktop("bottom-10 hz-10-in")}} right-10 {{ mobile("top-10 bottom-5 hz-5-in") }}">
  36.                                 <label class="vt-8-in success">{{o.name}}</label>
  37.                             </div>
  38.                         {% endfor %}
  39.                     </article>
  40.                 </td>
  41.             </tr>
  42.             <tr>
  43.                 <th class="semibold">{{ "Année d'expérience"|trans }} :</th>
  44.                 <td>{{ job.experienceYear ? (job.experienceYear ~ (app.request.locale == "fr" ? " ans" : "year")) }}</td>
  45.             </tr>
  46.             <tr>
  47.                 <th class="semibold">{{ "Qualification"|trans }}: </th>
  48.                 <td>{{ job.qualifications|raw }}</td>
  49.             </tr>
  50.             <tr>
  51.                 <th class="semibold">{{ "Niveau d'étude"|trans }}: </th>
  52.                 <td>{{ job.studyLevel|join(", ") }}</td>
  53.             </tr>
  54.             <tr>
  55.                 <th class="semibold">{{ "Type de contrat"|trans }}: </th>
  56.                 <td>{{ job.employmentContract }}</td>
  57.             </tr>
  58.             </tbody>
  59.         </table>
  60.         {% if job.biblio and job.biblio.files|length %}
  61.             <div class="{{ desktop("top-50 bottom-10")}}{{ mobile("top-30 bottom-30")}} border border-1x border-gray"></div>
  62.             <h2 class='adapt {{ desktop("h4 top-60")}}{{ mobile("h3 top-30 bottom-25")}} adapt'>{{ "Document(s) joint(s)"|trans }}</h2>
  63.             <div class='flex row space wrap {{desktop("top-30 bottom-20")}}{{mobile("top-20")}}'>
  64.                 {% for o in job.biblio.files %}
  65.                     <div class='doc flex row top {{desktop("half-20 hz-25-in vt-20-in")}}{{ mobile("w100 hz-20-in vt-15-in")}} relative gradient-banner bottom-20 hoverflow {{desktop("")}} {{mobile("")}}'>
  66.                         {% set doc = o %}
  67.                         <span class="">
  68.                         <i class="fa fa-file white {{ desktop("fa-3x") }}{{ mobile("fa-2x") }}"></i>
  69.                     </span>
  70.                         <div class='text-left flex col space relative left-20 {{ desktop("right-40-in") }}{{ mobile("right-10-in") }}'>
  71.                             <h3 class='{{ mobile("h5")}} white {{ desktop("p medium")}} text-left nomargin lh-1x semibold'>{{doc.name ? doc.name : doc.source}}</h3>
  72.                             <div class="flex col middle space top-10">
  73.                                 <div class='gray-alt text-left p-alt'>
  74.                                     <span class=''>{{doc.formatSize}}</span> |
  75.                                     <span class=''>{{doc.reading|number_format}} lect.</span> |
  76.                                     <span>{{doc.downloads|number_format}} téléch.</span>
  77.                                 </div>
  78.                                 <div class='flex row middle p upper medium {{ desktop("top-20")}}{{ mobile("top-10")}} nowrap'>
  79.                                     <i class="w100 top-2-in bg-gray right-40"></i>
  80.                                     {% set action = null %}
  81.                                     {% set type = null %}
  82.                                     {% if 'pdf' in doc.mimetype|lower %}
  83.                                         {% set action = 'os-read' %}
  84.                                         {% set type = "pdf" %}
  85.                                     {% elseif 'image' in doc.mimetype|lower %}
  86.                                         {% set action = 'os-image' %}
  87.                                         {% set type = "image" %}
  88.                                     {% elseif 'video' in doc.mimetype|lower %}
  89.                                         {% set action = 'os-video' %}
  90.                                         {% set type = "video" %}
  91.                                     {% endif %}
  92.                                     {% if action %}
  93.                                         <span class='{{ action}} white {{ mobile("p-alt") }}' data-target="{{path('file-read',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}">Lire</span>
  94.                                     {% else %}
  95.                                         <span class='os-read white {{ mobile("p-alt") }}' data-url="{{url('file-read',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}">{{ "Lire"|trans }}</span>
  96.                                     {% endif %}
  97.                                     <a class='left-30 white {{ mobile("p-alt") }}' href="{{path('file-download',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}" target='_blank' download>{{ "Télécharger"|trans }}</a>
  98.                                 </div>
  99.                             </div>
  100.                         </div>
  101.                         <i class="triangle gradient-banner bg-white"></i>
  102.                     </div>
  103.                 {% endfor %}
  104.             </div>
  105.         {% endif %}
  106.         {% if withButton is defined and withButton %}
  107.             <div class="{{ desktop("top-60") }}{{ mobile("top-40 bottom-30") }}">
  108.                 {{ include('Jobs/_job_application_btn.html.twig', {'full': true}) }}
  109.             </div>
  110.         {% endif %}
  111.     </div>
  112. {% endif %}