{% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
{% block stylesheets %}
{{parent()}}
{% endblock %}
{% block body %}
<div class="page_cms page_activite pt-5">
<div class="breadcrumb-style-default">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="inner text-center">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
<h1 class="page-title">{{breadcrumb|last.name}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid wrapper">
<div class="row">
<div class="col-sm-12 text-center">
<h2>{{secteur.titre}}</h2>
<div>{{secteur.textgenerersecteurfinal|raw}}</div>
</div>
</div>
<div class="row mt-2">
{% if resultats is defined and resultats|filter(v => v.type == 'activite_primaire')|length > 0 %}
<div class="col-sm-12 col-md-6">
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Activité principale</span></div>
<div class="panel-body">
<ul>
{% for item_url in resultats|filter(v => v.type == 'activite_primaire') %}
<li>
<a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
{% if resultats is defined and resultats|filter(v => v.type == 'activite_secondaire')|length > 0 %}
<div class="col-sm-12 col-md-6">
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Activité secondaire</span></div>
<div class="panel-body">
<ul>
{% for item_url in resultats|filter(v => v.type == 'activite_secondaire') %}
<li>
<a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
{% if resultats is defined and resultats|filter(v => v.type == 'article')|length > 0 %}
<div class="col-sm-12 col-md-6">
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Article</span></div>
<div class="panel-body">
<ul>
{% for item_url in resultats|filter(v => v.type == 'article') %}
<li>
<a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}