Public Access
This commit is contained in:
1 parent
8cd913d5b3
commit
b5926633a3
2 files changed
+5
-63
No files matched your search
@@ -153,9 +153,12 @@ 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"),
|
||||
|
||||
# --- NOUVEAU BOUTON PAYPAL INTÉGRÉ ICI ---
|
||||
# Bouton de recharger les crédits
|
||||
Button("💳 Recharger des crédits", onclick="document.getElementById('modal-recharge-paypal').style.display='flex'", cls="export-btn", style="background-color: #00e5ff; color: black; border: none; margin-top: 5px; font-weight: bold; cursor: pointer;"),
|
||||
|
||||
# Lien de don direct basé sur le .env
|
||||
A("❤️ Faire un don", href=os.getenv("PAYPAL_DONATION_LINK", "#"), target="_blank", cls="export-btn", style="background-color: #ff4081; color: white; border-color: #ff4081; margin-top: 5px; text-decoration: none; text-align: center; font-weight: bold;"),
|
||||
|
||||
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;"),
|
||||
@@ -258,7 +261,6 @@ def render_popup_paiement(cout_estime, prompt_sauvegarde, chat_id, multi_ia_stat
|
||||
)
|
||||
|
||||
def render_rag_upload_modal():
|
||||
"""Génère la fenêtre pop-up pour téléverser des documents dans le RAG."""
|
||||
themes = [
|
||||
"Minecraft_KubeJS", "Juridique_Loi_Francaise", "Serveur_Debian",
|
||||
"Bureautique_Excel", "Regles_Aethas38", "Education_Nationale", "Connaissances_Generales"
|
||||
|
||||
Reference in new issue
Block a user