templates/front/theme1/page_recrutement.html.twig line 1

Open in your IDE?
  1. {% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
    
    
    {% block stylesheets %}
        {{parent()}}
    {% endblock %}
    
    {% block body %}
    
        {% if parametreRef.imagebandeau != '' %}
            <section class="image-bandeau text-center">
                <img alt="{{parametreRef.titreparamref}}" title="{{parametreRef.titreparamref}}" src="{{asset_image(parametreRef.imagebandeau,'large')}}" />
                <div class="cnt-bandeau text-center">
                    <div class="container-fluid wrapper">
                        <ol class="breadcrumb d-flex justify-content-center" itemscope itemtype="http://schema.org/BreadcrumbList">
                            <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('index_page_home')}}" itemprop="item"><span itemprop="name">{{title_home_ariane}}</span></a><meta itemprop="position" content="1" /></li>
                            <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">{{title_page}}</span><meta itemprop="position" content="2" /></li>
                        </ol>
                        <h1 class="page-title">
                            {% if parametreRef.soustitreparamref is not empty %}
                                {{parametreRef.soustitreparamref|raw}}
                            {% elseif (parametreRef.titreparamref) %}
                                {{parametreRef.titreparamref|raw}}
                            {% endif %}
                        </h1>
                    </div>
                </div>
            </section>
        {% endif %}
    
        <div class="page_cms page_annonce pt-5">
    
            {% if parametreRef.imagebandeau == '' %}
                <div class="breadcrumb-style-default">
                    <div class="container-fluid wrapper">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="inner text-center">
                                    <ol class="breadcrumb d-flex justify-content-center" itemscope itemtype="http://schema.org/BreadcrumbList">
                                        <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('index_page_home')}}" itemprop="item"><span itemprop="name">{{title_home_ariane}}</span></a><meta itemprop="position" content="1" /></li>
                                        <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">{{title_page}}</span><meta itemprop="position" content="2" /></li>
                                    </ol>
                                    <h1 class="page-title">
                                        {% if parametreRef.soustitreparamref is not empty %}
                                            {{parametreRef.soustitreparamref|raw}}
                                        {% elseif (parametreRef.titreparamref) %}
                                            {{parametreRef.titreparamref|raw}}
                                        {% endif %}
                                    </h1>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            {% endif %}
    
            <div class="container-fluid wrapper">
                <div class="row">
                    {% if parametreRef.description is not empty %}
                        <div class="col-md-12 text-content">{{parametreRef.description|raw}}</div>
                    {% endif %}
                    {# <div class="col-md-12 postuler-annonce text-center mt-4">
                        <a href="{{path('page',{slug:'postuler'})}}" class="btn btn-interesse">Postuler</a>
                    </div> #}
                </div>
                
                {% if posts %}
    
                    <div class="results affichage1 affichage_recrutement">
                        
                        {% for post in posts %}
    
                            {% set contrat = "" %}
                            {% set salaire = "" %}
                            {% set lien = path('page',{slug:post.slug}) %}
                            {% set titre_lien = "En savoir plus" %}
                            
                            {% if champs_personnalises_posts is not empty %}
                                {% for champs_personnalises_post in champs_personnalises_posts %}
                                    {% if champs_personnalises_post.id_post == post.id %}
                                        {% for champ_personnalise_post in champs_personnalises_post['champs_personnalises_post'] %}
                                            {% if champ_personnalise_post.value != "" %}
                                                {% if champ_personnalise_post.type == "text" %}
    
                                                    {% if champ_personnalise_post.alias == "salaire" %}
                                                        {% set salaire = '<div class="article-salaire">'~champ_personnalise_post.label~' : '~champ_personnalise_post.value~'</div>' %}
                                                    {% endif %}
    
                                                {% endif %}
    
                                                {% if champ_personnalise_post.type == "radio" %}
                                                    {% if champ_personnalise_post.alias == "contrat" %}
                                                        {% set contrat = '<div class="article-contrat">'~champ_personnalise_post.label~' : '~champ_personnalise_post.value~'</div>' %}
                                                    {% endif %}
                                                {% endif %}
    
                                            {% endif %}
    
                                        {% endfor %}
    
                                    {% endif %}
    
                                {% endfor %}
    
                            {% endif %}
    
                            <div class="article">
                                <div class="article-image">
                                    {% if post.image is not empty %}
                                        <img src="{{asset_image(post.image)}}" alt="{{post.title}}" /> 
                                    {% elseif parametre.imageVide != null %}
                                        <img src="{{asset('uploads/images/' ~ parametre.imagevide)}}" alt="{{post.title}}" />          
                                    {% endif %}
                                </div>
    
                                <div class="article-cnt text-left">
    
                                    <div class="article-titre"><a href="{{lien}}" title="{{post.title|raw}}">{{post.title|raw}}</a></div>
                                    {% if contrat is not empty %}
                                        {{contrat|raw}}
                                    {% endif %}
    
                                    {% if salaire is not empty %}
                                        {{salaire|raw}}
                                    {% endif %}
                                    
                                    {% if post.content is not empty %}
                                        <div class="article-txt">{{post.content| slice(0, 150)|raw}}</div>
                                    {% endif %}
    
                                    <div class="article-bts">
                                        <button class="article-plus btn-fade" onclick="window.open('{{lien}}', '_self');" title="{{post.title}}">{{titre_lien}}</button>
                                    </div>
    
                                </div>
                            </div>
                        {% endfor %}
    
                    </div>
    
                {% endif %}
    
            </div>
        </div>
    
    {% endblock %}
    
    {% block javascripts %}
        {{parent()}}
    
    {% endblock %}