templates/front/stage_academy/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 stage-acdemie" style="background:url({{ asset('uploads/'~blocs.stage_academie_bloc_title.image) }})">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="head_page">
  8.                     <div class="head"> {{ blocs.stage_academie_bloc_title.title }}</div>
  9.                     <div class="sperateur"></div>
  10.                     <div class="sub_title"> {{ blocs.stage_academie_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=""> Stages Académie </a></div>
  39.             </div>
  40.         </div>
  41.     </section>
  42.     <section class="bloc1">
  43.         <div class="container">
  44.             <div class="row">
  45.                 <div class="blocs">
  46.                     <form id="filter">
  47.                         <div class="colf">
  48.                             <p class="title_filter"> Vous recherchez ? </p>
  49.                         </div>
  50.                         <div class="colf">
  51.                             <select id="ville" class="form-control" name="ville">
  52.                                 <option value="Paris" {% if app.request.get('ville') == 'Paris' %}selected="selected"{% endif %}>Paris</option>
  53.                                 <option value="Bordeaux" {% if app.request.get('ville') == 'Bordeaux' %}selected="selected"{% endif %}>Bordeaux</option>
  54.                                 <option value="London" {% if app.request.get('ville') == 'London' %}selected="selected"{% endif %}>London</option>
  55.                                 <option value="Lisboa" {% if app.request.get('ville') == 'Lisboa' %}selected="selected"{% endif %}>Lisboa</option>
  56.                             </select>
  57.                         </div>
  58.                         <div class="colf">
  59.                             <input id="keywords" name="keywords" type="text" class="input" placeholder="Mots clés.."
  60.                                    value="{{ app.request.get('keywords', '') }}">
  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.                 <div class="stage_list">
  74.                     {% if stages|length > 0 %}
  75.                         {% for stage in stages %}
  76.                             <div class="forma forma_stage">
  77.                                 <div class="image">
  78.                                     <a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}"><img src="{{ asset('uploads/'~stage.image) }}"></a>
  79.                                     <div class="prise"><a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}">Prise en charge Formation</a></div>
  80.                                 </div>
  81.                                 <div class="conten-formation">
  82.                                     <div class="title-content-formation"><a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}">{{ stage.getSubTitle() }} :</a></div>
  83.                                     <div class="location">  <a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}"> {{ stage.title }} </a></div>
  84.                                     <div class="sperateur"></div>
  85.                                     <div class="expert">{{ stage.description|excerpt(100) }}</div>
  86.                                 </div>
  87.                             </div>
  88.                         {% endfor %}
  89.                     {% else %}
  90.                         <div class="alert alert-info" role="alert">
  91.                             Pas de formation disponible pour le moment.
  92.                         </div>
  93.                     {% endif %}
  94.                 </div>
  95.             </div>
  96.             {% if stages|length > 0 %}
  97.                 <div class="row">
  98.                     <div class="link_actus">
  99.                         <input type="hidden" id="page" value="{{ page }}"/>
  100.                         <input type="hidden" id="limit" value="{{ limit }}"/>
  101.                         <a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
  102.                         <img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
  103.                     </div>
  104.                 </div>
  105.             {% endif %}
  106.         </div>
  107.     </section>
  108. {% endblock %}
  109. {% block javascripts %}
  110.     {{ parent() }}
  111.     <script type="text/javascript">
  112.         $(function () {
  113.             $('#load-more').on('click', function (e) {
  114.                 e.preventDefault();
  115.                 $('#load-more').hide();
  116.                 $('#img-loading').show();
  117.                 $.ajax({
  118.                     url: Routing.generate('page_stage_academie_paginate'),
  119.                     data: {
  120.                         'page': $('#page').val(),
  121.                         'limit': $('#limit').val(),
  122.                         'keywords': $('#keywords').val(),
  123.                         'ville': $('#ville').val(),
  124.                         'date': $('#date').val(),
  125.                     },
  126.                     success: function (html) {
  127.                         if (html != '') {
  128.                             $('.stage_list').append(html);
  129.                             var page = parseInt($('#page').val()) + 1;
  130.                             $('#page').val(page);
  131.                             $('#load-more').show();
  132.                         }
  133.                         $('#img-loading').hide();
  134.                     }
  135.                 });
  136.             });
  137.         });
  138.     </script>
  139. {% endblock %}