{% extends 'layouts/front.html.twig' %}
{% block bodyClass %}interne{% endblock %}
{% block content %}
<section class="title-page" style="background:url({{ asset('uploads/'~blocs.live_bloc_title.image) }})">
<div class="container">
<div class="row">
<div class="head_page">
<div class="head"> {{ blocs.live_bloc_title.title }} </div>
<div class="sperateur"></div>
<div class="sub_title"> {{ blocs.live_bloc_title.description|raw }} </div>
</div>
<div class="arrows_head">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492"
style="enable-background:new 0 0 492 492;" xml:space="preserve" fill="#fff">
<g>
<g>
<path xmlns="http://www.w3.org/2000/svg" fill=""
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"/>
</g></svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492" style="enable-background:new 0 0 492 492;"
xml:space="preserve" fill="#fff">
<g>
<g>
<path xmlns="http://www.w3.org/2000/svg" fill=""
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"/>
</g></svg>
</a>
</div>
</div>
</div>
</section>
<section class="breadcumbs">
<div class="container">
<div class="row">
<div class="crumbs"><a href="#"> Home </a> > <a href=""> Formation en Live </a> > <a href=""> Live </a>
</div>
</div>
</div>
</section>
<section class="bloc1">
<div class="container">
<div class="row">
<div class="blocs">
<form id="filter">
<div class="colf">
<p class="title_filter"> Vous recherchez ? </p>
</div>
<div class="colf">
<input id="keywords" name="keywords" type="text" class="input" placeholder="Mots clés.."
value="{{ app.request.get('keywords', '') }}">
</div>
<div class="colf">
<div id="date-picker-example" class="md-form md-outline input-with-post-icon">
<input name="date" placeholder="Select date" type="text" id="date"
class="form-control js-datepicker" value="{{ app.request.get('date', '') }}">
<i class="fa fa-calendar input-prefix" tabindex=0></i>
</div>
</div>
<div class="colf">
<button type="submit" class="submit" /><i class="icon icon-left-arrow gly-rotate"> </i> Rechercher</button>
</div>
</form>
</div>
</div>
</div>
</section>
<section class="stage">
<div class="container">
<div class="row">
<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>
<div class="stage_list">
{% if formations|length > 0 %}
{% for formation in formations %}
<div class="forma forma_stage live">
<div class="image">
<a class="pointer_link" href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> </a>
<img src="{{ asset('uploads/'~formation.image) }}">
<div class="formation_live">
<div class="date_live"> {{ formation.date|format_datetime('long', 'short', locale='fr') }} </div>
<div class="cat_live"> #{{ formation.category }} </div>
</div>
<div class="bande_live"> LIVE</div>
</div>
<div class="conten-formation">
<div class="title-content-formation"><a
href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.coach }} </a></div>
<div class="location"><a href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.title }} </a></div>
<div class="sperateur"></div>
<div class="expert">{{ formation.description|excerpt(100) }}</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="alert alert-info" role="alert">
<p>Aucun live n’est actuellement programmé, n’hésitez pas à consulter nos autres rubriques ! </p>
<p> Restez connecté ou <a href="/connexion"> inscrivez-vous </a> à notre newsletter <br> pour connaître les dates des prochains lives ! </p>
</div>
{% endif %}
</div>
</div>
{% if formations|length > 0 %}
<div class="row">
<div class="link_actus">
<input type="hidden" id="page" value="{{ page }}"/>
<input type="hidden" id="limit" value="{{ limit }}"/>
<a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
<img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
</div>
</div>
{% endif %}
</div>
</section>
{% if videos|length > 0 %}
<section class="actualite vidoes">
<div class="container">
<div class="row section-head">
<h2 class="title"> Découvrez aussi nos vidéos E-learning</h2>
<div class="sperateur"></div>
</div>
<div class="row">
<div class="list-actus live_video">
{% for video in videos %}
<div class="actus actus_video">
<a class="pointer_link" href="{{ path('page_elearning_single', {slug: video.slug}) }}"> </a>
<div class="actus-img" style="background:url('{{ asset('uploads/'~video.image) }}')">
<video src=""></video>
</div>
<div class="content-actus live_content">
<div class="sous-titre"><a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> {{ video.title }} </a></div>
<div class="titre live_titre"><a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> avec <b> {{ video.coach }} </b> </a></div>
<div class="sperateur"></div>
<div class="expert">{{ video.description|excerpt(100) }}</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="row">
<div class="link_actus">
<a href="{{ path('page_elearning') }}"> <i class="icon icon-left-arrow gly-rotate"></i> Toutes nos vidéos E-learning </a>
</div>
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
$(function () {
$('#load-more').on('click', function (e) {
e.preventDefault();
$('#load-more').hide();
$('#img-loading').show();
$.ajax({
url: Routing.generate('page_nos_formations_live_paginate'),
data: {
'page': $('#page').val(),
'limit': $('#limit').val(),
'keywords': $('#keywords').val(),
'date': $('#date').val(),
},
success: function (html) {
if (html != '') {
$('.stage_list').append(html);
var page = parseInt($('#page').val()) + 1;
$('#page').val(page);
$('#load-more').show();
}
$('#img-loading').hide();
}
});
});
});
</script>
{% endblock %}