templates/Default/opportunity.html.twig line 34

  1. {% set iconColor = "#1F4878" %}
  2. {% set titleColor = "#ffffff" %}
  3. {% set bgColor = "#81B0B1" %}
  4. {% set title = item.title %}
  5. {% set desc = item.description %}
  6. {% set menu = 'jobs' %}
  7. {% if item.banner %}
  8. {% set thumbnail = item.banner.thumbnail %}
  9. {% set banner = asset(item.banner.file) %}
  10. {% endif %}
  11. {% extends 'Default/base.html.twig' %}
  12. {% import "Default/macros.html.twig" as macros %}
  13. {% macro info(label,value,color) %}
  14. <div class="flex col bottom-30 border border-{{color}}">
  15.     <label class="p-alt medium bg-{{color}} white hz-20-in vt-8-in">{{label}} :</label>
  16.     <span class="semibold {{color}} hz-20-in vt-8-in">{{value}}</span>
  17. </div>
  18. {% endmacro %}
  19. {% block titlebox %}
  20. <div class='relative white flex col {{desktop("vt-20-in gpadding")}} {{mobile("")}}'>
  21.     {% block title %}
  22.     <h1 class='lh-2x {{desktop("h2 ")}} {{mobile("h3")}}'>{{title is defined ? title}}</h1>
  23.     {% endblock title %}
  24. </div>
  25. {% endblock titlebox %}
  26. {% block content %}
  27. <div class='{{desktop("hz-50-in vt-40-in")}} {{mobile("vt-25-in")}} '>
  28.     <div class='gpadding {{desktop("flex row space top reverse")}} {{mobile("")}}'>
  29.         <div class="p-alt medium {{desktop('top-30 quarter left-50')}} {{mobile('top-10')}}">
  30.             {{_self.info("Date d'ouverture",item.openingDate ? item.openingDate|frdatetime,"warning-alt")}}
  31.             {{_self.info("Date de clôture",item.closingDate ? item.closingDate|frdatetime,"error")}}
  32.             {{_self.info("Structure",item.structure,"success-alt")}}
  33.             {{_self.info("Categorie",item.category ? item.category,"error-alt")}}
  34.         </div>
  35.         <div id='article' class='w100 {{desktop("")}} {{mobile("vt-20-in")}}'>
  36.             {% if item.description %}
  37.             <article  class='p article success-alt medium padding-20 {{desktop("top-30")}} {{mobile("top-10")}}'>
  38.             {{ item.description|nl2br }}
  39.             </article>
  40.             {% endif %}
  41.             <article  class='h4 article black {{desktop("top-30")}} {{mobile("top-10")}}'>
  42.             {{ item.content|raw }}
  43.             </article>
  44.             {% if item.biblio and item.biblio.files|length %}
  45.             <h2 class='gradient top-40 extrabold iflex'>Pièces jointes</h2>
  46.             <div class='flex row space wrap {{desktop("top-40")}}{{mobile("top-20")}}'>
  47.                 {{macros.biblio(item.biblio)}}
  48.             </div>
  49.             {% endif %}
  50.         </div>
  51.     </div>
  52. </div>
  53. <aside class=" {{desktop('vt-40-in')}} {{mobile('vt-15-in')}}">
  54.     <h2 class="gpadding extrabold gradient iflex {{desktop(' vt-20-in')}} {{mobile('vt-15')}}">Ces offres peuvent vous intéresser</h2>
  55.     <div class="relative w100 hoverflow {{desktop('')}} {{mobile('')}}">
  56.         <div id="opportunities" class="relative flex row space os-slider transition {{desktop('hz-50-in')}} {{mobile('hz-25-in')}}"  style="overflow-x: scroll">
  57.             {% for i in 1..5 %}
  58.             {% for o in list %}
  59.             <div class="os-slider-child flex row {{desktop('third-60 right-30-in')}}{{mobile('')}}">
  60.             {{macros.opportunity(o,true,true)}}
  61.             </div>
  62.             {% endfor %}
  63.             {% endfor %}
  64.         </div>
  65.         <div class="absolute h100 xright-half-alt left top">
  66.             <div class="flex row middle fill">
  67.                 <span class="os-slider-prev pointer flex row middle center shadow-alt bg-warning circle right-20-in left-70-in vt-40-in" data-target="#opportunities">
  68.                     <i class="fa fa-arrow-left white h2"></i>
  69.                 </span>
  70.             </div>
  71.         </div>
  72.         <div class="absolute h100 xleft-half-alt right top">
  73.             <div class="flex row middle fill">
  74.                 <span class="os-slider-next pointer flex row middle center shadow-alt bg-warning circle left-20-in right-70-in vt-40-in" data-target="#opportunities">
  75.                     <i class="fa fa-arrow-right white h2"></i>
  76.                 </span>
  77.             </div>
  78.         </div>
  79.     </div>
  80. </aside>
  81. {% endblock %}