Commit 462de980 by Julien Jorry

Fix login button for mobile

parent 686c2aba
{% if app.user is null %}
<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 %}
\ No newline at end of file
...@@ -2,8 +2,16 @@ ...@@ -2,8 +2,16 @@
{% block content %} {% block content %}
<div class='container homepage'> <div class='container homepage'>
{# 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} %}
<div class='row mt-3'> <div class='row mt-3'>
<div class='col-12 order-2 order-md-1 col-md-3 order-sm-2 col-sm-12 col-lg-3'> <div class='col-12 order-3 order-md-1 col-md-3 order-sm-3 col-sm-12 col-lg-3'>
{% block colonne_gauche %} {% block colonne_gauche %}
{% include '@kohinos/common/stats.html.twig' %} {% include '@kohinos/common/stats.html.twig' %}
{% include '@kohinos/common/groupes.html.twig' %} {% include '@kohinos/common/groupes.html.twig' %}
...@@ -12,20 +20,17 @@ ...@@ -12,20 +20,17 @@
</div> </div>
<div class='col-12 order-1 order-md-2 col-md-9 order-sm-1 col-sm-12 col-lg-6 text-center'> <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 %} {% block colonne_centre %}
<div class='d-block d-sm-block d-md-block d-lg-none'>
{% include '@kohinos/common/loginbutton.html.twig' %}
</div>
{% include '@kohinos/block/useradmin.html.twig' %} {% include '@kohinos/block/useradmin.html.twig' %}
{% endblock colonne_centre %} {% endblock colonne_centre %}
</div> </div>
<div class='col-12 order-3 order-md-3 col-md-12 order-sm-3 col-sm-12 col-lg-3'> <div class='col-12 order-2 order-md-3 col-md-9 order-sm-2 col-sm-12 col-lg-3'>
{% block colonne_droite %} {% block colonne_droite %}
{% if app.user is null %} <div class='d-none d-sm-none d-md-none d-lg-block'>
{% set modal_id = 'mlcloginmodal' %} {% include '@kohinos/common/loginbutton.html.twig' %}
{% set modal_title = 'Se connecter'|trans %} </div>
{% set modal_content %}
{% include '@kohinos/common/login.html.twig' %}
{% endset %}
{% include '@kohinos/block/modal.html.twig' with {'btn_primary' : null, 'btn_secondary' : null} %}
<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 '@kohinos/common/news.html.twig' %} {% include '@kohinos/common/news.html.twig' %}
{% endblock colonne_droite %} {% endblock colonne_droite %}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment