Spaces:
Running
Running
Update src/modules/kyc_form.py
Browse files- src/modules/kyc_form.py +7 -7
src/modules/kyc_form.py
CHANGED
|
@@ -30,7 +30,7 @@ LISTE_QUARTIERS = [
|
|
| 30 |
"Pikine Est", "Pikine Ouest", "Pikine Nord", "Pikine Sud",
|
| 31 |
"Guinaw Rails", "Thiaroye", "Dalifort",
|
| 32 |
"Guédiawaye", "Golf Sud", "Medina Gounass", "Wakhinane Nimzatt",
|
| 33 |
-
"Rufisque", "Bargny", "Diamniadio", "Sébikotane",
|
| 34 |
"Autre"
|
| 35 |
]
|
| 36 |
|
|
@@ -44,7 +44,7 @@ LISTE_VILLES = [
|
|
| 44 |
"Autre"
|
| 45 |
]
|
| 46 |
|
| 47 |
-
LISTE_PAYS = ["Sénégal", "
|
| 48 |
|
| 49 |
# --- FONCTION PRINCIPALE APPELÉE PAR L'APP ---
|
| 50 |
def show_kyc_form(client, sheet_name, generate_id_func):
|
|
@@ -110,7 +110,7 @@ def show_kyc_form(client, sheet_name, generate_id_func):
|
|
| 110 |
c7, c8, c9 = st.columns(3)
|
| 111 |
with c7:
|
| 112 |
lbl("Statut Pro", True)
|
| 113 |
-
statut_pro = st.selectbox("Statut", ["Salarié", "Indépendant", "Fonctionnaire", "Etudiant", "Sans_Emploi", "Retraité"], label_visibility="collapsed")
|
| 114 |
lbl("Profession", True)
|
| 115 |
prof_select = st.selectbox("Choix Profession", LISTE_PROFESSIONS, label_visibility="collapsed")
|
| 116 |
prof_autre = st.text_input("Si Autre, préciser", key="prof_autre", placeholder="Profession personnalisée...")
|
|
@@ -118,12 +118,12 @@ def show_kyc_form(client, sheet_name, generate_id_func):
|
|
| 118 |
lbl("Employeur", False)
|
| 119 |
employeur = st.text_input("Employeur", label_visibility="collapsed")
|
| 120 |
lbl("Secteur d'Activité", True)
|
| 121 |
-
secteur_select = st.selectbox("Secteur", ["Commerce", "Services", "Agriculture", "Etudiant", "Industrie", "
|
| 122 |
secteur_autre = st.text_input("Si Autre, préciser", key="secteur_autre", placeholder="Secteur personnalisé...")
|
| 123 |
with c9:
|
| 124 |
lbl("Pers. à Charge", True)
|
| 125 |
pers_charge = st.number_input("Charge", min_value=0, step=1, max_value=3, label_visibility="collapsed")
|
| 126 |
-
lbl("Ancienneté
|
| 127 |
anciennete_emploi = st.number_input("Ancienneté Emploi", min_value=3, step=1, label_visibility="collapsed")
|
| 128 |
|
| 129 |
# --- BLOC 4 : FINANCES ---
|
|
@@ -179,7 +179,7 @@ def show_kyc_form(client, sheet_name, generate_id_func):
|
|
| 179 |
entite_financiere = st.text_input("Banque", label_visibility="collapsed")
|
| 180 |
with c17:
|
| 181 |
lbl("Origine Fonds", True)
|
| 182 |
-
origine = st.selectbox("Origine", ["Salaire", "
|
| 183 |
lbl("Vérification AML", True)
|
| 184 |
aml = st.selectbox("AML", ["Non_Fait", "OK", "Match", "Review"], label_visibility="collapsed")
|
| 185 |
|
|
@@ -200,7 +200,7 @@ def show_kyc_form(client, sheet_name, generate_id_func):
|
|
| 200 |
lbl("TikTok", False)
|
| 201 |
tiktok = st.text_input("Lien TikTok", placeholder="https://tiktok.com/@...", label_visibility="collapsed")
|
| 202 |
lbl("WhatsApp", False)
|
| 203 |
-
whatsapp = st.text_input("WhatsApp", placeholder="+
|
| 204 |
|
| 205 |
st.divider()
|
| 206 |
lbl("Commentaires / Notes", False)
|
|
|
|
| 30 |
"Pikine Est", "Pikine Ouest", "Pikine Nord", "Pikine Sud",
|
| 31 |
"Guinaw Rails", "Thiaroye", "Dalifort",
|
| 32 |
"Guédiawaye", "Golf Sud", "Medina Gounass", "Wakhinane Nimzatt",
|
| 33 |
+
"Rufisque", "Bargny", "Diamniadio", "Sébikotane", "Zac Mbao"
|
| 34 |
"Autre"
|
| 35 |
]
|
| 36 |
|
|
|
|
| 44 |
"Autre"
|
| 45 |
]
|
| 46 |
|
| 47 |
+
LISTE_PAYS = ["Sénégal", "Gabon", "Congo", "Guinée", "Côte d'Ivoire", "Mali", "Tchad", "France", "Autre"]
|
| 48 |
|
| 49 |
# --- FONCTION PRINCIPALE APPELÉE PAR L'APP ---
|
| 50 |
def show_kyc_form(client, sheet_name, generate_id_func):
|
|
|
|
| 110 |
c7, c8, c9 = st.columns(3)
|
| 111 |
with c7:
|
| 112 |
lbl("Statut Pro", True)
|
| 113 |
+
statut_pro = st.selectbox("Statut", ["Salarié", "Indépendant", "Entrepreneur" , "Fonctionnaire", "Etudiant", "Sans_Emploi", "Retraité"], label_visibility="collapsed")
|
| 114 |
lbl("Profession", True)
|
| 115 |
prof_select = st.selectbox("Choix Profession", LISTE_PROFESSIONS, label_visibility="collapsed")
|
| 116 |
prof_autre = st.text_input("Si Autre, préciser", key="prof_autre", placeholder="Profession personnalisée...")
|
|
|
|
| 118 |
lbl("Employeur", False)
|
| 119 |
employeur = st.text_input("Employeur", label_visibility="collapsed")
|
| 120 |
lbl("Secteur d'Activité", True)
|
| 121 |
+
secteur_select = st.selectbox("Secteur", ["Commerce", "Reseaux et Telecommunication", "Services", "Agriculture", "Etudiant", "Industrie", "Sante", "Education", "Transport", "Autre"], label_visibility="collapsed")
|
| 122 |
secteur_autre = st.text_input("Si Autre, préciser", key="secteur_autre", placeholder="Secteur personnalisé...")
|
| 123 |
with c9:
|
| 124 |
lbl("Pers. à Charge", True)
|
| 125 |
pers_charge = st.number_input("Charge", min_value=0, step=1, max_value=3, label_visibility="collapsed")
|
| 126 |
+
lbl("Ancienneté Statut pro (mois)", True)
|
| 127 |
anciennete_emploi = st.number_input("Ancienneté Emploi", min_value=3, step=1, label_visibility="collapsed")
|
| 128 |
|
| 129 |
# --- BLOC 4 : FINANCES ---
|
|
|
|
| 179 |
entite_financiere = st.text_input("Banque", label_visibility="collapsed")
|
| 180 |
with c17:
|
| 181 |
lbl("Origine Fonds", True)
|
| 182 |
+
origine = st.selectbox("Origine", ["Salaire", "Entreprise", "Contribution Familiale", "Epargne", "Héritage", "Autre"], label_visibility="collapsed")
|
| 183 |
lbl("Vérification AML", True)
|
| 184 |
aml = st.selectbox("AML", ["Non_Fait", "OK", "Match", "Review"], label_visibility="collapsed")
|
| 185 |
|
|
|
|
| 200 |
lbl("TikTok", False)
|
| 201 |
tiktok = st.text_input("Lien TikTok", placeholder="https://tiktok.com/@...", label_visibility="collapsed")
|
| 202 |
lbl("WhatsApp", False)
|
| 203 |
+
whatsapp = st.text_input("WhatsApp", placeholder="wa.me/+221XXXXXXXXX", label_visibility="collapsed")
|
| 204 |
|
| 205 |
st.divider()
|
| 206 |
lbl("Commentaires / Notes", False)
|