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

128 lines
6.8 KiB
Twig
Executable File

{% trans_default_domain 'FOSUserBundle' %}
{% block loginchoices %}
<div class="loginland ">
<div class="bg-img padded">
<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 {% if app.request.attributes.get('_route') == 'homepage' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('homepage') }}" title="accueil Caisse">
<i class="fa fa-circle-o-notch "></i>
</a>
<li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'dashboard' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('dashboard') }}">
<i class="fa fa-list"></i>
Dashboard
</a>
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'productcategory_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('productcategory_index') }}">
<i class="fa fa-file-archive-o"></i>
Catégories
<span class="badge">
{{ app.user.categories|length }}
</span>
</a>
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('product_index') }}" data-toggle="tab">
<i class="fa fa-gears"></i>
Produits
<span class="badge">
{{ app.user.products|length }}
</span>
</a>
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('festival_index') }}"
data-toggle="tab">
<i class="fa fa-th-large"></i>
Festivals
<span class="badge">
{{ app.user.festivals|length }}
</span>
</a>
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'history' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('history') }}"
data-toggle="tab">
<i class="fa fa-clock-o"></i>
Historique
</a>
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'import' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('import') }}"
data-toggle="tab">
<i class="fa fa-arrow-circle-o-up"></i>
Import
</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-2 text-right">
Bonjour
<a href="{{ path('fos_user_profile_edit') }}">
<i class="fa fa-user"></i>
{{ app.user.username }}
</a>
|
<a class="btn btn-default" href="{{ path('fos_user_security_logout') }}">
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
</a>
</div>
</div>
{% else %}
<h1 class="text-right">
<a class="btn btn-primary"
href="{{ path('fos_user_security_login') }}">
<i class="fa fa-key"></i>
{{ 'layout.login'|trans }}</a>
<a class="btn btn-default"
href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans }}</a>
</h1>
{% endif %}
</div>
</div>
</div>
{% endblock loginchoices %}