Skip to content
Snippets Groups Projects
Commit a7b8fb7b authored by Pierre Fleutot's avatar Pierre Fleutot
Browse files

Change cookie lifetime. Fix CSS navbar

parent bbb0ab22
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,10 @@ framework: ...@@ -10,8 +10,10 @@ framework:
handler_id: null handler_id: null
cookie_secure: auto cookie_secure: auto
cookie_samesite: lax cookie_samesite: lax
cookie_lifetime: 8640000
storage_factory_id: session.storage.factory.native storage_factory_id: session.storage.factory.native
#esi: true #esi: true
#fragments: true #fragments: true
php_errors: php_errors:
......
...@@ -297,4 +297,9 @@ td:hover .fa.text-light-green, p:hover .fa.text-light-green, h4:hover .fa.text-l ...@@ -297,4 +297,9 @@ td:hover .fa.text-light-green, p:hover .fa.text-light-green, h4:hover .fa.text-l
border: 2px solid black; border: 2px solid black;
font-size: 0.8rem; font-size: 0.8rem;
padding: 20px; padding: 20px;
}
#history {
max-height: 300px;
overflow-y: auto;
} }
\ No newline at end of file
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<div class="d-flex justify-content-start align-items-center mt-3"> <div class="d-flex justify-content-start align-items-center mt-3">
<h4>{{ label.description|nl2br|raw ? : 'Add a description'|trans }}</h4> <h4 class="fst-italic">{{ label.description|nl2br|raw ? : 'Ajouter une description'|trans }}</h4>
<a title="{{ 'Modifier la description'|trans }}" href="#" data-url="{{ path('app_label_edit_description', {id: label.id}) }}" class="modal-form ms-3 btn btn-dark btn-sm"><i class="fa fa-pencil"></i></a> <a title="{{ 'Modifier la description'|trans }}" href="#" data-url="{{ path('app_label_edit_description', {id: label.id}) }}" class="modal-form ms-3 btn btn-dark btn-sm"><i class="fa fa-pencil"></i></a>
</div> </div>
......
...@@ -41,22 +41,31 @@ ...@@ -41,22 +41,31 @@
</li> </li>
{% if is_granted('ROLE_ADMIN') %} {% if is_granted('ROLE_ADMIN') %}
<li class="nav-item"> <li class="nav-item dropdown">
<a class="nav-link {{ 'app_user' in app.request.attributes.get('_route') ? 'active' }}" href="{{ path('app_user_index') }}"> <a class="nav-link dropdown-toggle {{ 'app_lexicon' in app.request.attributes.get('_route') ? 'active' }}" data-bs-toggle="dropdown" href="#">
<i class="bi bi-person"></i> {{ "Utilisateurs"|trans }}</a> <i class="fa fa-cog"></i></a>
</li> <ul class="dropdown-menu">
{# <li class="nav-item">#}
{# <a class="nav-link {{ 'app_lexicon' in app.request.attributes.get('_route') ? 'active' }}" href="{{ path('app_lexicon_index') }}"><i class="bi bi-card-list"></i> Lexiques</a>#} <li>
{# </li>#} <a class="dropdown-item" href="{{ path('app_user_index') }}">
<li class="nav-item"> <i class="bi bi-person"></i> {{ "Utilisateurs"|trans }}</a>
<a class="nav-link {{ 'app_client' in app.request.attributes.get('_route') ? 'active' }}" href="{{ path('app_client_index') }}"> </li>
<i class="bi bi-window"></i> {{ "Applis clientes"|trans }}</a> {# <li>#}
</li> {# <a class="dropdown-item" href="{{ path('app_lexicon_index') }}"><i class="bi bi-card-list"></i> Lexiques</a>#}
<li class="nav-item"> {# </li>#}
<a class="nav-link" href="{{ path('app.swagger_ui') }}"><i class="bi bi-terminal"></i> Swagger</a> <li>
</li> <a class="dropdown-item" href="{{ path('app_client_index') }}">
<li class="nav-item"> <i class="bi bi-window"></i> {{ "Applis clientes"|trans }}</a>
<a class="nav-link" href="{{ path('app_wiktionnary_search') }}"><i class="bi bi-book"></i> {{ "Wiktionnaire"|trans }}</a> </li>
<li>
<a class="dropdown-item" href="{{ path('app.swagger_ui') }}"><i class="bi bi-terminal"></i> Swagger</a>
</li>
{% if app.environment|upper == 'DEV' %}
<li>
<a class="dropdown-item" href="{{ path('app_wiktionnary_search') }}"><i class="bi bi-book"></i> {{ "Wiktionnaire"|trans }}</a>
</li>
{% endif %}
</ul>
</li> </li>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment