templates/offre-emploi/fiche.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {%- block title %}
  3. {%- autoescape false -%}
  4.     {{ offre.profil -}}
  5.     {%- if offre.etablissement -%}
  6.         {%- if offre.etablissement.ville and not offre.etablissement.ville.empty %} - {{ offre.etablissement.ville|lieuLibelle }}
  7.         {%- endif -%}
  8.     {%- else %} - enseignement-prive.info
  9.     {%- endif %} 
  10. {%- endautoescape -%}     
  11. {%- endblock %}
  12. {% block description -%}
  13. {%- autoescape false -%}
  14.     Offre d'emploi {{ offre.profil -}}
  15.     {%- if offre.etablissement %} - {{ offre.etablissement.denomination -}}
  16.         {%- if offre.etablissement.ville and not offre.etablissement.ville.empty %} - {{ offre.etablissement.ville|lieuLibelle }}
  17.         {%- endif -%}
  18.     {%- else %} - enseignement-prive.info
  19.     {%- endif %} 
  20. {%- endautoescape -%}    
  21. {%- endblock %}
  22. {% set siteLdJson = siteLdJson | merge(['offre-emploi']) %}
  23. {% set imgAlt = [
  24. offre.etablissement.codePostal,
  25. (offre.etablissement.ville ? offre.etablissement.ville.libelle : ''),
  26. offre.etablissement.denomination,
  27. ]|join(' - ')|trim(' -') %}
  28. {% set type = "" %}
  29. {% if offre.etablissement.typeClient == 'internat' %}
  30.     {% set type = "internat" %}
  31. {% endif %}
  32. {% block body %}
  33. <section class="container page-offres single form">
  34.     <div id="breadcrumb">
  35.         {% include 'offre-emploi/_includes/breadcrumb.html.twig' %}
  36.     </div>
  37.     <div class="title">
  38.         <h1>Offres d'emploi</h1>
  39.         <div class="triangle-defaut"></div>
  40.     </div>
  41.     <section>
  42.         <article class="{#{{ type ? type : typeOnglet(offre.etablissement.type) }}#}">
  43.             <div class="infos">
  44.                 {% if offre.etablissement is defined and offre.etablissement.isClient and offre.etablissement.imagesDiaporama is not empty %}
  45.                     {% set firstDiapo = offre.etablissement.imagesDiaporama | first %}
  46.                     {% set urlImage = asset('images/jouve/photo/' ~ firstDiapo) | imagine_filter('diapo_list') %}
  47.                 {% endif %}
  48.                 <figure class="resize">
  49.                     {% if urlImage is defined %}
  50.                         <img class="resp" src="{{ urlImage }}" alt="{{ offre.etablissement.denomination }}">
  51.                     {% else %}
  52.                         <span class="no-logo"></span>
  53.                     {% endif %}
  54.                 </figure>
  55.                 {% if typeOnglet(offre.etablissement.type) != "none" or type is not empty %}
  56.                     <div class="w-100 d-flex justify-content-center mb-4">
  57.                         <a class="btn bg-primary text-white" href="{{ pathBuilder.buildFiche(offre.etablissement) }}" data-trace-action="{{ constant('App\\Entity\\Trace::CLIC_FICHE_EMPLOI') | e('html_attr') }}" data-trace-etab="{{ offre.etablissement.id | e('html_attr') }}">Voir la fiche établissement</a>
  58.                     </div>
  59.                 {% endif %}
  60.             </div>
  61.             <div class="content">
  62.                 <span class="date">Postée le {{ offre.dateActualisation | format_date(pattern='d/MM/Y') }}</span>
  63.                 <header class="w-100">
  64.                     {% if offre.etablissement.logo is not empty %}
  65.                         <figure>
  66.                             <img src="{{ vich_uploader_asset(offre.etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') }}" alt="{{ imgAlt }}" title="{{ imgAlt }}">
  67.                         </figure>
  68.                     {% endif %}
  69.                     <div>
  70.                         {% if offre.etablissement.ville %}
  71.                             <p class="city">
  72.                             {{ offre.etablissement.ville.libelle }}
  73.                             {% if offre.etablissement.departement %}
  74.                                  ({{ offre.etablissement.departement.id }})
  75.                             {% endif %}
  76.                             </p>
  77.                         {% endif %}
  78.                     <h1>{% if offre.profil == "N/A" %} {{ offre.libelle }} {%else%} {{ offre.profil }} {%endif%} {% if offre.contrat != "N/A" %} - {{ offre.contrat }} {% endif %}</h1>
  79.                         <p class="estab">{{ offre.etablissement.denomination | u.truncate(70, '…', true) }}</p>
  80.                     </div>
  81.                 </header>
  82.                 <p>
  83.                     {% if is_html(offre.description) %}
  84.                     {{ offre.description|raw }}
  85.                     {% else %}
  86.                     {{ offre.description|nl2br }}
  87.                     {% endif %}
  88.                 </p>
  89.                 {{ form_start(form) }}
  90.                     <h2>Postuler à cette offre</h2>
  91.                     <small class="form-text text-muted">* Champs obligatoires</small>
  92.                     {{ form_row(form.civilite, {
  93.                         'label': 'Civilité',
  94.                         'attr' : {
  95.                             'class' : 'full-width',
  96.                         },
  97.                     }) }}
  98.                     {{ form_row(form.prenom, {
  99.                         'label': 'Prénom',
  100.                         'attr' : {
  101.                             'placeholder': 'Prénom',
  102.                         },
  103.                     }) }}
  104.                     {{ form_row(form.nom, {
  105.                         'label': 'Nom',
  106.                         'attr' : {
  107.                             'placeholder': 'Nom',
  108.                         },
  109.                     }) }}
  110.                     {{ form_row(form.adresse, {
  111.                         'label': 'Adresse',
  112.                         'attr' : {
  113.                             'placeholder': 'Adresse',
  114.                             'class' : 'full-width',
  115.                         },
  116.                     }) }}
  117.                     {{ form_row(form.codePostal, {
  118.                         'label': 'Code postal',
  119.                         'attr' : {
  120.                             'placeholder': 'Code postal',
  121.                         },
  122.                     }) }}
  123.                     {{ form_row(form.ville, {
  124.                         'label': 'Ville',
  125.                         'attr' : {
  126.                             'placeholder': 'Ville',
  127.                         },
  128.                     }) }}
  129.                     {{ form_row(form.telephone, {
  130.                         'label': 'Téléphone',
  131.                         'attr' : {
  132.                             'placeholder': 'Téléphone',
  133.                         },
  134.                     }) }}
  135.                     {{ form_row(form.email, {
  136.                         'label': 'E-mail',
  137.                         'attr' : {
  138.                             'placeholder': 'E-mail',
  139.                         },
  140.                     }) }}
  141.                     {{ form_row(form.resume, {
  142.                         'label': 'CV',
  143.                         'attr' : {
  144.                             'data-text': 'Joindre mon CV *',
  145.                             'class': 'fixed form-control-file full-width',
  146.                         },
  147.                     }) }}
  148.                     {{ form_row(form.commentaire, {
  149.                         'label': 'Personnaliser votre candidature',
  150.                         'attr' : {
  151.                             'placeholder': 'Personnaliser votre candidature',
  152.                             'class' : 'full-width',
  153.                         },
  154.                     }) }}
  155.                     {{ form_row(form.captcha, {
  156.                         'label': 'Veuillez recopier le message suivant',
  157.                         'attr' : {
  158.                             'placeholder': 'Veuillez recopier le message ci-dessous',
  159.                             'class' : 'full-width',
  160.                         },
  161.                     }) }}
  162.                     {# Honeypot #}
  163.                     {{ form_row(form.email2, {
  164.                         attr: {class: 'full-width', 
  165.                         style: 'display:none !important', 
  166.                         tabindex: '-1', 
  167.                         autocomplete: 'off'}
  168.                     }) }}
  169.                     <div class="w-100 text-center">
  170.                         <input type="submit" class="btn bg-primary" value="Envoyer ma candidature" />
  171.                     </div>
  172.                 {{ form_end(form) }}
  173.             </div>
  174.         </article>
  175.     </section>
  176. </section>
  177. {% endblock %}