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