<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/stage_academy/index.html.twig */
class __TwigTemplate_862079904d49cee5b75237324f298b80 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'bodyClass' => [$this, 'block_bodyClass'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/stage_academy/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/stage_academy/index.html.twig"));
$this->parent = $this->loadTemplate("layouts/front.html.twig", "front/stage_academy/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_bodyClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
echo "interne";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <section class=\"title-page stage-acdemie\" style=\"background:url(";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 6, $this->source); })()), "stage_academie_bloc_title", [], "any", false, false, false, 6), "image", [], "any", false, false, false, 6))), "html", null, true);
echo ")\">
<div class=\"container\">
<div class=\"row\">
<div class=\"head_page\">
<div class=\"head\"> ";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 10, $this->source); })()), "stage_academie_bloc_title", [], "any", false, false, false, 10), "title", [], "any", false, false, false, 10), "html", null, true);
echo "</div>
<div class=\"sperateur\"></div>
<div class=\"sub_title\"> ";
// line 12
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 12, $this->source); })()), "stage_academie_bloc_title", [], "any", false, false, false, 12), "description", [], "any", false, false, false, 12);
echo " </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\" ";
// line 55
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "request", [], "any", false, false, false, 55), "get", [0 => "ville"], "method", false, false, false, 55) == "Paris")) {
echo "selected=\"selected\"";
}
echo ">Paris</option>
<option value=\"Bordeaux\" ";
// line 56
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "get", [0 => "ville"], "method", false, false, false, 56) == "Bordeaux")) {
echo "selected=\"selected\"";
}
echo ">Bordeaux</option>
<option value=\"London\" ";
// line 57
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "get", [0 => "ville"], "method", false, false, false, 57) == "London")) {
echo "selected=\"selected\"";
}
echo ">London</option>
<option value=\"Lisboa\" ";
// line 58
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "get", [0 => "ville"], "method", false, false, false, 58) == "Lisboa")) {
echo "selected=\"selected\"";
}
echo ">Lisboa</option>
</select>
</div>
<div class=\"colf\">
<input id=\"keywords\" name=\"keywords\" type=\"text\" class=\"input\" placeholder=\"Mots clés..\"
value=\"";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "get", [0 => "keywords", 1 => ""], "method", false, false, false, 63), "html", null, true);
echo "\">
</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\">
";
// line 77
if ((twig_length_filter($this->env, (isset($context["stages"]) || array_key_exists("stages", $context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.', 77, $this->source); })())) > 0)) {
// line 78
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["stages"]) || array_key_exists("stages", $context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.', 78, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["stage"]) {
// line 79
echo " <div class=\"forma forma_stage\">
<div class=\"image\">
<a href=\"";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env, $this->source, $context["stage"], "slug", [], "any", false, false, false, 81)]), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" . twig_get_attribute($this->env, $this->source, $context["stage"], "image", [], "any", false, false, false, 81))), "html", null, true);
echo "\"></a>
<div class=\"prise\"><a href=\"";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env, $this->source, $context["stage"], "slug", [], "any", false, false, false, 82)]), "html", null, true);
echo "\">Prise en charge Formation</a></div>
</div>
<div class=\"conten-formation\">
<div class=\"title-content-formation\"><a href=\"";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env, $this->source, $context["stage"], "slug", [], "any", false, false, false, 85)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stage"], "getSubTitle", [], "method", false, false, false, 85), "html", null, true);
echo " :</a></div>
<div class=\"location\"> <a href=\"";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env, $this->source, $context["stage"], "slug", [], "any", false, false, false, 86)]), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stage"], "title", [], "any", false, false, false, 86), "html", null, true);
echo " </a></div>
<div class=\"sperateur\"></div>
<div class=\"expert\">";
// line 88
echo twig_escape_filter($this->env, $this->extensions['App\Twig\CmsExtension']->excerpt(twig_get_attribute($this->env, $this->source, $context["stage"], "description", [], "any", false, false, false, 88), 100), "html", null, true);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo " ";
} else {
// line 93
echo " <div class=\"alert alert-info\" role=\"alert\">
Pas de formation disponible pour le moment.
</div>
";
}
// line 97
echo " </div>
</div>
";
// line 99
if ((twig_length_filter($this->env, (isset($context["stages"]) || array_key_exists("stages", $context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.', 99, $this->source); })())) > 0)) {
// line 100
echo " <div class=\"row\">
<div class=\"link_actus\">
<input type=\"hidden\" id=\"page\" value=\"";
// line 102
echo twig_escape_filter($this->env, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 102, $this->source); })()), "html", null, true);
echo "\"/>
<input type=\"hidden\" id=\"limit\" value=\"";
// line 103
echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 103, $this->source); })()), "html", null, true);
echo "\"/>
<a id=\"load-more\" href=\"#\"> <i class=\"icon icon-left-arrow gly-rotate\"></i> charger plus </a>
<img id=\"img-loading\" src=\"";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/loading.gif"), "html", null, true);
echo "\" style=\"width: 80px; height: 80px; display: none;\">
</div>
</div>
";
}
// line 109
echo " </div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 113
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 114
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/stage_academy/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 296 => 114, 286 => 113, 274 => 109, 267 => 105, 262 => 103, 258 => 102, 254 => 100, 252 => 99, 248 => 97, 242 => 93, 239 => 92, 229 => 88, 222 => 86, 216 => 85, 210 => 82, 204 => 81, 200 => 79, 195 => 78, 193 => 77, 176 => 63, 166 => 58, 160 => 57, 154 => 56, 148 => 55, 102 => 12, 97 => 10, 89 => 6, 79 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "front/stage_academy/index.html.twig", "/home/saco/subdomains/preprod/templates/front/stage_academy/index.html.twig");
}
}