Code/app/personnalisation/interface.py
2025-06-11 14:57:53 +02:00

24 lines
848 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# interface.py app/personnalisation
import streamlit as st
from utils.persistance import maj_champ_statut
from utils.translations import _
from utils.widgets import html_expander
from app.personnalisation.utils import ajouter_produit
from app.personnalisation.utils import modifier_produit
from app.personnalisation.utils import importer_exporter_graph
def interface_personnalisation(G):
titre = f"# {str(_('pages.personnalisation.title'))}"
maj_champ_statut("pages.personnalisation.title", titre)
st.markdown(titre)
html_expander(f"{str(_('pages.personnalisation.help'))}", content="\n".join(_("pages.personnalisation.help_content")), open_by_default=False, details_class="details_introduction")
st.markdown("---")
G = ajouter_produit(G)
G = modifier_produit(G)
G = importer_exporter_graph(G)
return G