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

128 lines
6.8 KiB
Twig
Raw Normal View History

2018-04-04 16:25:25 +02:00
{% trans_default_domain 'FOSUserBundle' %}
{% block loginchoices %}
2018-04-20 10:04:29 +02:00
<div class="loginland ">
<div class="bg-img padded">
2018-04-04 16:25:25 +02:00
<div class="login-choices">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
2018-04-05 17:24:43 +02:00
<div class="row">
2018-04-18 14:39:15 +02:00
<div class="col-xs-10">
2018-04-17 14:30:15 +02:00
<div id="menu-dashboard">
<ul class="nav nav-pills">
<li>
2018-04-19 11:26:44 +02:00
<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>
2018-04-17 14:52:31 +02:00
</a>
<li>
<li>
2018-04-19 11:26:44 +02:00
<a class="btn {% if app.request.attributes.get('_route') == 'dashboard' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('dashboard') }}">
2018-04-17 14:52:31 +02:00
<i class="fa fa-list"></i>
Dashboard
</a>
2018-04-17 14:30:15 +02:00
</li>
<li>
2018-04-19 11:26:44 +02:00
<a class="btn {% if app.request.attributes.get('_route') == 'productcategory_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('productcategory_index') }}">
2018-04-18 14:21:58 +02:00
<i class="fa fa-file-archive-o"></i>
2018-04-17 14:30:15 +02:00
Catégories
2018-04-19 11:41:05 +02:00
2018-04-20 12:15:53 +02:00
<span class="badge">
2018-04-19 11:41:05 +02:00
{{ app.user.categories|length }}
2018-04-20 12:15:53 +02:00
</span>
2018-04-17 14:30:15 +02:00
</a>
</li>
<li>
2018-04-19 11:26:44 +02:00
<a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('product_index') }}" data-toggle="tab">
2018-04-18 14:21:58 +02:00
<i class="fa fa-gears"></i>
2018-04-17 14:30:15 +02:00
Produits
2018-04-20 12:15:53 +02:00
<span class="badge">
{{ app.user.products|length }}
</span>
2018-04-17 14:30:15 +02:00
</a>
</li>
2018-04-17 15:41:00 +02:00
<li>
2018-04-19 11:26:44 +02:00
<a class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('festival_index') }}"
2018-04-17 15:41:00 +02:00
data-toggle="tab">
2018-04-18 14:21:58 +02:00
<i class="fa fa-th-large"></i>
2018-04-17 15:41:00 +02:00
Festivals
2018-04-20 12:15:53 +02:00
<span class="badge">
2018-04-19 11:41:05 +02:00
{{ app.user.festivals|length }}
2018-04-20 12:15:53 +02:00
</span>
2018-04-17 15:41:00 +02:00
</a>
</li>
2018-04-18 15:19:00 +02:00
<li>
2018-04-19 11:26:44 +02:00
<a class="btn {% if app.request.attributes.get('_route') == 'history' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('history') }}"
2018-04-18 15:19:00 +02:00
data-toggle="tab">
2018-04-19 11:26:44 +02:00
<i class="fa fa-clock-o"></i>
2018-04-18 15:19:00 +02:00
Historique
</a>
</li>
2018-04-19 11:26:44 +02:00
<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>
2018-04-17 14:30:15 +02:00
</ul>
</div>
2018-04-05 17:24:43 +02:00
</div>
2018-04-18 14:39:15 +02:00
<div class="col-xs-2 text-right">
2018-04-17 14:52:31 +02:00
Bonjour
2018-04-19 15:08:13 +02:00
<a href="{{ path('fos_user_profile_edit') }}">
2018-04-17 14:52:31 +02:00
2018-04-19 15:08:13 +02:00
<i class="fa fa-user"></i>
{{ app.user.username }}
</a>
2018-04-17 14:52:31 +02:00
|
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 %}
2018-04-20 10:04:29 +02:00
<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>
2018-04-04 16:25:25 +02:00
{% endif %}
</div>
</div>
</div>
{% endblock loginchoices %}