Version 22.32.1: Sep 29, 2022 Changes in program resources and calls for exams.

This commit is contained in:
acanas 2022-09-29 00:48:06 +02:00
parent 5c093ff11e
commit 797e32a5a2
4 changed files with 16 additions and 8 deletions

View File

@ -1812,6 +1812,7 @@ void Brw_GetParAndInitFileBrowser (void)
break; break;
/***** Documents in project *****/ /***** Documents in project *****/
case ActSeeOnePrj:
case ActAdmDocPrj: case ActAdmDocPrj:
case ActReqRemFilDocPrj: case ActReqRemFilDocPrj:
case ActRemFilDocPrj: case ActRemFilDocPrj:

View File

@ -71,7 +71,7 @@ static void Cfe_GetDateToHighlight (struct Cfe_CallsForExams *CallsForExams);
static void Cfe_ListCallsForExams (struct Cfe_CallsForExams *CallsForExams, static void Cfe_ListCallsForExams (struct Cfe_CallsForExams *CallsForExams,
Cfe_TypeViewCallForExam_t TypeViewCallForExam); Cfe_TypeViewCallForExam_t TypeViewCallForExam);
static void Cfe_PutIconToCreateNewCallForExam (__attribute__((unused)) void *Args); static void Cfe_PutIconsCallsForExams (__attribute__((unused)) void *Args);
static void Cfe_PutButtonToCreateNewCallForExam (void); static void Cfe_PutButtonToCreateNewCallForExam (void);
static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams, static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams,
@ -628,7 +628,7 @@ static void Cfe_ListCallsForExams (struct Cfe_CallsForExams *CallsForExams,
/***** Begin box *****/ /***** Begin box *****/
if (ICanEdit) if (ICanEdit)
Box_BoxBegin (NULL,Txt_Calls_for_exams, Box_BoxBegin (NULL,Txt_Calls_for_exams,
Cfe_PutIconToCreateNewCallForExam,NULL, Cfe_PutIconsCallsForExams,NULL,
Hlp_ASSESSMENT_Calls_for_exams,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Calls_for_exams,Box_NOT_CLOSABLE);
else else
Box_BoxBegin (NULL,Txt_Calls_for_exams, Box_BoxBegin (NULL,Txt_Calls_for_exams,
@ -683,12 +683,19 @@ static void Cfe_ListCallsForExams (struct Cfe_CallsForExams *CallsForExams,
} }
/*****************************************************************************/ /*****************************************************************************/
/******************* Put icon to create a new call for exam ******************/ /*********************** Put icons in calls for exams ************************/
/*****************************************************************************/ /*****************************************************************************/
static void Cfe_PutIconToCreateNewCallForExam (__attribute__((unused)) void *Args) static void Cfe_PutIconsCallsForExams (__attribute__((unused)) void *Args)
{ {
/***** Put icon to create a new call for exam *****/
Ico_PutContextualIconToAdd (ActEdiCfe,NULL,NULL,NULL); Ico_PutContextualIconToAdd (ActEdiCfe,NULL,NULL,NULL);
/***** Link to get resource link *****/
if (Gbl.Usrs.Me.Role.Logged == Rol_TCH || // Only if I am a teacher
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) // or a superuser
Ico_PutContextualIconToGetLink (ActReqLnkCfe,NULL,
NULL,NULL);
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -44,8 +44,7 @@ void Cfe_GetLinkToCallForExam (void)
char Title[Cfe_MAX_BYTES_SESSION_AND_DATE]; char Title[Cfe_MAX_BYTES_SESSION_AND_DATE];
/***** Get the code of the call for exam *****/ /***** Get the code of the call for exam *****/
if ((ExaCod = Cfe_GetParamExaCod ()) <= 0) ExaCod = Cfe_GetParamExaCod ();
Err_WrongCallForExamExit ();
/***** Get session and date of the exam *****/ /***** Get session and date of the exam *****/
CfeRsc_GetTitleFromExaCod (ExaCod,Title,sizeof (Title) - 1); CfeRsc_GetTitleFromExaCod (ExaCod,Title,sizeof (Title) - 1);

View File

@ -606,11 +606,12 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia. TODO: Attach pdf files in multimedia.
*/ */
#define Log_PLATFORM_VERSION "SWAD 22.32 (2022-09-29)" #define Log_PLATFORM_VERSION "SWAD 22.32.1 (2022-09-29)"
#define CSS_FILE "swad22.22.1.css" #define CSS_FILE "swad22.22.1.css"
#define JS_FILE "swad21.100.js" #define JS_FILE "swad21.100.js"
/* /*
Version 22.32: Sep 29, 2022 Code refactoring in program resources, assignments and projects. (332628 lines) Version 22.32.1: Sep 29, 2022 Changes in program resources and calls for exams. (332635 lines)
Version 22.32: Sep 29, 2022 Changes in program resources, assignments and projects. (332628 lines)
Version 22.31: Sep 28, 2022 New action to view one project. Version 22.31: Sep 28, 2022 New action to view one project.
Code refactoring in program resources. (332570 lines) Code refactoring in program resources. (332570 lines)
Version 22.30: Sep 28, 2022 New module swad_project_resource. (332490 lines) Version 22.30: Sep 28, 2022 New module swad_project_resource. (332490 lines)