Public Access
This commit is contained in:
1 parent
a2261ab8dd
commit
b96d402ae9
5 files changed
+118
-14
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
from tkinter import Button
|
||||
import requests
|
||||
from fasthtml.common import *
|
||||
from modules.database import load_history
|
||||
@@ -153,6 +154,7 @@ def render_main_page(chat_id, utilisateur_nom="xavier", role="Super Admin"):
|
||||
A("+ Nouvelle discussion", href="/new_chat", cls="new-chat-btn"),
|
||||
A("💾 Exporter JSON", href="/export_json", target="_blank", cls="export-btn"),
|
||||
Button("📚 Gestion RAG", hx_get="/admin/rag_modal", hx_target="body", hx_swap="beforeend", cls="export-btn", style="background-color: #2196f3; color: white; border-color: #2196f3; margin-top: 5px; cursor: pointer;") if role.lower() in ["super admin", "admin"] else "",
|
||||
A("📊 Export URSSAF (Excel)", href="/admin/export_comptable", cls="export-btn", style="background-color: #4caf50; color: white; border-color: #4caf50; margin-top: 5px; text-decoration: none; text-align: center;") if role.lower() in ["super admin", "admin"] else "",
|
||||
A("🚪 Déconnexion", href="/logout", cls="export-btn", style="background-color: #8b0000; color: white; border-color: #8b0000; margin-top: 5px;"),
|
||||
cls="nav-buttons", style="display: flex; flex-direction: column; gap: 10px;"
|
||||
), cls="sidebar-top"
|
||||
|
||||
Reference in new issue
Block a user