mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-13 12:14:06 +02:00
Version18.109.1
This commit is contained in:
parent
48ba865513
commit
f312766129
2652
swad_action.c
2652
swad_action.c
File diff suppressed because it is too large
Load Diff
|
@ -459,10 +459,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.109 (2019-04-09)"
|
#define Log_PLATFORM_VERSION "SWAD 18.109.1 (2019-04-10)"
|
||||||
#define CSS_FILE "swad18.92.css"
|
#define CSS_FILE "swad18.92.css"
|
||||||
#define JS_FILE "swad18.92.js"
|
#define JS_FILE "swad18.92.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.109.1: Apr 10, 2019 A non-editing teacher can choose students with no groups of a type. (242406 lines)
|
||||||
Version 18.109: Apr 09, 2019 Code refactoring in edition of plugins. (242421 lines)
|
Version 18.109: Apr 09, 2019 Code refactoring in edition of plugins. (242421 lines)
|
||||||
Version 18.108: Apr 09, 2019 Code refactoring in edition of links. (242336 lines)
|
Version 18.108: Apr 09, 2019 Code refactoring in edition of links. (242336 lines)
|
||||||
Version 18.107: Apr 09, 2019 Code refactoring in edition of banners. (242275 lines)
|
Version 18.107: Apr 09, 2019 Code refactoring in edition of banners. (242275 lines)
|
||||||
|
|
28
swad_group.c
28
swad_group.c
|
@ -369,13 +369,14 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction,
|
||||||
unsigned NumGrpTyp;
|
unsigned NumGrpTyp;
|
||||||
bool ICanEdit;
|
bool ICanEdit;
|
||||||
|
|
||||||
if (Gbl.Crs.Grps.NumGrps)
|
/***** Trivial check: if no groups ==> nothing to do *****/
|
||||||
{
|
if (!Gbl.Crs.Grps.NumGrps)
|
||||||
|
return;
|
||||||
|
|
||||||
|
/***** Start box *****/
|
||||||
ICanEdit = !Gbl.Form.Inside &&
|
ICanEdit = !Gbl.Form.Inside &&
|
||||||
(Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
|
(Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
|
||||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
|
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
|
||||||
|
|
||||||
/***** Start box *****/
|
|
||||||
Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
|
Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||||
NULL,
|
NULL,
|
||||||
Hlp_USERS_Groups,Box_CLOSABLE);
|
Hlp_USERS_Groups,Box_CLOSABLE);
|
||||||
|
@ -422,7 +423,6 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction,
|
||||||
/***** End box *****/
|
/***** End box *****/
|
||||||
Box_EndBox ();
|
Box_EndBox ();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/******************* Put checkbox to select all groups ***********************/
|
/******************* Put checkbox to select all groups ***********************/
|
||||||
|
@ -2272,23 +2272,7 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp,
|
||||||
/***** Write rows to select the students who don't belong to any group *****/
|
/***** Write rows to select the students who don't belong to any group *****/
|
||||||
/* To get the students who don't belong to a type of group, use group code -(GrpTyp->GrpTypCod) */
|
/* To get the students who don't belong to a type of group, use group code -(GrpTyp->GrpTypCod) */
|
||||||
/* Write checkbox to select the group */
|
/* Write checkbox to select the group */
|
||||||
switch (Gbl.Usrs.Me.Role.Logged)
|
ICanSelUnselGroup = (Gbl.Usrs.Me.Role.Logged >= Rol_STD);
|
||||||
{
|
|
||||||
case Rol_NET:
|
|
||||||
ICanSelUnselGroup = false;
|
|
||||||
break;
|
|
||||||
case Rol_STD:
|
|
||||||
case Rol_TCH:
|
|
||||||
case Rol_DEG_ADM:
|
|
||||||
case Rol_CTR_ADM:
|
|
||||||
case Rol_INS_ADM:
|
|
||||||
case Rol_SYS_ADM:
|
|
||||||
ICanSelUnselGroup = true;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ICanSelUnselGroup = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"LEFT_MIDDLE\">"
|
"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"checkbox\" id=\"Grp%ld\" name=\"GrpCods\""
|
"<input type=\"checkbox\" id=\"Grp%ld\" name=\"GrpCods\""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user