Spaces:
Running
Running
Update src/modules/kyc_form.py
Browse files- src/modules/kyc_form.py +6 -16
src/modules/kyc_form.py
CHANGED
|
@@ -6,28 +6,18 @@ from datetime import date, timedelta
|
|
| 6 |
def inject_pulsing_css():
|
| 7 |
st.markdown("""
|
| 8 |
<style>
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
}
|
| 14 |
-
.mandatory-dot {
|
| 15 |
-
display: inline-block;
|
| 16 |
-
width: 8px;
|
| 17 |
-
height: 8px;
|
| 18 |
-
background-color: #ff5252;
|
| 19 |
-
border-radius: 50%;
|
| 20 |
-
margin-left: 8px;
|
| 21 |
-
animation: pulse-red 2s infinite;
|
| 22 |
-
vertical-align: middle;
|
| 23 |
-
}
|
| 24 |
-
.field-label { font-weight: 600; color: #F5F8FA; margin-bottom: 5px; display: block; }
|
| 25 |
</style>
|
| 26 |
""", unsafe_allow_html=True)
|
| 27 |
|
| 28 |
def lbl(text, mandatory=False):
|
| 29 |
if mandatory:
|
| 30 |
-
st.markdown(f'<span class="field-label">{text} <
|
| 31 |
else:
|
| 32 |
st.markdown(f'<span class="field-label">{text}</span>', unsafe_allow_html=True)
|
| 33 |
|
|
|
|
| 6 |
def inject_pulsing_css():
|
| 7 |
st.markdown("""
|
| 8 |
<style>
|
| 9 |
+
.field-label {
|
| 10 |
+
font-weight: 600;
|
| 11 |
+
color: #F5F8FA;
|
| 12 |
+
margin-bottom: 5px;
|
| 13 |
+
display: block;
|
| 14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
</style>
|
| 16 |
""", unsafe_allow_html=True)
|
| 17 |
|
| 18 |
def lbl(text, mandatory=False):
|
| 19 |
if mandatory:
|
| 20 |
+
st.markdown(f'<span class="field-label">{text} *</span>', unsafe_allow_html=True)
|
| 21 |
else:
|
| 22 |
st.markdown(f'<span class="field-label">{text}</span>', unsafe_allow_html=True)
|
| 23 |
|