2018-04-04 16:25:25 +02:00
|
|
|
{% block loginchoices %}
|
2018-04-20 10:04:29 +02:00
|
|
|
<div class="loginland ">
|
2018-04-25 12:00:01 +02:00
|
|
|
|
|
|
|
<div class="login-choices">
|
2018-05-08 15:21:38 +02:00
|
|
|
|
2018-04-25 12:00:01 +02:00
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
|
|
|
<div class="row">
|
2019-06-12 14:13:36 +02:00
|
|
|
<div class="col-xs-12 col-sm-9">
|
2018-04-25 12:00:01 +02:00
|
|
|
<div id="menu-dashboard">
|
2019-02-21 15:55:28 +01:00
|
|
|
<ul class="nav">
|
2018-04-25 12:00:01 +02:00
|
|
|
<li>
|
2019-02-21 15:55:28 +01:00
|
|
|
<a href="{{ path('homepage') }}" class="btn btn-default logo-home">
|
2018-05-08 15:21:38 +02:00
|
|
|
<i class="fa fa-home"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
{% trans %}menu.title{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
2018-05-08 15:21:38 +02:00
|
|
|
</li>
|
2018-04-25 12:00:01 +02:00
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'dashboard' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
|
|
|
{% endif %}" href="{{ path('dashboard') }}">
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-list"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
{% trans %}menu.dashboard{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'productcategory_index' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
2018-05-09 10:27:59 +02:00
|
|
|
{% endif %} "
|
|
|
|
href="{{ path('productcategory_index') }}">
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-file-archive-o"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
{% trans %}menu.categories{% endtrans %}
|
2018-04-25 12:00:01 +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-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
2018-05-09 10:27:59 +02:00
|
|
|
{% endif %} "
|
|
|
|
href="{{ path('product_index') }}"
|
|
|
|
>
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-gears"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
{% trans %}menu.products{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
<span class="badge">
|
2018-04-20 12:15:53 +02:00
|
|
|
{{ app.user.products|length }}
|
|
|
|
</span>
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
2018-05-09 10:27:59 +02:00
|
|
|
{% endif %}
|
|
|
|
" href='{{ path('festival_index') }}'
|
|
|
|
>
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-th-large"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
|
|
|
|
{% trans %}menu.festivals{% endtrans %}
|
2018-04-25 12:00:01 +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-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2019-06-12 15:24:13 +02:00
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'seriefestival_index' %}
|
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
|
|
|
{% endif %}
|
|
|
|
" href='{{ path('seriefestival_index') }}'
|
|
|
|
>
|
|
|
|
<i class="fa fa-th-large"></i>
|
|
|
|
|
|
|
|
{% trans %}menu.series{% endtrans %}
|
|
|
|
<span class="badge">
|
|
|
|
{{ app.user.seriesFestivals|length }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-25 12:00:01 +02:00
|
|
|
<li>
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'history' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
|
|
|
{% endif %}" href="{{ path('history') }}"
|
2018-05-09 10:27:59 +02:00
|
|
|
>
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-clock-o"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
{% trans %}menu.history{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2018-04-19 11:26:44 +02:00
|
|
|
|
2018-04-25 12:00:01 +02:00
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'import' %}
|
2018-04-19 11:26:44 +02:00
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
|
|
|
{% endif %}" href="{{ path('import') }}"
|
2018-05-22 16:58:34 +02:00
|
|
|
>
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-arrow-circle-o-up"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
|
|
|
|
{% trans %}menu.import{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-22 17:10:01 +02:00
|
|
|
<li>
|
|
|
|
|
|
|
|
<a class="btn {% if app.request.attributes.get('_route') == 'previsionnel' %}
|
|
|
|
btn-success
|
|
|
|
{% else %}
|
|
|
|
btn-default
|
|
|
|
{% endif %}" href="{{ path('previsionnel') }}"
|
|
|
|
>
|
|
|
|
<i class="fa fa-arrow-circle-o-up"></i>
|
2018-09-18 16:36:14 +02:00
|
|
|
|
|
|
|
{% trans %}menu.future{% endtrans %}
|
2018-08-22 17:10:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-25 12:00:01 +02:00
|
|
|
</ul>
|
2018-04-05 17:24:43 +02:00
|
|
|
</div>
|
2018-04-25 12:00:01 +02:00
|
|
|
</div>
|
2019-06-12 14:13:36 +02:00
|
|
|
<div class="col-xs-12 col-sm-3 text-sm-left text-md-right">
|
|
|
|
|
|
|
|
<button class="btn btn-default visible-xs pull-right" id="menu_button">
|
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
Menu
|
|
|
|
</button>
|
2018-09-18 16:36:14 +02:00
|
|
|
|
|
|
|
{% trans %}user.greet{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
<a href="{{ path('fos_user_profile_edit') }}">
|
2018-04-17 14:52:31 +02:00
|
|
|
|
2018-04-25 12:00:01 +02:00
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
{{ app.user.username }}
|
2018-04-19 15:08:13 +02:00
|
|
|
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
|
|
|
|
|
|
|
|
<a class="btn btn-default" href="{{ path('fos_user_security_logout') }}">
|
2018-09-18 16:36:14 +02:00
|
|
|
|
|
|
|
{% trans %}layout.logout{% endtrans %}
|
2018-04-25 12:00:01 +02:00
|
|
|
</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</div>
|
2018-04-25 12:00:01 +02:00
|
|
|
</div>
|
2018-04-05 17:24:43 +02:00
|
|
|
|
|
|
|
|
2018-04-25 12:00:01 +02:00
|
|
|
{% else %}
|
2018-04-25 12:33:58 +02:00
|
|
|
|
2018-04-30 15:55:47 +02:00
|
|
|
|
2018-05-08 11:27:06 +02:00
|
|
|
<div class="text-right pull-right">
|
2018-04-25 12:00:01 +02:00
|
|
|
<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"
|
2018-05-08 15:21:38 +02:00
|
|
|
href="{{ path('fos_user_registration_register') }}">Inscription
|
|
|
|
</a>
|
2018-05-08 11:27:06 +02:00
|
|
|
</div>
|
2018-04-25 12:00:01 +02:00
|
|
|
{% endif %}
|
2018-04-04 16:25:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock loginchoices %}
|