2018-04-04 16:25:25 +02:00
|
|
|
{% trans_default_domain 'FOSUserBundle' %}
|
|
|
|
{% block loginchoices %}
|
|
|
|
<div class="loginland">
|
|
|
|
<div class="well">
|
|
|
|
<div class="login-choices">
|
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
2018-04-05 17:24:43 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
2018-04-17 14:30:15 +02:00
|
|
|
<div id="menu-dashboard">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li>
|
2018-04-17 14:52:31 +02:00
|
|
|
<a class="btn btn-default" href="{{ path('homepage') }}" title="accueil Caisse">
|
|
|
|
<i class="fa fa-home"></i>
|
|
|
|
</a>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<a class="btn btn-default" href="{{ path('dashboard') }}">
|
|
|
|
<i class="fa fa-list"></i>
|
|
|
|
Dashboard
|
|
|
|
</a>
|
2018-04-17 14:30:15 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-04-17 14:52:31 +02:00
|
|
|
<a class="btn btn-default" href="{{ path('productcategory_index') }}">
|
|
|
|
<i class="fa fa-gears"></i>
|
2018-04-17 14:30:15 +02:00
|
|
|
Catégories
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2018-04-17 14:52:31 +02:00
|
|
|
<a class="btn btn-default" href="{{ path('product_index') }}" data-toggle="tab">
|
2018-04-17 14:30:15 +02:00
|
|
|
Produits
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-17 15:41:00 +02:00
|
|
|
<li>
|
|
|
|
<a class="btn btn-default" href="{{ path('festival_index') }}"
|
|
|
|
data-toggle="tab">
|
|
|
|
<i class="fa fa-hat"></i>
|
|
|
|
Festivals
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-17 14:30:15 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2018-04-05 17:24:43 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 text-right">
|
2018-04-17 14:52:31 +02:00
|
|
|
Bonjour
|
|
|
|
{#<a href="href={{ path('fos_user_profile_edit') }}">#}
|
|
|
|
{##}
|
|
|
|
{#</a>#}
|
|
|
|
{{ app.user.username }}
|
|
|
|
|
|
|
|
|
|
2018-04-05 17:24:43 +02:00
|
|
|
<a class="btn btn-default" href="{{ path('fos_user_security_logout') }}">
|
|
|
|
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2018-04-04 16:25:25 +02:00
|
|
|
{% 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 %}
|