diff --git a/swad_changelog.h b/swad_changelog.h index fea9077fb..a162dc819 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -556,10 +556,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.248.1 (2020-05-25)" +#define Log_PLATFORM_VERSION "SWAD 19.248.2 (2020-05-25)" #define CSS_FILE "swad19.238.2.css" #define JS_FILE "swad19.246.1.js" /* + Version 19.248.2: May 30, 2020 Selection of all questions to add to a set. Suggested by Nuria Torres Rosell. (302854 lines) Version 19.248.1: May 30, 2020 Exam session results can not be marked as visible if end of time is not in the past. (302825 lines) Version 19.248: May 30, 2020 New API function getLastLocation. (302787 lines) Version 19.247.1: May 29, 2020 Do not show exam results in hidden exams or hidden exam sessions. (302646 lines) diff --git a/swad_test.c b/swad_test.c index 4425dabd6..84049214f 100644 --- a/swad_test.c +++ b/swad_test.c @@ -2597,7 +2597,9 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam MYSQL_RES *mysql_res) { extern const char *Hlp_ASSESSMENT_Exams_questions; + extern const char *The_ClassFormInBox[The_NUM_THEMES]; extern const char *Txt_Questions; + extern const char *Txt_All_questions; extern const char *Txt_No_INDEX; extern const char *Txt_Code; extern const char *Txt_Date; @@ -2619,6 +2621,13 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam Frm_StartForm (ActAddQstToExa); ExaSet_PutParamsOneSet (Exams); + /***** Select all questions *****/ + HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]); + HTM_INPUT_CHECKBOX ("AllQsts",HTM_DONT_SUBMIT_ON_CHANGE, + "value=\"Y\" onclick=\"togglecheckChildren(this,'QstCods');\""); + HTM_TxtF (" %s",Txt_All_questions); + HTM_LABEL_End (); + /***** Write the heading *****/ HTM_TABLE_BeginWideMarginPadding (5); HTM_TR_Begin (NULL); @@ -2774,7 +2783,7 @@ static void Tst_WriteQuestionRowForSelection (unsigned NumQst, /* Write checkbox to select the question */ HTM_INPUT_CHECKBOX ("QstCods",HTM_DONT_SUBMIT_ON_CHANGE, - "value=\"%ld\"", + "value=\"%ld\" onclick=\"checkParent(this,'AllQsts');\"", Question->QstCod); /* Write number of question */ diff --git a/swad_text.c b/swad_text.c index 8e8e0ec2e..f08ac0612 100644 --- a/swad_text.c +++ b/swad_text.c @@ -1403,6 +1403,27 @@ const char *Txt_All_places = "Todas as localizaçoes"; #endif +const char *Txt_All_questions = +#if L==1 // ca + "Totes les preguntes"; +#elif L==2 // de + "Alle Fragen"; +#elif L==3 // en + "All questions"; +#elif L==4 // es + "Todas las preguntas"; +#elif L==5 // fr + "Toutes les questions"; +#elif L==6 // gn + "Todas las preguntas"; // Okoteve traducción +#elif L==7 // it + "Tutte le domande"; +#elif L==8 // pl + "Wszystkie pytania"; +#elif L==9 // pt + "Todas as perguntas"; +#endif + const char *Txt_All_tags = // Tags used in test #if L==1 // ca "Tots els descriptors";