{#% set data = {
pre_title: 'jobs',
description: {
0: 'descr'
},
logo_before_title: {
0: ''
},
title: 'title',
pre_title: 'pre title',
url_link: 'url-link',
label_btn: 'label btn',
illustration:{
0: 'illu'
},
jobs: {
0: {
title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elit',
description: 'Vestibulum a commodo turpis',
uri: 'link url1'
},
1: {
title: 'job title 2',
description: 'descr2',
uri: 'link url2'
},
2: {
title: 'job title 3',
description: 'descr3',
uri: 'link url3'
}
}
}
%#}
<section class="jobs container block text-left-img-right mb-5 mt-5 {% if index == 1 %}first-section{% endif %}">
{% if data.title_jobs_section is defined and data.title_jobs_section %}
<h2 class="blue">{{ data.title_jobs_section }}</h2>
{% endif %}
{% if data.description_jobs_section is defined and data.description_jobs_section is not empty %}
<div class="blue-dark pb-3">
{{ data.description_jobs_section.0|raw }}
</div>
{% elseif 'description_jobs_section' ~ data.block is defined %}
<div class="blue-dark pb-3">
{{ data['description_jobs_section' ~ data.block].0|raw }}
</div>
{% endif %}
<ul class="jobs-list">
{% for item in data.sub_blocks %}
<li class="job-row">
<div class="job-descr">
<h3 class="job-title">{{ item.job_title_offer }}</h3>
<p class="job-txt">{{ item.job_description_offer.0|raw }}</p>
</div>
<div class="job-btn">
<a href="{{ item.job_url_offer }}" class="job-link">{{ 'postuler'|trans }}</a>
</div>
</li>
{% endfor %}
</ul>
</section>