templates/front/formation_coaching/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 coach-page" style="background:url({{ asset('uploads/'~blocs.coaching_bloc_title.image) }})">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="head_page">
  8.                     <div class="head">  {{ blocs.coaching_bloc_title.title }} </div>
  9.                     <div class="sperateur"></div>
  10.                     <div class="sub_title"> {{ blocs.coaching_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;"
  17.                              xml:space="preserve" fill="#fff">
  18.                     <g>
  19.                         <g>
  20.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  21.                                   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"/>
  22.                         </g></svg>
  23.                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
  24.                          id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492" style="enable-background:new 0 0 492 492;"
  25.                          xml:space="preserve" fill="#fff">
  26.                     <g>
  27.                         <g>
  28.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  29.                                   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"/>
  30.                         </g></svg>
  31.                     </a>
  32.                 </div>
  33.             </div>
  34.         </div>
  35.     </section>
  36.     <section class="breadcumbs">
  37.         <div class="container">
  38.             <div class="row">
  39.                 <div class="crumbs"><a href="#"> Home </a> > <a href=""> Formation en Live </a> > <a
  40.                             href="">Coaching</a>
  41.                 </div>
  42.             </div>
  43.         </div>
  44.     </section>
  45.     <section class="bloc1">
  46.         <div class="container">
  47.             <div class="row">
  48.                 <div class="blocs">
  49.                     <form id="filter">
  50.                         <div class="colf">
  51.                             <p class="title_filter"> Vous recherchez ? </p>
  52.                         </div>
  53.                         <div class="colf">
  54.                             <input id="keywords" name="keywords" type="text" class="input" placeholder="Mots clés.."
  55.                                    value="{{ app.request.get('keywords', '') }}">
  56.                         </div>
  57.                         <div class="colf">
  58.                               <button type="submit" class="submit" /><i class="icon icon-left-arrow gly-rotate">  </i>  Rechercher</button>
  59.                         </div>
  60.                     </form>
  61.                 </div>
  62.             </div>
  63.         </div>
  64.     </section>
  65.     <section class="stage coach-section">
  66.         <div class="container">
  67.             <div class="row">
  68.                 <div class="stage_list">
  69.                     {% if formations|length > 0 %}
  70.                         {% for formation in formations %}
  71.                             <div class="forma forma_stage live forma_coach">
  72.                                 <div class="image"><a class="pointer_link"
  73.                                                       href="{{ path('page_formation_coaching_single', {slug: formation.slug}) }}"> </a>
  74.                                     <img src="{{ asset('uploads/'~formation.image) }}">
  75.                                     <div class="formation_live coach">
  76.                                         <div class="cat_live"> #{{ formation.category }} </div>
  77.                                     </div>
  78.                                     <div class="bande_live"> Coaching</div>
  79.                                 </div>
  80.                                 <div class="conten-formation">
  81.                                     <div class="title-content-formation">
  82.                                         <a href="{{ path('page_formation_coaching_single', {slug: formation.slug}) }}">{{ formation.title }}</a>
  83.                                     </div>
  84.                                     <div class="location">
  85.                                         <a href="{{ path('page_formation_coaching_single', {slug: formation.slug}) }}">
  86.                                             Par <b> {{ formation.coach.utilisateur }} </b> </a>
  87.                                     </div>
  88.                                     <div class="sperateur"></div>
  89.                                     <div class="expert">{{ formation.description|excerpt(100) }}</div>
  90.                                 </div>
  91.                             </div>
  92.                         {% endfor %}
  93.                     {% else %}
  94.                         <div class="alert alert-info" role="alert">
  95.                             Pas de formation disponible pour le moment.
  96.                         </div>
  97.                     {% endif %}
  98.                 </div>
  99.             </div>
  100.             {% if formations|length > 0 %}
  101.                 <div class="row">
  102.                     <div class="link_actus">
  103.                         <input type="hidden" id="page" value="{{ page }}"/>
  104.                         <input type="hidden" id="limit" value="{{ limit }}"/>
  105.                         <a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
  106.                         <img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
  107.                     </div>
  108.                 </div>
  109.             {% endif %}
  110.         </div>
  111.     </section>
  112.     {% if videos|length > 0 %}
  113.         <section class="actualite vidoes">
  114.             <div class="container">
  115.                 <div class="row section-head">
  116.                     <h2 class="title"> Découvrez aussi nos vidéos E-learning</h2>
  117.                     <div class="sperateur"></div>
  118.                 </div>
  119.                 <div class="row">
  120.                     <div class="list-actus live_video">
  121.                         {% for video in videos %}
  122.                             <div class="actus actus_video">
  123.                                 <a class="pointer_link"
  124.                                    href="{{ path('page_elearning_single', {slug: video.slug}) }}"> </a>
  125.                                 <div class="actus-img" style="background:url('{{ asset('uploads/'~video.image) }}')">
  126.                                     <video src=""></video>
  127.                                 </div>
  128.                                 <div class="content-actus live_content">
  129.                                     <div class="sous-titre"><a
  130.                                                 href="{{ path('page_elearning_single', {slug: video.slug}) }}"> {{ video.title }} </a>
  131.                                     </div>
  132.                                     <div class="titre live_titre"><a
  133.                                                 href="{{ path('page_elearning_single', {slug: video.slug}) }}"> avec
  134.                                             <b> {{ video.coach }} </b> </a></div>
  135.                                     <div class="sperateur"></div>
  136.                                     <div class="expert">{{ video.description|excerpt(100) }}</div>
  137.                                 </div>
  138.                             </div>
  139.                         {% endfor %}
  140.                     </div>
  141.                 </div>
  142.                 <div class="row">
  143.                     <div class="link_actus">
  144.                         <a href="{{ path('page_elearning') }}"> <i class="icon icon-left-arrow gly-rotate"></i> Toutes nos vidéos
  145.                             E-learning </a>
  146.                     </div>
  147.                 </div>
  148.             </div>
  149.         </section>
  150.     {% endif %}
  151. {% endblock %}
  152.         {% block javascripts %}
  153.             {{ parent() }}
  154.             <script type="text/javascript">
  155.                 $(function () {
  156.                     $('#load-more').on('click', function (e) {
  157.                         e.preventDefault();
  158.                         $('#load-more').hide();
  159.                         $('#img-loading').show();
  160.                         $.ajax({
  161.                             url: Routing.generate('page_nos_formations_live_paginate'),
  162.                             data: {
  163.                                 'page': $('#page').val(),
  164.                                 'limit': $('#limit').val(),
  165.                                 'keywords': $('#keywords').val(),
  166.                                 'date': $('#date').val(),
  167.                             },
  168.                             success: function (html) {
  169.                                 if (html != '') {
  170.                                     $('.stage_list').append(html);
  171.                                     var page = parseInt($('#page').val()) + 1;
  172.                                     $('#page').val(page);
  173.                                     $('#load-more').show();
  174.                                 }
  175.                                 $('#img-loading').hide();
  176.                             }
  177.                         });
  178.                     });
  179.                 });
  180.             </script>
  181.         {% endblock %}