index.html.twig 2.35 KB
Newer Older
Julien Jorry committed
1 2
{% extends '@kohinos/common/layout.html.twig' %}

Julien Jorry committed
3 4 5
{% block meta %}
	{{ parent() }}
    {% if KOH_MLC_URL|default('') != '' %}
6 7
        <link rel="canonical" href="{{ KOH_MLC_URL }}"/>
        <link rel="preconnect" href="{{ KOH_MLC_URL }}"/>
Julien Jorry committed
8 9 10
    {% endif %}
{% endblock meta %}

Julien Jorry committed
11 12
{% block content %}
    <div class='container homepage'>
13 14 15 16 17 18 19 20
    	{# LOGIN MODALE#}
    	{% set modal_id = 'mlcloginmodal' %}
		{% set modal_title = 'Se connecter'|trans %}
		{% set modal_content %}
			{% include '@kohinos/common/login.html.twig' %}
		{% endset %}
		{% include '@kohinos/block/modal.html.twig' with {'btn_primary' : null, 'btn_secondary' : null} %}

Julien Jorry committed
21
		<div class='row mt-3'>
Julien Jorry committed
22
		 	<div class='d-none d-md-block col-12 order-3 order-md-1 col-md-3 order-sm-3 col-sm-12 col-lg-3'>
Julien Jorry committed
23 24 25 26 27 28 29 30
		 		{% block colonne_gauche %}
					{% include '@kohinos/common/stats.html.twig' %}
					{% include '@kohinos/common/groupes.html.twig' %}
					{% include '@kohinos/common/rubriques.html.twig' %}
				{% endblock colonne_gauche %}
			</div>
			<div class='col-12 order-1 order-md-2 col-md-9 order-sm-1 col-sm-12 col-lg-6 text-center'>
				{% block colonne_centre %}
31 32 33
					<div class='d-block d-sm-block d-md-block d-lg-none'>
						{% include '@kohinos/common/loginbutton.html.twig' %}
					</div>
Julien Jorry committed
34 35 36
					{% include '@kohinos/block/useradmin.html.twig' %}
				{% endblock colonne_centre %}
			</div>
Julien Jorry committed
37
			<div class='d-none d-md-block  col-12 order-2 order-md-3 col-md-9 order-sm-2 col-sm-12 col-lg-3'>
Julien Jorry committed
38
				{% block colonne_droite %}
39 40 41
					<div class='d-none d-sm-none d-md-none d-lg-block'>
						{% include '@kohinos/common/loginbutton.html.twig' %}
					</div>
Julien Jorry committed
42 43 44 45 46
					{% include '@kohinos/common/news.html.twig' %}
				{% endblock colonne_droite %}
			</div>
		</div>
	</div>
47 48 49 50 51 52 53 54 55 56 57
	
	{# LOGIN ADHESION HELLOASSO #}
	{% set modal_id = 'mlcadhesionmodal' %}
	{% set modal_title = 'Payer votre cotisation sur Helloasso'|trans %}
	{% set modal_content %}
		<p>Bravo, vous venez de créer votre compte {{ KOH_MLC_NAME|default('') }}.</p>
		<p>Pour pouvoir utiliser celui-ci, vous devez cotiser via HelloAsso sur ce lien :</p><br/>
		<p><a href='{{KOH_HELLOASSO_URL_COTISATION_ADHERENT}}' target='_blank'>COTISER VIA HELLOASSO</a></p>
	{% endset %}
	{% include '@kohinos/block/modal.html.twig' with {'btn_primary' : null, 'btn_secondary' : null} %}

Julien Jorry committed
58 59 60 61 62
{% endblock %}

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