From 7af9b8bc58d8db86f42bb9f1caca2ced8395c122 Mon Sep 17 00:00:00 2001 From: acanas Date: Sun, 7 May 2023 19:54:26 +0200 Subject: [PATCH] Version 22.107.8: May 07, 2023 Changes in edition of exam set. --- swad_changelog.h | 3 +- swad_exam_set.c | 95 +++++++++++++++++++++++++--------------------- swad_text.c | 46 +++++++++++----------- swad_text_action.c | 20 +++++----- 4 files changed, 86 insertions(+), 78 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index f731711b6..72c799669 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,11 @@ 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. */ -#define Log_PLATFORM_VERSION "SWAD 22.107.7 (2023-05-06)" +#define Log_PLATFORM_VERSION "SWAD 22.107.8 (2023-05-07)" #define CSS_FILE "swad22.107.css" #define JS_FILE "swad22.49.js" /* + Version 22.107.8: May 07, 2023 Changes in edition of exam set. (338031 lines) Version 22.107.7: May 06, 2023 Changes in edition of game. (338025 lines) Version 22.107.6: May 06, 2023 Code refactoring in edition of exam. (338023 lines) Version 22.107.5: May 06, 2023 Changes in edition of rubric. (338027 lines) diff --git a/swad_exam_set.c b/swad_exam_set.c index 6f316adb1..a7e9cc48b 100644 --- a/swad_exam_set.c +++ b/swad_exam_set.c @@ -180,62 +180,69 @@ static void ExaSet_PutFormNewSet (struct Exa_Exams *Exams, struct ExaSet_Set *Set, unsigned MaxSetInd) { - extern const char *Txt_Create_set_of_questions; + extern const char *Txt_Actions[ActLst_NUM_ACTIONS]; + extern const char *Txt_Create; - /***** Begin form *****/ - Frm_BeginForm (ActNewExaSet); - Exa_PutPars (Exams); + /***** Begin fieldset *****/ + HTM_FIELDSET_Begin (NULL); + HTM_LEGEND (Txt_Actions[ActNewExaSet]); - /***** Begin box and table *****/ - Box_BoxTableBegin (NULL,NULL, - NULL,NULL, - NULL,Box_NOT_CLOSABLE,2); + /***** Begin form *****/ + Frm_BeginForm (ActNewExaSet); + Exa_PutPars (Exams); - /***** Table heading *****/ - ExaSet_PutTableHeadingForSets (); + /***** Begin table *****/ + HTM_TABLE_BeginWidePadding (2); - /***** Begin row *****/ - HTM_TR_Begin (NULL); + /***** Table heading *****/ + ExaSet_PutTableHeadingForSets (); - /***** Empty column for buttons *****/ - HTM_TD_Begin ("class=\"BM\""); - HTM_TD_End (); + /***** Begin row *****/ + HTM_TR_Begin (NULL); - /***** Index *****/ - HTM_TD_Begin ("class=\"RM\""); - Lay_WriteIndex (MaxSetInd + 1,"BIG_INDEX"); - HTM_TD_End (); + /***** Empty column for buttons *****/ + HTM_TD_Begin ("class=\"BM\""); + HTM_TD_End (); - /***** Title *****/ - HTM_TD_Begin ("class=\"LM\""); - HTM_INPUT_TEXT ("Title",ExaSet_MAX_CHARS_TITLE,Set->Title, - HTM_DONT_SUBMIT_ON_CHANGE, - "id=\"Title\"" - " class=\"TITLE_DESCRIPTION_WIDTH INPUT_%s\"" - " required=\"required\"", - The_GetSuffix ()); - HTM_TD_End (); + /***** Index *****/ + HTM_TD_Begin ("class=\"RM\""); + Lay_WriteIndex (MaxSetInd + 1,"BIG_INDEX"); + HTM_TD_End (); - /***** Current number of questions in set *****/ - HTM_TD_Begin ("class=\"RM\""); - HTM_Unsigned (0); // New set ==> no questions yet - HTM_TD_End (); + /***** Title *****/ + HTM_TD_Begin ("class=\"LM\""); + HTM_INPUT_TEXT ("Title",ExaSet_MAX_CHARS_TITLE,Set->Title, + HTM_DONT_SUBMIT_ON_CHANGE, + "id=\"Title\"" + " class=\"TITLE_DESCRIPTION_WIDTH INPUT_%s\"" + " required=\"required\"", + The_GetSuffix ()); + HTM_TD_End (); - /***** Number of questions to appear in the exam *****/ - HTM_TD_Begin ("class=\"RM\""); - HTM_INPUT_LONG ("NumQstsToPrint",0,UINT_MAX,(long) Set->NumQstsToPrint, - HTM_DONT_SUBMIT_ON_CHANGE,false, - "class=\"INPUT_LONG\" required=\"required\""); - HTM_TD_End (); + /***** Current number of questions in set *****/ + HTM_TD_Begin ("class=\"RM\""); + HTM_Unsigned (0); // New set ==> no questions yet + HTM_TD_End (); - /***** End row *****/ - HTM_TR_End (); + /***** Number of questions to appear in the exam *****/ + HTM_TD_Begin ("class=\"RM\""); + HTM_INPUT_LONG ("NumQstsToPrint",0,UINT_MAX,(long) Set->NumQstsToPrint, + HTM_DONT_SUBMIT_ON_CHANGE,false, + "class=\"INPUT_LONG\" required=\"required\""); + HTM_TD_End (); - /***** End table, send button and end box *****/ - Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_set_of_questions); + /***** End row *****/ + HTM_TR_End (); - /***** End form *****/ - Frm_EndForm (); + /***** End table and send button *****/ + HTM_TABLE_End (); + Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create); + + /***** End form *****/ + Frm_EndForm (); + + /***** End fieldset *****/ + HTM_FIELDSET_End (); } /*****************************************************************************/ diff --git a/swad_text.c b/swad_text.c index 0317384a7..2d6f0aefa 100644 --- a/swad_text.c +++ b/swad_text.c @@ -6549,6 +6549,29 @@ const char *Txt_Courses_of_DEGREE_X = // Warning: it is very important to includ "Courses of %s"; // Çeviri lazim! #endif +const char *Txt_Create = +#if L==1 // ca + "Crear"; +#elif L==2 // de + "Erstellen"; +#elif L==3 // en + "Create"; +#elif L==4 // es + "Crear"; +#elif L==5 // fr + "Créer"; +#elif L==6 // gn + "Omoheñói haguã"; +#elif L==7 // it + "Crea"; +#elif L==8 // pl + "Utwórz"; +#elif L==9 // pt + "Criar"; +#elif L==10 // tr + "Yaratmak"; +#endif + const char *Txt_Create_account = #if L==1 // ca "Crea compte"; @@ -7308,29 +7331,6 @@ const char *Txt_Create_rubric = "Değerlendirme listesi oluşturun"; #endif -const char *Txt_Create_set_of_questions = -#if L==1 // ca - "Crear conjunt de preguntes"; -#elif L==2 // de - "Satz von Fragen erstellen"; -#elif L==3 // en - "Create set of questions"; -#elif L==4 // es - "Crear conjunto de preguntas"; -#elif L==5 // fr - "Créer ensemble de questions"; -#elif L==6 // gn - "Crear conjunto de preguntas"; // Okoteve traducción -#elif L==7 // it - "Crea set di domande"; -#elif L==8 // pl - "Utwórz zestaw pytań"; -#elif L==9 // pt - "Criar conjunto de perguntas"; -#elif L==10 // tr - "Create set of questions"; // Çeviri lazim! -#endif - const char *Txt_Create_session = #if L==1 // ca "Crear sessió"; diff --git a/swad_text_action.c b/swad_text_action.c index d41f245f2..babf4b0b4 100644 --- a/swad_text_action.c +++ b/swad_text_action.c @@ -12070,25 +12070,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] = , [ActNewExaSet] = #if L==1 // ca - "Create new exam set" // Necessita traducció + "Crear conjunt de preguntes" #elif L==2 // de - "Create new exam set" // Need Übersetzung + "Satz von Fragen erstellen" #elif L==3 // en - "Create new exam set" + "Create set of questions" #elif L==4 // es - "Crear nuevo conjunto de preguntas" + "Crear conjunto de preguntas" #elif L==5 // fr - "Create new exam set" // Besoin de traduction + "Créer ensemble de questions" #elif L==6 // gn - "Crear nuevo conjunto de preguntas" // Okoteve traducción + "Ojapo porandu ñemohenda" #elif L==7 // it - "Create new exam set" // Bisogno di traduzione + "Crea set di domande" #elif L==8 // pl - "Create new exam set" // Potrzebujesz tlumaczenie + "Utwórz zestaw pytań" #elif L==9 // pt - "Create new exam set" // Precisa de tradução + "Criar conjunto de perguntas" #elif L==10 // tr - "Create new exam set" // Çeviri lazim! + "Soru grubu oluştur" #endif , [ActReqRemExaSet] =