{% extends 'layouts/front.html.twig' %}
{% block bodyClass %}interne{% endblock %}
{% block content %}
<section class="title-page stage-acdemie" style="background:url({{ asset('uploads/'~blocs.stage_academie_bloc_title.image) }})">
<div class="container">
<div class="row">
<div class="head_page">
<div class="head"> {{ blocs.stage_academie_bloc_title.title }}</div>
<div class="sperateur"></div>
<div class="sub_title"> {{ blocs.stage_academie_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=""> Stages Académie </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">
<select id="ville" class="form-control" name="ville">
<option value="Paris" {% if app.request.get('ville') == 'Paris' %}selected="selected"{% endif %}>Paris</option>
<option value="Bordeaux" {% if app.request.get('ville') == 'Bordeaux' %}selected="selected"{% endif %}>Bordeaux</option>
<option value="London" {% if app.request.get('ville') == 'London' %}selected="selected"{% endif %}>London</option>
<option value="Lisboa" {% if app.request.get('ville') == 'Lisboa' %}selected="selected"{% endif %}>Lisboa</option>
</select>
</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">
<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">
<div class="stage_list">
{% if stages|length > 0 %}
{% for stage in stages %}
<div class="forma forma_stage">
<div class="image">
<a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}"><img src="{{ asset('uploads/'~stage.image) }}"></a>
<div class="prise"><a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}">Prise en charge Formation</a></div>
</div>
<div class="conten-formation">
<div class="title-content-formation"><a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}">{{ stage.getSubTitle() }} :</a></div>
<div class="location"> <a href="{{ path('page_stage_academie_details', {slug: stage.slug}) }}"> {{ stage.title }} </a></div>
<div class="sperateur"></div>
<div class="expert">{{ stage.description|excerpt(100) }}</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="alert alert-info" role="alert">
Pas de formation disponible pour le moment.
</div>
{% endif %}
</div>
</div>
{% if stages|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>
{% 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_stage_academie_paginate'),
data: {
'page': $('#page').val(),
'limit': $('#limit').val(),
'keywords': $('#keywords').val(),
'ville': $('#ville').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 %}