mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-10 10:45:23 +02:00
Version 22.36.1: Sep 30, 2022 Changes in layout of exams.
This commit is contained in:
parent
1a1a46dd5b
commit
9ec703e908
|
@ -606,10 +606,11 @@ 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.36 (2022-09-30)"
|
#define Log_PLATFORM_VERSION "SWAD 22.36.1 (2022-09-30)"
|
||||||
#define CSS_FILE "swad22.35.css"
|
#define CSS_FILE "swad22.35.css"
|
||||||
#define JS_FILE "swad21.100.js"
|
#define JS_FILE "swad21.100.js"
|
||||||
/*
|
/*
|
||||||
|
Version 22.36.1: Sep 30, 2022 Changes in layout of exams. (332596 lines)
|
||||||
Version 22.36: Sep 30, 2022 Code refactoring in exams. (332589 lines)
|
Version 22.36: Sep 30, 2022 Code refactoring in exams. (332589 lines)
|
||||||
Version 22.35: Sep 30, 2022 Changes in layout of projects. (332690 lines)
|
Version 22.35: Sep 30, 2022 Changes in layout of projects. (332690 lines)
|
||||||
Version 22.34: Sep 29, 2022 Changes in layout of assignments. (332721 lines)
|
Version 22.34: Sep 29, 2022 Changes in layout of assignments. (332721 lines)
|
||||||
|
|
43
swad_exam.c
43
swad_exam.c
|
@ -486,19 +486,14 @@ static void Exa_ShowOneExam (struct Exa_Exams *Exams,bool ShowOnlyThisExam)
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/***** Icons related to this exam *****/
|
/***** Icons related to this exam *****/
|
||||||
if (Exa_CheckIfICanEditExams ())
|
if (!ShowOnlyThisExam)
|
||||||
{
|
if (Exa_CheckIfICanEditExams ())
|
||||||
if (ShowOnlyThisExam)
|
{
|
||||||
HTM_TD_Begin ("rowspan=\"2\" class=\"CONTEXT_COL\"");
|
|
||||||
else
|
|
||||||
HTM_TD_Begin ("rowspan=\"2\" class=\"CONTEXT_COL %s\"",
|
HTM_TD_Begin ("rowspan=\"2\" class=\"CONTEXT_COL %s\"",
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
|
Exa_PutIconsToRemEditOneExam (Exams,Anchor);
|
||||||
/* Icons to remove/edit this exam */
|
HTM_TD_End ();
|
||||||
Exa_PutIconsToRemEditOneExam (Exams,Anchor);
|
}
|
||||||
|
|
||||||
HTM_TD_End ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/***** Start/end date/time *****/
|
/***** Start/end date/time *****/
|
||||||
UniqueId++;
|
UniqueId++;
|
||||||
|
@ -632,6 +627,8 @@ static void Exa_ShowOneExam (struct Exa_Exams *Exams,bool ShowOnlyThisExam)
|
||||||
|
|
||||||
static void Exa_PutIconsOneExam (void *Exams)
|
static void Exa_PutIconsOneExam (void *Exams)
|
||||||
{
|
{
|
||||||
|
char *Anchor;
|
||||||
|
/*
|
||||||
static const Act_Action_t NextAction[Rol_NUM_ROLES] =
|
static const Act_Action_t NextAction[Rol_NUM_ROLES] =
|
||||||
{
|
{
|
||||||
[Rol_STD ] = ActSeeMyExaResExa,
|
[Rol_STD ] = ActSeeMyExaResExa,
|
||||||
|
@ -639,18 +636,28 @@ static void Exa_PutIconsOneExam (void *Exams)
|
||||||
[Rol_TCH ] = ActSeeUsrExaResExa,
|
[Rol_TCH ] = ActSeeUsrExaResExa,
|
||||||
[Rol_SYS_ADM] = ActSeeUsrExaResExa,
|
[Rol_SYS_ADM] = ActSeeUsrExaResExa,
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
if (Exams)
|
if (Exams)
|
||||||
{
|
{
|
||||||
/***** Put icon to view results of sessions in exam *****/
|
/***** Put icon to view results of sessions in exam *****/
|
||||||
if (NextAction[Gbl.Usrs.Me.Role.Logged])
|
// if (NextAction[Gbl.Usrs.Me.Role.Logged])
|
||||||
Ico_PutContextualIconToShowResults (NextAction[Gbl.Usrs.Me.Role.Logged],ExaRes_RESULTS_BOX_ID,
|
// Ico_PutContextualIconToShowResults (NextAction[Gbl.Usrs.Me.Role.Logged],ExaRes_RESULTS_BOX_ID,
|
||||||
Exa_PutParams,Exams);
|
// Exa_PutParams,Exams);
|
||||||
|
|
||||||
/***** Link to get resource link *****/
|
/***** Link to get resource link *****/
|
||||||
if (PrgRsc_CheckIfICanGetLink ())
|
// if (PrgRsc_CheckIfICanGetLink ())
|
||||||
Ico_PutContextualIconToGetLink (ActReqLnkExa,NULL,
|
// Ico_PutContextualIconToGetLink (ActReqLnkExa,NULL,
|
||||||
Exa_PutParams,Exams);
|
// Exa_PutParams,Exams);
|
||||||
|
|
||||||
|
/***** Build anchor string *****/
|
||||||
|
Frm_SetAnchorStr (((struct Exa_Exams *) Exams)->Exam.ExaCod,&Anchor);
|
||||||
|
|
||||||
|
/***** Icons to remove/edit this exam *****/
|
||||||
|
Exa_PutIconsToRemEditOneExam ((struct Exa_Exams *) Exams,Anchor);
|
||||||
|
|
||||||
|
/***** Free anchor string *****/
|
||||||
|
Frm_FreeAnchorStr (Anchor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user