templates/front/formation_live/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/front.html.twig' %}
  2. {% block bodyClass %}interne{% endblock %}
  3. {% block content %}
  4.     <section class="title-page" style="background:url({{ asset('uploads/'~blocs.live_bloc_title.image) }})">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="head_page">
  8.                     <div class="head">  {{ blocs.live_bloc_title.title }} </div>
  9.                     <div class="sperateur"></div>
  10.                     <div class="sub_title"> {{ blocs.live_bloc_title.description|raw }}  </div>
  11.                 </div>
  12.                 <div class="arrows_head">
  13.                     <a href="#">
  14.                         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
  15.                              id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492"
  16.                              style="enable-background:new 0 0 492 492;" xml:space="preserve" fill="#fff">
  17.                     <g>
  18.                         <g>
  19.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  20.                                   d="M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z"/>
  21.                         </g></svg>
  22.                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
  23.                          id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492" style="enable-background:new 0 0 492 492;"
  24.                          xml:space="preserve" fill="#fff">
  25.                     <g>
  26.                         <g>
  27.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  28.                                   d="M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z"/>
  29.                         </g></svg>
  30.                     </a>
  31.                 </div>
  32.             </div>
  33.         </div>
  34.     </section>
  35.     <section class="breadcumbs">
  36.         <div class="container">
  37.             <div class="row">
  38.                 <div class="crumbs"><a href="#"> Home </a> > <a href=""> Formation en Live </a> > <a href=""> Live </a>
  39.                 </div>
  40.             </div>
  41.         </div>
  42.     </section>
  43.     <section class="bloc1">
  44.         <div class="container">
  45.             <div class="row">
  46.                 <div class="blocs">
  47.                     <form id="filter">
  48.                         <div class="colf">
  49.                             <p class="title_filter"> Vous recherchez ? </p>
  50.                         </div>
  51.                         <div class="colf">
  52.                             <input id="keywords" name="keywords" type="text" class="input" placeholder="Mots clés.."
  53.                                    value="{{ app.request.get('keywords', '') }}">
  54.                         </div>
  55.                         <div class="colf">
  56.                             <div id="date-picker-example" class="md-form md-outline input-with-post-icon">
  57.                                 <input name="date" placeholder="Select date" type="text" id="date"
  58.                                        class="form-control js-datepicker" value="{{ app.request.get('date', '') }}">
  59.                                 <i class="fa fa-calendar input-prefix" tabindex=0></i>
  60.                             </div>
  61.                         </div>
  62.                         <div class="colf">
  63.                             <button type="submit" class="submit" /><i class="icon icon-left-arrow gly-rotate">  </i>  Rechercher</button>
  64.                         </div>
  65.                     </form>
  66.                 </div>
  67.             </div>
  68.         </div>
  69.     </section>
  70.     <section class="stage">
  71.         <div class="container">
  72.             <div class="row">
  73.                 <h5 style="text-align: center;width: 60%;margin: auto;padding-bottom: 50px;">Abonnez-vous aux abonnements Saco Education et souscrivez à l’option à 4€ par mois pour découvrir tous les live sur sacoeducation.com !</h5>
  74.                 <div class="stage_list">
  75.                     {% if formations|length > 0 %}
  76.                         {% for formation in formations %}
  77.                             <div class="forma forma_stage live">
  78.                                 <div class="image">
  79.                                     <a class="pointer_link" href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> </a>
  80.                                     <img src="{{ asset('uploads/'~formation.image) }}">
  81.                                     <div class="formation_live">
  82.                                         <div class="date_live"> {{ formation.date|format_datetime('long', 'short', locale='fr') }} </div>
  83.                                         <div class="cat_live"> #{{ formation.category }} </div>
  84.                                     </div>
  85.                                     <div class="bande_live"> LIVE</div>
  86.                                 </div>
  87.                                 <div class="conten-formation">
  88.                                     <div class="title-content-formation"><a
  89.                                                 href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.coach }}  </a></div>
  90.                                     <div class="location"><a href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.title }} </a></div>
  91.                                     <div class="sperateur"></div>
  92.                                     <div class="expert">{{ formation.description|excerpt(100) }}</div>
  93.                                 </div>
  94.                             </div>
  95.                         {% endfor %}
  96.                     {% else %}
  97.                         <div class="alert alert-info" role="alert">
  98.                             <p>Aucun live n’est actuellement programmé, n’hésitez pas à consulter nos autres rubriques ! </p>
  99.                             <p> Restez connecté ou <a href="/connexion"> inscrivez-vous </a> à notre newsletter <br> pour connaître les dates des prochains lives ! </p>
  100.                         </div>
  101.                     {% endif %}
  102.                 </div>
  103.             </div>
  104.             {% if formations|length > 0 %}
  105.                 <div class="row">
  106.                     <div class="link_actus">
  107.                         <input type="hidden" id="page" value="{{ page }}"/>
  108.                         <input type="hidden" id="limit" value="{{ limit }}"/>
  109.                         <a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
  110.                         <img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
  111.                     </div>
  112.                 </div>
  113.             {% endif %}
  114.         </div>
  115.     </section>
  116.     {% if videos|length > 0 %}
  117.         <section class="actualite vidoes">
  118.             <div class="container">
  119.                 <div class="row section-head">
  120.                     <h2 class="title"> Découvrez aussi nos vidéos E-learning</h2>
  121.                     <div class="sperateur"></div>
  122.                 </div>
  123.                 <div class="row">
  124.                     <div class="list-actus live_video">
  125.                         {% for video in videos %}
  126.                             <div class="actus actus_video">
  127.                                 <a class="pointer_link" href="{{ path('page_elearning_single', {slug: video.slug}) }}"> </a>
  128.                                 <div class="actus-img" style="background:url('{{ asset('uploads/'~video.image) }}')">
  129.                                     <video src=""></video>
  130.                                 </div>
  131.                                 <div class="content-actus live_content">
  132.                                     <div class="sous-titre"><a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> {{ video.title }} </a></div>
  133.                                     <div class="titre live_titre"><a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> avec <b> {{ video.coach }} </b> </a></div>
  134.                                     <div class="sperateur"></div>
  135.                                     <div class="expert">{{ video.description|excerpt(100) }}</div>
  136.                                 </div>
  137.                             </div>
  138.                         {% endfor %}
  139.                     </div>
  140.                 </div>
  141.                 <div class="row">
  142.                     <div class="link_actus">
  143.                         <a href="{{ path('page_elearning') }}"> <i class="icon icon-left-arrow gly-rotate"></i> Toutes nos vidéos E-learning </a>
  144.                     </div>
  145.                 </div>
  146.             </div>
  147.         </section>
  148.     {% endif %}
  149. {% endblock %}
  150. {% block javascripts %}
  151.     {{ parent() }}
  152.     <script type="text/javascript">
  153.         $(function () {
  154.             $('#load-more').on('click', function (e) {
  155.                 e.preventDefault();
  156.                 $('#load-more').hide();
  157.                 $('#img-loading').show();
  158.                 $.ajax({
  159.                     url: Routing.generate('page_nos_formations_live_paginate'),
  160.                     data: {
  161.                         'page': $('#page').val(),
  162.                         'limit': $('#limit').val(),
  163.                         'keywords': $('#keywords').val(),
  164.                         'date': $('#date').val(),
  165.                     },
  166.                     success: function (html) {
  167.                         if (html != '') {
  168.                             $('.stage_list').append(html);
  169.                             var page = parseInt($('#page').val()) + 1;
  170.                             $('#page').val(page);
  171.                             $('#load-more').show();
  172.                         }
  173.                         $('#img-loading').hide();
  174.                     }
  175.                 });
  176.             });
  177.         });
  178.     </script>
  179. {% endblock %}