templates/RecruitmentCampaign/_campaign_detail.html.twig line 1

Open in your IDE?
  1. {% extends "RecruitmentCampaign/campaign.html.twig" %}
  2. {% block titlebox %}
  3.     <div class="fill relative flex col middle">
  4.         <h1 class="{{ desktop("h2")}} white">{{title}}</h1>
  5.     </div>
  6. {% endblock %}
  7. {% block campaign_content %}
  8. <div class='{{desktop("flex row space top bottom-40")}}'>
  9.     <div id='article' class='w100'>
  10.         <div class="flex row {{ desktop("middle") }}{{ mobile("black-alt p-alt space") }}">
  11.                 <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">
  12.                         <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>
  13.                         <span class="flex row middle {{ desktop("hz-15-in")}} {{ mobile("hz-10-in")}} nowrap">{{ campaign.start.date|frdate }}</span>
  14.                     </span>
  15.             <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">
  16.                         <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>
  17.                         <span class="flex row middle {{ desktop("hz-15-in")}} {{ mobile("hz-10-in")}} nowrap">{{ campaign.end.date|frdate }}</span>
  18.                     </span>
  19.             {% if isDesktop() %}
  20.                 <div class="left-20">
  21.                     {{ include('RecruitmentCampaign/_campaign_subscription_btn.html.twig') }}
  22.                 </div>
  23.             {% endif %}
  24.         </div>
  25.         <article  class='article lh-4x black-alt text-justify {{desktop("h6 top-50")}}{{ mobile("p top-25") }}'>
  26.             {{ campaign.description|raw }}
  27.         </article>
  28.         <article  class='article lh-4x black-alt text-justify {{desktop("top-20 h6")}}{{ mobile("p top-20") }}'>
  29.             {{ campaign.details|raw }}
  30.         </article>
  31.         {% if campaign.services %}
  32.             <div class="{{ desktop("top-50 bottom-10")}}{{ mobile("top-30 bottom-30")}} border border-1x border-gray"></div>
  33.             <h2 class='adapt {{ desktop("h4 top-60") }}{{ mobile("h3 top-20 bottom-15")}} adapt'>{{ "Prestations concernées"|trans }}</h2>
  34.             <article  class='flex wrap {{ desktop("top-20 bottom-50") }}'>
  35.                 {% for o in campaign.services %}
  36.                     <div class="bg-gray flex col {{ desktop("shadow-alt-2 bottom-10")}} right-10 {{ mobile("top-10 bottom-5") }}">
  37.                         <label class="{{ mobile("h5 vt-5-in hz-7-in")}}{{ desktop("vt-10-in")}} success">{{o.service.name}}</label>
  38.                     </div>
  39.                 {% endfor %}
  40.             </article>
  41.         {% endif %}
  42.         {% if campaign.biblio and campaign.biblio.files|length %}
  43.             <div class="{{ desktop("top-50 bottom-10")}}{{ mobile("top-30 bottom-30")}} border border-1x border-gray"></div>
  44.             <h2 class='adapt {{ desktop("h4 top-50")}}{{ mobile("h3 top-30 bottom-25")}} adapt'>{{ "Document(s) joint(s)"|trans }}</h2>
  45.             <div class='flex row space wrap {{desktop("top-30")}}{{mobile("top-20")}}'>
  46.                 {% for o in campaign.biblio.files %}
  47.                     <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("")}}'>
  48.                         {% set doc = o %}
  49.                         <span class="">
  50.                         <i class="fa fa-file white {{ desktop("fa-3x") }}{{ mobile("fa-2x") }}"></i>
  51.                     </span>
  52.                         <div class='text-left flex col space relative left-20 {{ desktop("right-40-in") }}{{ mobile("right-10-in") }}'>
  53.                             <h3 class='{{ mobile("h5")}} white {{ desktop("p medium")}} text-left nomargin lh-1x semibold'>{{doc.name ? doc.name : doc.source}}</h3>
  54.                             <div class="flex col middle space top-10">
  55.                                 <div class='gray-alt text-left p-alt'>
  56.                                     <span class=''>{{doc.formatSize}}</span> |
  57.                                     <span class=''>{{doc.reading|number_format}} lect.</span> |
  58.                                     <span>{{doc.downloads|number_format}} téléch.</span>
  59.                                 </div>
  60.                                 <div class='flex row middle p upper medium {{ desktop("top-20")}}{{ mobile("top-10")}} nowrap'>
  61.                                     <i class="w100 top-2-in bg-gray right-40"></i>
  62.                                     {% set action = null %}
  63.                                     {% set type = null %}
  64.                                     {% if 'pdf' in doc.mimetype|lower %}
  65.                                         {% set action = 'os-read' %}
  66.                                         {% set type = "pdf" %}
  67.                                     {% elseif 'image' in doc.mimetype|lower %}
  68.                                         {% set action = 'os-image' %}
  69.                                         {% set type = "image" %}
  70.                                     {% elseif 'video' in doc.mimetype|lower %}
  71.                                         {% set action = 'os-video' %}
  72.                                         {% set type = "video" %}
  73.                                     {% endif %}
  74.                                     {% if action %}
  75.                                         <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>
  76.                                     {% else %}
  77.                                         <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>
  78.                                     {% endif %}
  79.                                     <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>
  80.                                 </div>
  81.                             </div>
  82.                         </div>
  83.                         <i class="triangle gradient-banner bg-white"></i>
  84.                     </div>
  85.                 {% endfor %}
  86.             </div>
  87.         {% endif %}
  88.         {% if not role.provider %}
  89.             <div class="{{ desktop("top-40") }}{{ mobile("top-30") }}">
  90.                 {{ include('RecruitmentCampaign/_campaign_subscription_btn.html.twig', {full: true}) }}
  91.             </div>
  92.         {% endif %}
  93.     </div>
  94.     {% if isMobile() and not role.connected %}
  95.         <div class="border border-1x border-gray top-40"></div>
  96.     {% endif %}
  97.     <aside class="{{desktop('third left-80 vt-20-in')}} {{mobile('vt-20-in top-10')}} {{ role.connected and isMobile() ? "hide" }}">
  98.         {{ include('security/_provider_login_form.html.twig') }}
  99.     </aside>
  100. </div>
  101. {% endblock %}