{% extends 'front.html.twig' %}
{% block title %}{{ slug }} | CIMEF-INTERNATIONAL{% endblock %}
{% block styleSheets %}
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
<style id='wp-emoji-styles-inline-css' type='text/css'>
.shadow{box-shadow:0 1px 4px 0 rgba(0,0,0,.1),0 3px 10px 0 rgba(0,0,0,.1)}label{color:#f60;font-weight:700}.titre-certificat{color:#051a53;font-family:arial!important;font-size:22px;line-height:1.3;font-weight:700}.lien-theme{color:#051a53!important}.lien-theme:hover,.text-lien{color:#f60}.row{display:flex;flex-wrap:wrap;margin-right:-.75rem;margin-left:-.75rem}.events_pagination ul.pagination{display:flex;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0}.page-item.active .page-link{background-color:#f60;color:#fff}.page-link{margin:10px;color:#051a53;background-color:#ededed;border-radius:5px;padding:10px}@media (min-width:576px){.col-3,.col-sm-12,.col-sm-4,.col-sm-6{flex:0 0 100%;max-width:100%}}@media (min-width:768px){.col-md-3,.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-12{flex:0 0 100%;max-width:100%}}@media (min-width:992px){.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-12{flex:0 0 100%;max-width:100%}}.type1 .date-event{transition:.5s;position:absolute;bottom:20px;left:30px;z-index:1;font-size:12px;color:#fff;font-weight:700;text-transform:uppercase;text-align:center;line-height:1.3;letter-spacing:1px;background-color:#f60!important;padding:12px}.icon_event{color:#f60!important}.wrap_header_banner .overlay-slider{position:absolute;top:0;left:0;padding-top:30px;width:100%;height:100%;background-color:rgba(0,0,0,.6392156863)}@media (max-width:575px){.truncate{width:100%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}
</style>
{% endblock %}
{% block body %}
{% include 'section/navbar.html.twig' %}
<div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/table.jpeg')}});">
<div class="overlay-slider">
<div class="row_site">
<div class="container_site">
<div class="cover_color"></div>
<div class="header_banner_el">
<div class="header_breadcrumbs">
<div id="breadcrumbs">
<ul class="breadcrumb">
<li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
<li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
<li style="color: #fff!important;">{{ nomThematique }}</li>
</ul>
</div>
</div>
<div class="truncate">
<h1 class="header_title" style="color: #fff!important;">{{ nomThematique }}</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-event">
<div class="content-event">
<h3 style="font-family: Arial; font-weight: bold;">Nos thèmes de formation en {{ nomThematique }}</h3>
<div class="mt-4" style="height: 20px;"></div>
<div class="shadow" style="margin-bottom: 20px !impirtant; width: 100%; padding: 10px !important; border: 1px solid #cfcfcf; background-color: #F5F5F5 !important;">
<form method="POST">
<div class="row" style="width: 100%; margin: 0px !important; padding: 0px !important;">
<div class="col-md-12 col-sm-12">
<input type="text" class="form-control" name="recherche" id="searchTheme" placeholder="Rechercher un thème..." style="width: 100%;" />
</div>
</div>
</form>
</div>
<div class="mt-4" style="height: 20px;"></div>
<!-- search form -->
<div class="row" style="padding: 5px;">
{% for pag in pagination %}
<div class="col-md-6 theme-item" data-nom="{{ pag.nom|lower }}" style="padding: 10px; width: 100%;">
<a href="{{ path('front.thematique.date.theme', {'slugThematique': slug, 'slug': pag.slug, 'id': pag.id }) }}" style="width: 100%;">
<div style="padding: 10px; margin-bottom: 10px; border: 1px solid #cfcfcf; width: 100%;">
<h3 class="titre-certificat">{{ pag.nom }}</h3>
<a href="{{ path('front.thematique.date.theme', {
'slugThematique': slug,
'slug': pag.slug
}) }}">En savoir plus</a>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
{% include 'section/footer.html.twig' %}
<script>
document.getElementById('searchTheme').addEventListener('keyup', function () {
let value = this.value.toLowerCase().trim();
let items = document.querySelectorAll('.theme-item');
items.forEach(function (item) {
let nom = item.dataset.nom;
if (nom.includes(value)) {
item.style.display = '';
} else {
item.style.display = 'none';
}
});
});
</script>
{% endblock %}