templates/front/thematique.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Nos thématiques | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <style id='wp-emoji-styles-inline-css' type='text/css'>
  5. .events_pagination ul.pagination {
  6.     display: flex;
  7.     flex-wrap: wrap;
  8.     justify-content: center;
  9.     list-style: none;
  10.     margin: 0;
  11.     padding: 0;
  12. }
  13. .page-item.active .page-link {
  14.     background-color: #ff6600;
  15.     color: #fff;
  16. }
  17. .page-link {
  18.     margin: 10px;
  19.     color: #051a53;
  20.     background-color: #ededed;
  21.     border-radius: 5px;
  22.     padding: 10px;
  23.     /* margin: 0 3px; */
  24. }
  25. .titre-certificat{
  26.     color: #051a53;
  27.     font-family: arial !important;
  28.     font-size: 22px;
  29.     text-transform: uppercase !important;
  30.     line-height: 1.3;
  31.     font-weight: bold;
  32. }
  33. .shadow{
  34.     box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.10);
  35. }
  36. .row {
  37.     display: flex;            /* flexbox pour aligner les colonnes */
  38.     flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  39.     margin-right: -0.75rem;   /* -gutter/2 */
  40.     margin-left: -0.75rem;    /* -gutter/2 */
  41. }
  42. .events_pagination ul.pagination {
  43.     display: flex;
  44.     flex-wrap: wrap;
  45.     justify-content: center;
  46.     list-style: none;
  47.     margin: 0;
  48.     padding: 0;
  49. }
  50. .page-item.active .page-link {
  51.     background-color: #ff6600;
  52.     color: #fff;
  53. }
  54. .page-link {
  55.     margin: 10px;
  56.     color: #051a53;
  57.     background-color: #ededed;
  58.     border-radius: 5px;
  59.     padding: 10px;
  60.     /* margin: 0 3px; */
  61. }
  62. .text-lien{
  63.    color: #ff6600;
  64.    /* font-size: 16px; */
  65. }
  66. /* Small devices ≥576px */
  67. @media (min-width: 576px) {
  68.   .col-3 { flex: 0 0 100%; max-width: 100%; }
  69.   .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  70.   .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  71.   .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  72. }
  73. /* Medium devices ≥768px */
  74. @media (min-width: 768px) {
  75.   .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  76.   .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  77.   .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  78.   .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  79. }
  80. /* Large devices ≥992px */
  81. @media (min-width: 992px) {
  82.   .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  83.   .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  84.   .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  85.   .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  86. }
  87. .type1 .date-event {
  88.     transition: all 0.5s ease;
  89.     position: absolute;
  90.     bottom: 20px;
  91.     left: 30px;
  92.     z-index: 1;
  93.     font-size: 12px;
  94.     color: #fff;
  95.     font-weight: 700;
  96.     text-transform: uppercase;
  97.     text-align: center;
  98.     line-height: 1.3;
  99.     letter-spacing: 1px;
  100.     background-color: #ff6600 !important;
  101.     padding: 12px;
  102. }
  103. .icon_event{
  104.     color: #ff6600 !important;
  105. }
  106. .wrap_header_banner .overlay-slider {
  107.     position: absolute;
  108.     top: 0;
  109.     left: 0;
  110.     padding-top: 30px; 
  111.     width: 100%;
  112.     height: 100%;
  113.     background-color: rgba(0, 0, 0, 0.6392156863);
  114. }
  115. .text-lien{
  116.     color: #ff6600 !important;
  117. }
  118. .text-lien:hover{
  119.     color: #051a53 !important;
  120. }
  121. </style>
  122. {% endblock %}
  123. {% block body %}
  124. {% include 'section/navbar.html.twig' %}
  125.     {% for message in app.flashes('success') %}
  126.     <div class="row toast_success" style="top: 100px !important; float: right !important; position: absolute;">
  127.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  128.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  129.         </div>
  130.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  131.             <label>{{ message }}</label>
  132.         </div>
  133.     </div>    
  134.     {% endfor %}
  135.     {% for message in app.flashes('warning') %}
  136.     <div class="row toast_warning" style="top: 100px !important; float: right !important; position: absolute;">
  137.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  138.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  139.         </div>
  140.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  141.             <label>{{ message }}</label>
  142.         </div>
  143.     </div>   
  144.     {% endfor %}
  145.     {% for message in app.flashes('danger') %}
  146.     <div class="row toast_danger" style="top: 100px !important; float: right !important; position: absolute;">
  147.         <div class="col-md-2 col-sm-2" style="padding: 10px;">
  148.             <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  149.         </div>
  150.         <div class="col-md-10 col-sm-10" style="padding: 10px;">
  151.             <label>{{ message }}</label>
  152.         </div>
  153.     </div>   
  154.     {% endfor %}
  155. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/wp-content/uploads/2023/06/header-banner.jpg')}});">
  156.     <div class="overlay-slider">
  157.         <div class="row_site">
  158.             <div class="container_site">
  159.                 <div class="cover_color"></div>
  160.                 <div class="header_banner_el">
  161.                     <div class="header_breadcrumbs">
  162.                         <div id="breadcrumbs">
  163.                         <ul class="breadcrumb">
  164.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  165.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  166.                             <li style="color: #fff!important;">Nos thématiques</li>
  167.                         </ul>
  168.                         </div>
  169.                     </div>
  170.                     <h1 class="header_title" style="color: #fff!important;">Nos thématiques</h1>
  171.                 </div>
  172.             </div>
  173.         </div>
  174.     </div>
  175. </div>
  176. <div class="container-event">
  177.     <div id="sidebar-active" class="content-event">
  178.         <div class="shadow" style="margin-bottom: 20px !impirtant; width: 100%; padding: 10px !important; border: 1px solid #cfcfcf; background-color: #F5F5F5 !important;">
  179.             <form method="POST">
  180.                 <div class="row" style="width: 100%; margin: 0px !important; padding: 0px !important;">
  181.                     <div class="col-md-12 col-sm-12">
  182.                         <input type="text" class="form-control" name="recherche" id="searchThematique" placeholder="Rechercher une thématique..." style="width: 100%;" />
  183.                     </div>
  184.                 </div>
  185.             </form>
  186.         </div>
  187.         <div class="mt-4" style="height: 20px;"></div>
  188.       <!-- search form -->
  189.         {% if pagination != null %}
  190.             {% for pag in pagination %}
  191.                 <div class="row thematique-item" data-nom="{{ pag.nom|lower }}" style="padding: 10px; margin-bottom: 10px; border: 1px solid #cfcfcf; width: 100%; margin-left: 2px;">
  192.                     <div class="col-md-12 col-sm-12">
  193.                         <div style="margin-bottom: 20px;"><h3 class="titre-certificat">{{ pag.nom }}</h3></div>
  194.                         <span style="text-transform: lowercase; color: #ff6600; font-size: 20px !important;">({{ pag.nbThemes }}) </span>
  195.                         <span style="text-transform: lowercase;">Thèmes |&nbsp;</span>
  196.                         <a style="text-transform: lowercase; color: #ff6600;" href="{{ path('front.inscription',{'slug': pag.slug, 'id': pag.id,'seminaires': 'certificats interantionaux'}) }}">
  197.                             <span style="text-transform: lowercase;">
  198.                                 <a class="text-lien" href="{{ path('front.thematique.detail', {'slug': pag.slug, 'id': pag.id }) }}" style="color: #201D1C;"> Découvrez les thèmes de cette thématique</a>
  199.                             </span>
  200.                         </a>
  201.                     </div>
  202.                 </div>
  203.             {% endfor %}
  204.         {% endif %}
  205.     </div>
  206.    {% include 'section/aside.html.twig' %}
  207. </div>
  208.    {% include 'section/footer.html.twig' %}
  209. <script>
  210. document.getElementById('searchThematique').addEventListener('keyup', function () {
  211.     let value = this.value.toLowerCase().trim();
  212.     let items = document.querySelectorAll('.thematique-item');
  213.     items.forEach(function (item) {
  214.         let nom = item.dataset.nom;
  215.         if (nom.includes(value)) {
  216.             item.style.display = '';
  217.         } else {
  218.             item.style.display = 'none';
  219.         }
  220.     });
  221. });
  222. </script>
  223. {% endblock %}