Spaces:
Running
Running
Update modules/ui/ui.py
Browse files- modules/ui/ui.py +13 -7
modules/ui/ui.py
CHANGED
|
@@ -17,7 +17,7 @@ from session_state import initialize_session_state, logout
|
|
| 17 |
|
| 18 |
from translations import get_translations
|
| 19 |
|
| 20 |
-
from ..studentact.
|
| 21 |
|
| 22 |
from ..auth.auth import authenticate_user, authenticate_student, authenticate_admin
|
| 23 |
|
|
@@ -339,12 +339,18 @@ def user_page(lang_code, t):
|
|
| 339 |
t.get('TRANSLATIONS', {})
|
| 340 |
)
|
| 341 |
elif index == 3:
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
else:
|
| 349 |
st.warning(t.get('no_data_warning', 'No se encontraron datos para este estudiante.'))
|
| 350 |
elif index == 3:
|
|
|
|
| 17 |
|
| 18 |
from translations import get_translations
|
| 19 |
|
| 20 |
+
from ..studentact.student_activities_v2 import display_student_activities
|
| 21 |
|
| 22 |
from ..auth.auth import authenticate_user, authenticate_student, authenticate_admin
|
| 23 |
|
|
|
|
| 339 |
t.get('TRANSLATIONS', {})
|
| 340 |
)
|
| 341 |
elif index == 3:
|
| 342 |
+
# Mostrar actividades del estudiante
|
| 343 |
+
display_student_activities(
|
| 344 |
+
username=st.session_state.username,
|
| 345 |
+
lang_code=st.session_state.lang_code,
|
| 346 |
+
t=t.get('ACTIVITIES_TRANSLATIONS', {})
|
| 347 |
+
)
|
| 348 |
+
|
| 349 |
+
elif index == 4: # Corregido el índice
|
| 350 |
+
display_feedback_form(
|
| 351 |
+
st.session_state.lang_code,
|
| 352 |
+
t
|
| 353 |
+
)
|
| 354 |
else:
|
| 355 |
st.warning(t.get('no_data_warning', 'No se encontraron datos para este estudiante.'))
|
| 356 |
elif index == 3:
|