Files
eveAI/eveai_app/templates/session_defaults.html
Josako 5123de55cc - Change TRAICIE_VACANCY_DEFINTION_SPECIALIST to TRAICIE_ROLE_DEFINITION_SPECIALIST
- Introduce new vanilla-jsoneditor iso older jsoneditor (for viewing a.o. ChatSessions)
- Introduce use of npm to install required javascript libraries
- update Material-kit-pro
- Introduce new top bar to show session defaults, remove old navbar buttons
- Correct Task & Tools editor
2025-05-27 17:37:32 +02:00

73 lines
4.0 KiB
HTML

<div class="container-fluid position-relative z-index-2 px-0 py-2 bg-gradient-light">
<div class="container">
<div class="row align-items-center">
{% if current_user.is_authenticated %}
{% if current_user.has_roles('Super User', 'Partner Admin') %}
<!-- Partner information (links) - alleen voor Super User en Partner Admin -->
<div class="col-md-4 d-flex align-items-center">
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
partner_exchange
</span>
<div>
<small>
{% if 'partner' in session and session['partner'] %}
{{ session['partner'].get('id', 'Not selected') }}: {{ session['partner'].get('name', 'None') }}
{% else %}
No partner selected
{% endif %}
</small>
</div>
</div>
<!-- Tenant information (centraal) - voor Super User en Partner Admin -->
<div class="col-md-4 d-flex align-items-center justify-content-center">
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
source_environment
</span>
<div>
<small>
{% if 'tenant' in session and session['tenant'] %}
{{ session['tenant'].get('id', 'Not selected') }}: {{ session['tenant'].get('name', 'None') }}
{% else %}
No tenant selected
{% endif %}
</small>
</div>
</div>
{% else %}
<!-- Tenant information (links) - voor andere gebruikers -->
<div class="col-md-6 d-flex align-items-center">
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
source_environment
</span>
<div>
<small>
{% if 'tenant' in session and session['tenant'] %}
{{ session['tenant'].get('id', 'Not selected') }}: {{ session['tenant'].get('name', 'None') }}
{% else %}
No tenant selected
{% endif %}
</small>
</div>
</div>
{% endif %}
<!-- Catalog information (rechts) -->
<div class="{% if current_user.has_roles('Super User', 'Partner Admin') %}col-md-4{% else %}col-md-6{% endif %} d-flex align-items-center justify-content-end">
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
note_stack
</span>
<div>
<small>
{% if 'catalog_id' in session and session['catalog_id'] %}
{{ session.get('catalog_id', 'Not selected') }}: {{ session.get('catalog_name', 'None') }}
{% else %}
No catalog selected
{% endif %}
</small>
</div>
</div>
{% endif %}
</div>
</div>
</div>