refonte
Build and Push Docker Image / build-and-push (push) Successful in 34s

This commit is contained in:
xavier committed 2026-08-29 09:52:32 +02:00
1 parent 1eb619a50b
commit 8cd913d5b3
2 files changed
+5 -2

No files matched your search

+1 -2
View File
@@ -209,11 +209,10 @@ def get(session, request):
main_page = render_main_page(session['current_chat_id'], utilisateur_nom=session['user']) main_page = render_main_page(session['current_chat_id'], utilisateur_nom=session['user'])
# Génération des nouveaux composants # Génération des nouveaux composants
nav_sidebar = render_sidebar_menu()
paypal_modal = render_paypal_recharge_widget(10.00) paypal_modal = render_paypal_recharge_widget(10.00)
# Renvoi combiné (les éléments fixed/absolute s'afficheront par-dessus) # Renvoi combiné (les éléments fixed/absolute s'afficheront par-dessus)
return nav_sidebar, paypal_modal, main_page return paypal_modal, main_page
@rt('/chat') @rt('/chat')
async def post(request, session): async def post(request, session):
+4
View File
@@ -152,6 +152,10 @@ def render_main_page(chat_id, utilisateur_nom="xavier", role="Super Admin"):
Div( Div(
A("+ Nouvelle discussion", href="/new_chat", cls="new-chat-btn"), A("+ Nouvelle discussion", href="/new_chat", cls="new-chat-btn"),
A("💾 Exporter JSON", href="/export_json", target="_blank", cls="export-btn"), A("💾 Exporter JSON", href="/export_json", target="_blank", cls="export-btn"),
# --- NOUVEAU BOUTON PAYPAL INTÉGRÉ ICI ---
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;"),
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 "", 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("📊 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;"), A("🚪 Déconnexion", href="/logout", cls="export-btn", style="background-color: #8b0000; color: white; border-color: #8b0000; margin-top: 5px;"),