Version 22.107.13:May 07, 2023 Changes in edition of exam sessions.

This commit is contained in:
acanas 2023-05-07 23:46:53 +02:00
parent 0530aa5ac7
commit d084861e52
4 changed files with 119 additions and 89 deletions

View File

@ -629,10 +629,12 @@ TODO: Emilce Barrera Mesa: Podr
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
*/ */
#define Log_PLATFORM_VERSION "SWAD 22.107.11 (2023-05-07)" #define Log_PLATFORM_VERSION "SWAD 22.107.13 (2023-05-07)"
#define CSS_FILE "swad22.107.css" #define CSS_FILE "swad22.107.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.107.13:May 07, 2023 Changes in edition of exam sessions. (337957 lines)
Version 22.107.12:May 07, 2023 Changes in edition of rubrics. (337930 lines)
Version 22.107.11:May 07, 2023 Changes in edition of surveys. (337952 lines) Version 22.107.11:May 07, 2023 Changes in edition of surveys. (337952 lines)
Version 22.107.10:May 07, 2023 Changes in edition of projects. (337973 lines) Version 22.107.10:May 07, 2023 Changes in edition of projects. (337973 lines)
Version 22.107.9: May 07, 2023 Changes in edition of rubric criterions. (338015 lines) Version 22.107.9: May 07, 2023 Changes in edition of rubric criterions. (338015 lines)

View File

@ -959,10 +959,9 @@ void ExaSes_GetAndCheckPars (struct Exa_Exams *Exams,
static void ExaSes_PutFormSession (const struct ExaSes_Session *Session) static void ExaSes_PutFormSession (const struct ExaSes_Session *Session)
{ {
extern const char *Hlp_ASSESSMENT_Exams_sessions; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Session;
extern const char *Txt_Title; extern const char *Txt_Title;
extern const char *Txt_Create_session; extern const char *Txt_Create;
extern const char *Txt_Save_changes; extern const char *Txt_Save_changes;
static const Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME] = static const Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME] =
{ {
@ -970,56 +969,62 @@ static void ExaSes_PutFormSession (const struct ExaSes_Session *Session)
[Dat_END_TIME] = Dat_HMS_DO_NOT_SET [Dat_END_TIME] = Dat_HMS_DO_NOT_SET
}; };
bool ItsANewSession = Session->SesCod <= 0; bool ItsANewSession = Session->SesCod <= 0;
Act_Action_t NextAction = ItsANewSession ? ActNewExaSes :
ActChgExaSes;
/***** Begin section for a new exam session *****/ /***** Begin section for a new exam session *****/
HTM_SECTION_Begin (ExaSes_NEW_SESSION_SECTION_ID); HTM_SECTION_Begin (ExaSes_NEW_SESSION_SECTION_ID);
/***** Begin form *****/ /***** Begin fieldset *****/
Frm_BeginForm (ItsANewSession ? ActNewExaSes : // New session HTM_FIELDSET_Begin (NULL);
ActChgExaSes); // Existing session HTM_LEGEND (Txt_Actions[NextAction]);
ParCod_PutPar (ParCod_Exa,Session->ExaCod);
if (!ItsANewSession) // Existing session
ParCod_PutPar (ParCod_Ses,Session->SesCod);
/***** Begin box and table *****/ /***** Begin form *****/
Box_BoxTableBegin (NULL,ItsANewSession ? Txt_Session : Frm_BeginForm (NextAction);
Session->Title, ParCod_PutPar (ParCod_Exa,Session->ExaCod);
NULL,NULL, if (!ItsANewSession) // Existing session
Hlp_ASSESSMENT_Exams_sessions,Box_NOT_CLOSABLE,2); ParCod_PutPar (ParCod_Ses,Session->SesCod);
/***** Session title *****/ /***** Begin table *****/
HTM_TR_Begin (NULL); HTM_TABLE_BeginWidePadding (2);
/* Label */ /***** Session title *****/
Frm_LabelColumn ("RT","Title",Txt_Title); HTM_TR_Begin (NULL);
/* Data */ /* Label */
HTM_TD_Begin ("class=\"LT\""); Frm_LabelColumn ("RT","Title",Txt_Title);
HTM_INPUT_TEXT ("Title",ExaSes_MAX_CHARS_TITLE,Session->Title,
HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"Title\" size=\"45\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
HTM_TR_End (); /* Data */
HTM_TD_Begin ("class=\"LT\"");
HTM_INPUT_TEXT ("Title",ExaSes_MAX_CHARS_TITLE,Session->Title,
HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"Title\" size=\"45\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Start and end dates *****/ HTM_TR_End ();
Dat_PutFormStartEndClientLocalDateTimes (Session->TimeUTC,
Dat_FORM_SECONDS_OFF,
SetHMS);
/***** Groups *****/ /***** Start and end dates *****/
ExaSes_ShowLstGrpsToCreateSession (Session->SesCod); Dat_PutFormStartEndClientLocalDateTimes (Session->TimeUTC,
Dat_FORM_SECONDS_OFF,
SetHMS);
/***** End table, send button and end box *****/ /***** Groups *****/
if (ItsANewSession) ExaSes_ShowLstGrpsToCreateSession (Session->SesCod);
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_session);
else
Box_BoxTableWithButtonEnd (Btn_CONFIRM_BUTTON,Txt_Save_changes);
/***** End form *****/ /***** End table and send button *****/
Frm_EndForm (); HTM_TABLE_End ();
if (ItsANewSession)
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
else
Btn_PutButton (Btn_CONFIRM_BUTTON,Txt_Save_changes);
/***** End form *****/
Frm_EndForm ();
/***** End fieldset *****/
HTM_FIELDSET_End ();
/***** End section for a new exam session *****/ /***** End section for a new exam session *****/
HTM_SECTION_End (); HTM_SECTION_End ();
@ -1139,8 +1144,8 @@ void ExaSes_ReqCreatOrEditSes (void)
void ExaSes_ReceiveFormSession (void) void ExaSes_ReceiveFormSession (void)
{ {
extern const char *Txt_Created_new_event_X; extern const char *Txt_Created_new_session_X;
extern const char *Txt_The_event_has_been_modified; extern const char *Txt_The_session_has_been_modified;
struct Exa_Exams Exams; struct Exa_Exams Exams;
struct ExaSes_Session Session; struct ExaSes_Session Session;
bool ItsANewSession; bool ItsANewSession;
@ -1203,10 +1208,10 @@ void ExaSes_ReceiveFormSession (void)
/***** Write success message *****/ /***** Write success message *****/
if (ItsANewSession) if (ItsANewSession)
Ale_ShowAlert (Ale_SUCCESS,Txt_Created_new_event_X, Ale_ShowAlert (Ale_SUCCESS,Txt_Created_new_session_X,
Session.Title); Session.Title);
else else
Ale_ShowAlert (Ale_SUCCESS,Txt_The_event_has_been_modified); Ale_ShowAlert (Ale_SUCCESS,Txt_The_session_has_been_modified);
/***** Get exam data again to update it after changes in session *****/ /***** Get exam data again to update it after changes in session *****/
Exa_GetExamDataByCod (&Exams.Exam); Exa_GetExamDataByCod (&Exams.Exam);

View File

@ -7262,29 +7262,6 @@ const char *Txt_Create_room =
"Create room"; // Çeviri lazim! "Create room"; // Çeviri lazim!
#endif #endif
const char *Txt_Create_session =
#if L==1 // ca
"Crear sessi&oacute;";
#elif L==2 // de
"Sitzung erstellen";
#elif L==3 // en
"Create session";
#elif L==4 // es
"Crear sesi&oacute;n";
#elif L==5 // fr
"Cr&eacute;er session";
#elif L==6 // gn
"Crear sesi&oacute;n"; // Okoteve traducción
#elif L==7 // it
"Crea sessione";
#elif L==8 // pl
"Utw&oacute;rz sesji";
#elif L==9 // pt
"Criar sess&atilde;o";
#elif L==10 // tr
"Create session"; // Çeviri lazim!
#endif
const char *Txt_Create_type_of_degree = const char *Txt_Create_type_of_degree =
#if L==1 // ca #if L==1 // ca
"Crear tipus de titulaci&oacute;"; "Crear tipus de titulaci&oacute;";
@ -7632,7 +7609,7 @@ const char *Txt_Created_new_event_X = // Warning: it is very important to includ
const char *Txt_Created_new_exam_X = // Warning: it is very important to include %s in the following sentences const char *Txt_Created_new_exam_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca #if L==1 // ca
"reat nou examen <strong>%s</strong>."; "Creat nou examen <strong>%s</strong>.";
#elif L==2 // de #elif L==2 // de
"Neues Pr&uuml;fung <strong>%s</strong> eingegeben."; "Neues Pr&uuml;fung <strong>%s</strong> eingegeben.";
#elif L==3 // en #elif L==3 // en
@ -7906,6 +7883,29 @@ const char *Txt_Created_new_rubric_X = // Warning: it is very important to inclu
"Yeni de&gbreve;erlendirme listesi <strong>%s</strong> olu&scedil;turuldu."; "Yeni de&gbreve;erlendirme listesi <strong>%s</strong> olu&scedil;turuldu.";
#endif #endif
const char *Txt_Created_new_session_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca
"Creat nova sessi&oacute; <strong>%s</strong>.";
#elif L==2 // de
"Neue Sitzung <strong>%s</strong> eingegeben.";
#elif L==3 // en
"Created new session <strong>%s</strong>.";
#elif L==4 // es
"Creada nueva sesi&oacute;n <strong>%s</strong>.";
#elif L==5 // fr
"Cr&eacute;&eacute;e nouvelle session <strong>%s</strong>.";
#elif L==6 // gn
"Ojejapo sesi&oacute;n pyahu <strong>%s</strong>.";
#elif L==7 // it
"Creata nuova sessione <strong>%s</strong>.";
#elif L==8 // pl
"Utworzono now&aogon; sesj&eogon; <strong>%s</strong>.";
#elif L==9 // pt
"Criada nova sess&atilde;o <strong>%s</strong>.";
#elif L==10 // tr
"Yeni oturum <strong>%s</strong> olu&scedil;turuldu.";
#endif
const char *Txt_Created_new_set_of_questions_X = // Warning: it is very important to include %s in the following sentences const char *Txt_Created_new_set_of_questions_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca #if L==1 // ca
"Creat nou conjunt de preguntes <strong>%s</strong>."; "Creat nou conjunt de preguntes <strong>%s</strong>.";
@ -51867,7 +51867,7 @@ const char *Txt_The_rubric_has_been_modified =
#elif L==5 // fr #elif L==5 // fr
"La rubrique a &eacute;t&eacute; modifi&eacute;e."; "La rubrique a &eacute;t&eacute; modifi&eacute;e.";
#elif L==6 // gn #elif L==6 // gn
"La r&uacute;brica ha sido modificada."; // Okoteve traducción "O&ntilde;emoambue pe r&uacute;brica.";
#elif L==7 // it #elif L==7 // it
"La rubrica &egrave; stata modificata."; "La rubrica &egrave; stata modificata.";
#elif L==8 // pl #elif L==8 // pl
@ -51934,6 +51934,29 @@ const char *Txt_The_search_text_must_be_longer =
"The search text must be longer."; // Çeviri lazim! "The search text must be longer."; // Çeviri lazim!
#endif #endif
const char *Txt_The_session_has_been_modified =
#if L==1 // ca
"La sessi&oacute; ha estat modificada.";
#elif L==2 // de
"Die Sitzung wurde ge&auml;ndert.";
#elif L==3 // en
"The session has been modified.";
#elif L==4 // es
"La sesi&oacute;n ha sido modificada.";
#elif L==5 // fr
"La session a &eacute;t&eacute; modifi&eacute;e.";
#elif L==6 // gn
"O&ntilde;emoambue pe sesi&oacute;n.";
#elif L==7 // it
"La sessione &egrave; stata modificata.";
#elif L==8 // pl
"Sesja zosta&lstrok;a zmieniona.";
#elif L==9 // pt
"A sess&atilde;o foi modificada.";
#elif L==10 // tr
"Oturum de&gbreve;i&scedil;tirildi.";
#endif
const char *Txt_The_session_has_expired = const char *Txt_The_session_has_expired =
#if L==1 // ca #if L==1 // ca
"La sessi&oacute; ha expirat."; "La sessi&oacute; ha expirat.";
@ -51954,7 +51977,7 @@ const char *Txt_The_session_has_expired =
#elif L==9 // pt #elif L==9 // pt
"A sess&atilde;o expirou."; "A sess&atilde;o expirou.";
#elif L==10 // tr #elif L==10 // tr
"The session has expired."; // Çeviri lazim! "Oturumun s&uuml;resi doldu."; // Çeviri lazim!
#endif #endif
/* /*
const char *Txt_The_set_of_questions_has_been_modified = const char *Txt_The_set_of_questions_has_been_modified =

View File

@ -12438,48 +12438,48 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewExaSes] = [ActNewExaSes] =
#if L==1 // ca #if L==1 // ca
"Create new exam session" // Necessita traducció "Crear sessi&oacute; d'examen"
#elif L==2 // de #elif L==2 // de
"Create new exam session" // Need Übersetzung "Pr&uuml;fungssitzung erstellen"
#elif L==3 // en #elif L==3 // en
"Create new exam session" "Create exam session"
#elif L==4 // es #elif L==4 // es
"Crear nueva sesi&oacute;n de examen" "Crear sesi&oacute;n de examen"
#elif L==5 // fr #elif L==5 // fr
"Create new exam session" // Besoin de traduction "Cr&eacute;er session d'examen"
#elif L==6 // gn #elif L==6 // gn
"Crear nueva sesi&oacute;n de examen" // Okoteve traducción "Omohe&ntilde;&oacute;i sesi&oacute;n de examen"
#elif L==7 // it #elif L==7 // it
"Create new exam session" // Bisogno di traduzione "Crea sessione d'esame"
#elif L==8 // pl #elif L==8 // pl
"Create new exam session" // Potrzebujesz tlumaczenie "Utw&oacute;rz sesj&eogon; egzaminacyjn&aogon;"
#elif L==9 // pt #elif L==9 // pt
"Create new exam session" // Precisa de tradução "Criar sess&atilde;o de exame"
#elif L==10 // tr #elif L==10 // tr
"Create new exam session" // Çeviri lazim! "S&inodot;nav oturumu olu&scedil;tur"
#endif #endif
, ,
[ActChgExaSes] = [ActChgExaSes] =
#if L==1 // ca #if L==1 // ca
"Change exam session" // Necessita traducció "Canviar sessi&oacute; d'examen"
#elif L==2 // de #elif L==2 // de
"Change exam session" // Need Übersetzung "Pr&uuml;fungssitzung &auml;ndern"
#elif L==3 // en #elif L==3 // en
"Change exam session" "Change exam session"
#elif L==4 // es #elif L==4 // es
"Cambiar sesi&oacute;n de examen" "Cambiar sesi&oacute;n de examen"
#elif L==5 // fr #elif L==5 // fr
"Change exam session" // Besoin de traduction "Modifier session d'examen"
#elif L==6 // gn #elif L==6 // gn
"Cambiar sesi&oacute;n de examen" // Okoteve traducción "Omoambue sesi&oacute;n de examen"
#elif L==7 // it #elif L==7 // it
"Change exam session" // Bisogno di traduzione "Cambia sessione d'esame"
#elif L==8 // pl #elif L==8 // pl
"Change exam session" // Potrzebujesz tlumaczenie "Zmieni&cacute; sesj&eogon; egzaminacyjn&aogon;"
#elif L==9 // pt #elif L==9 // pt
"Change exam session" // Precisa de tradução "Alterar sess&atilde;o de exame"
#elif L==10 // tr #elif L==10 // tr
"Change exam session" // Çeviri lazim! "S&inodot;nav oturumu de&gbreve;i&scedil;tir"
#endif #endif
, ,
[ActReqRemExaSes] = [ActReqRemExaSes] =