From 332c0c8d0dbcc1951bcb246545415119a1422e4b Mon Sep 17 00:00:00 2001 From: acanas Date: Sat, 30 May 2020 20:16:34 +0200 Subject: [PATCH] Version19.248.3 --- swad_changelog.h | 1 + swad_test.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/swad_changelog.h b/swad_changelog.h index a162dc819..d50e50c03 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -560,6 +560,7 @@ ps2pdf source.ps destination.pdf #define CSS_FILE "swad19.238.2.css" #define JS_FILE "swad19.246.1.js" /* + Version 19.248.3: May 30, 2020 Selection of all questions to add to a game. (302863 lines) 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) diff --git a/swad_test.c b/swad_test.c index 84049214f..85cf56a67 100644 --- a/swad_test.c +++ b/swad_test.c @@ -2688,7 +2688,9 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForGame (struct Gam_Games *Gam MYSQL_RES *mysql_res) { extern const char *Hlp_ASSESSMENT_Games_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; @@ -2710,6 +2712,13 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForGame (struct Gam_Games *Gam Frm_StartForm (ActAddTstQstToGam); Gam_PutParams (Games); + /***** 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);