caisse-bliss/app/Resources/views/default/login-choices.html.twig

82 lines
4.1 KiB
Twig
Executable File

{% 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-10">
<div id="menu-dashboard">
<ul class="nav nav-pills">
<li>
<a class="btn btn-default" href="{{ path('homepage') }}" title="accueil Caisse">
<i class="fa fa-circle-o-notch fa-2x"></i>
</a>
<li>
<li>
<a class="btn btn-default" href="{{ path('dashboard') }}">
<i class="fa fa-list"></i>
Dashboard
</a>
</li>
<li>
<a class="btn btn-default" href="{{ path('productcategory_index') }}">
<i class="fa fa-file-archive-o"></i>
Catégories
</a>
</li>
<li>
<a class="btn btn-default" href="{{ path('product_index') }}" data-toggle="tab">
<i class="fa fa-gears"></i>
Produits
</a>
</li>
<li>
<a class="btn btn-default" href="{{ path('festival_index') }}"
data-toggle="tab">
<i class="fa fa-th-large"></i>
Festivals
</a>
</li>
<li>
<a class="btn btn-default" href="{{ path('history') }}"
data-toggle="tab">
<i class="fa fa-clock"></i>
Historique
</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-2 text-right">
Bonjour
{#<a href="href={{ path('fos_user_profile_edit') }}">#}
{##}
{#</a>#}
{{ app.user.username }}
|
<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 %}