{% extends 'common/layout.html.twig' %}

{% block content %}
    <div class='container homepage'>
		<div class='row mt-3'>
		 	<div class='col-12 order-2 order-md-1 col-md-3'>
		 		{% block colonne_gauche %}
					{% include 'common/stats.html.twig' %}
					{% include 'common/groupes.html.twig' %}
					{% include 'common/rubriques.html.twig' %}
				{% endblock colonne_gauche %}
			</div>
			<div class='col-12 order-1 order-md-2 col-md-6 text-center'>
				{% block colonne_centre %}
					{% include 'block/useradmin.html.twig' %}
				{% endblock colonne_centre %}
			</div>
			<div class='col-12 order-3 order-md-3 col-md-3'>
				{% block colonne_droite %}
					{% if app.user is null %}
						{% set modal_id = 'mlcloginmodal' %}
						{% set modal_title = 'Se connecter'|trans %}
						{% set modal_content %}
							{% include 'common/login.html.twig' %}
						{% endset %}
						{% include 'block/modal.html.twig' %}
						<a class='btn btn-primary w-100 mb-4' data-toggle="modal" data-target="#{{ modal_id }}" title='{{'Se connecter'|trans}}' href="{{path('fos_user_security_login')}}">{{'Se connecter'|trans}}</a>
					{% endif %}
					{% include 'common/news.html.twig' %}
				{% endblock colonne_droite %}
			</div>
		</div>
	</div>
{% endblock %}

{% block js %}
{% include 'presta/block/cartejs.html.twig' %}
{% endblock %}
