44 lines
1.9 KiB
Twig
44 lines
1.9 KiB
Twig
{% trans_default_domain 'FOSUserBundle' %}
|
|
{% block loginchoices %}
|
|
<div class="loginland">
|
|
<div class="well">
|
|
<div class="login-choices">
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<a class="btn btn-default" href="{{ path('homepage') }}">
|
|
|
|
<i class="fa fa-home"></i>
|
|
Caisse
|
|
</a>
|
|
<a class="btn btn-default" href="{{ path('dashboard') }}">
|
|
<i class="fa fa-list"></i>
|
|
Dashboard
|
|
</a>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
|
|
<a class="btn btn-default" href="{{ path('fos_user_security_logout') }}">
|
|
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% else %}
|
|
<a class="btn btn-default btn-block btn-twitter" href="{{ hwi_oauth_login_url('google') }}">
|
|
<i class="fa fa-google"></i>
|
|
Via {{ 'google' | trans({}, 'HWIOAuthBundle') }}
|
|
</a>
|
|
<br>
|
|
<a class="btn btn-primary"
|
|
href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans }}</a>
|
|
<a class="btn btn-default"
|
|
href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans }}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock loginchoices %}
|