Changes for eveai_chat_client:
- Session Defaults Header clickable - Document Processing View - show 'Finished Processing' iso 'Processing' to have more logical visual indicators - TRAICIE_SELECTION_SPECIALIST now no longer shows question to start selection procedure at initialisation. - Error Messages for adding documents in 'alert' - Correction of error in Template variable replacement, resulting in missing template variable value
This commit is contained in:
@@ -6,6 +6,24 @@
|
||||
|
||||
<body class="presentation-page bg-gray-200">
|
||||
{% include 'session_defaults.html' %}
|
||||
|
||||
{# <script>#}
|
||||
{# // Hulpfunctie om URLs te genereren met prefix#}
|
||||
{# function prefixed_url_for(endpoint) {#}
|
||||
{# // Verwijder eventuele dubbele slashes aan het begin#}
|
||||
{# if (endpoint.startsWith('//')) {#}
|
||||
{# endpoint = endpoint.substring(1);#}
|
||||
{# } else if (endpoint.startsWith('/')) {#}
|
||||
{# endpoint = endpoint;#}
|
||||
{# }#}
|
||||
{##}
|
||||
{# // Basis URL van de applicatie (zonder trailing slash)#}
|
||||
{# const baseUrl = window.location.origin;#}
|
||||
{##}
|
||||
{# // Combineer basis URL met endpoint#}
|
||||
{# return `${baseUrl}${endpoint}`;#}
|
||||
{# }#}
|
||||
{# </script>#}
|
||||
{% include 'navbar.html' %}
|
||||
{% include 'header.html' %}
|
||||
<hr>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
<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">
|
||||
@@ -8,7 +9,7 @@
|
||||
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
|
||||
partner_exchange
|
||||
</span>
|
||||
<div>
|
||||
<div class="session-default-item" data-url="{{ prefixed_url_for('partner_bp.partners') }}">
|
||||
<small>
|
||||
{% if 'partner' in session and session['partner'] %}
|
||||
{{ session['partner'].get('id', 'Not selected') }}: {{ session['partner'].get('name', 'None') }}
|
||||
@@ -24,7 +25,7 @@
|
||||
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
|
||||
source_environment
|
||||
</span>
|
||||
<div>
|
||||
<div class="session-default-item" data-url="{{ prefixed_url_for('user_bp.tenants') }}">
|
||||
<small>
|
||||
{% if 'tenant' in session and session['tenant'] %}
|
||||
{{ session['tenant'].get('id', 'Not selected') }}: {{ session['tenant'].get('name', 'None') }}
|
||||
@@ -34,13 +35,14 @@
|
||||
</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>
|
||||
<div class="session-default-item" data-url="{{ prefixed_url_for('user_bp.tenants') }}">
|
||||
<small>
|
||||
{% if 'tenant' in session and session['tenant'] %}
|
||||
{{ session['tenant'].get('id', 'Not selected') }}: {{ session['tenant'].get('name', 'None') }}
|
||||
@@ -57,7 +59,7 @@
|
||||
<span class="material-symbols-outlined me-2" style="font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">
|
||||
note_stack
|
||||
</span>
|
||||
<div>
|
||||
<div class="session-default-item" data-url="{{ prefixed_url_for('document_bp.catalogs') }}">
|
||||
<small>
|
||||
{% if 'catalog_id' in session and session['catalog_id'] %}
|
||||
{{ session.get('catalog_id', 'Not selected') }}: {{ session.get('catalog_name', 'None') }}
|
||||
@@ -70,4 +72,54 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.session-default-item {
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.session-default-item:hover {
|
||||
background-color: rgba(49, 13, 94, 0.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.session-default-item:hover::after {
|
||||
content: "Klik om te wijzigen";
|
||||
position: absolute;
|
||||
bottom: -25px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(49, 13, 94, 0.1);
|
||||
color: white;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.session-default-item:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const sessionItems = document.querySelectorAll('.session-default-item');
|
||||
|
||||
sessionItems.forEach(item => {
|
||||
item.addEventListener('click', function() {
|
||||
const targetUrl = this.getAttribute('data-url');
|
||||
if (targetUrl) {
|
||||
window.location.href = targetUrl;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user