ability to login restored

This commit is contained in:
Tykayn 2025-02-14 15:58:24 +01:00 committed by tykayn
parent d01ecdabba
commit 7ad6f2d823
5 changed files with 118 additions and 116 deletions

View file

@ -25,91 +25,91 @@
</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>
{% trans %}menu.categories{% endtrans %}
<span class="badge">
{{ app.user.categories|length }}
</span>
</a>
{# <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>#}
{# {% trans %}menu.categories{% endtrans %}#}
{# <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') }}"
>
<i class="fa fa-gears"></i>
{% trans %}menu.products{% endtrans %}
<span class="badge">
{{ app.user.products|length }}
</span>
</a>
{# <a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}#}
{# btn-success#}
{# {% else %}#}
{# btn-default#}
{# {% endif %} "#}
{# href="{{ path('product_index') }}"#}
{# >#}
{# <i class="fa fa-gears"></i>#}
{# {% trans %}menu.products{% endtrans %}#}
{# <span class="badge">#}
{# {{ app.user.products|length }}#}
{# </span>#}
{# </a>#}
</li>
<li>
<a id="menu_festivals"
class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}
btn-success
{% else %}
btn-default
{% endif %}
" href='{{ path('festival_index') }}'
>
<i class="fa fa-th-large"></i>
{# <a id="menu_festivals"#}
{# class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}#}
{# btn-success#}
{# {% else %}#}
{# btn-default#}
{# {% endif %}#}
{# " href='{{ path('festival_index') }}'#}
{# >#}
{# <i class="fa fa-th-large"></i>#}
{% trans %}menu.festivals{% endtrans %}
<span class="badge">
{{ app.user.festivals|length }}
</span>
</a>
{# {% trans %}menu.festivals{% endtrans %}#}
{# <span class="badge">#}
{# {{ app.user.festivals|length }}#}
{# </span>#}
{# </a>#}
</li>
<li>
<a id="menu_series"
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>
{# <a id="menu_series"#}
{# 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>
{# {% trans %}menu.series{% endtrans %}#}
{# <span class="badge">#}
{# {{ app.user.seriesFestivals|length }}#}
{# </span>#}
{# </a>#}
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'history' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('history') }}"
>
<i class="fa fa-clock-o"></i>
{% trans %}menu.history{% endtrans %}
</a>
{# <a class="btn {% if app.request.attributes.get('_route') == 'history' %}#}
{# btn-success#}
{# {% else %}#}
{# btn-default#}
{# {% endif %}" href="{{ path('history') }}"#}
{# >#}
{# <i class="fa fa-clock-o"></i>#}
{# {% trans %}menu.history{% endtrans %}#}
{# </a>#}
</li>
<li>
<a class="btn {% if app.request.attributes.get('_route') == 'import' %}
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('import') }}"
>
<i class="fa fa-arrow-circle-o-up"></i>
{# <a class="btn {% if app.request.attributes.get('_route') == 'import' %}#}
{# btn-success#}
{# {% else %}#}
{# btn-default#}
{# {% endif %}" href="{{ path('import') }}"#}
{# >#}
{# <i class="fa fa-arrow-circle-o-up"></i>#}
{% trans %}menu.import{% endtrans %}
</a>
{# {% trans %}menu.import{% endtrans %}#}
{# </a>#}
</li>
<li>
@ -131,7 +131,7 @@
{# {% trans %}menu.introjs{% endtrans %}#}
Visite guidée
</a>
{% if app.user.username == 'demo' %}
{% if app.user.name == 'demo' %}
<div class="text-warning alert-sm marged ">
<i class="fa fa-info-circle"></i>
<sub> Ceci est un compte de démonstration. Créez votre compte personnel dès
@ -153,7 +153,7 @@
{% trans %}user.greet{% endtrans %}
<a href="#" class="user-info-link">
<i class="fa fa-user"></i>
{{ app.user.username }}
{{ app.user.name }}
</a>
|