mirror of https://github.com/acanas/swad-core.git
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
|
||||
*/
|
||||
|
||||
#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 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.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)
|
||||
|
|
28
swad_group.c
28
swad_group.c
|
@ -369,13 +369,14 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction,
|
|||
unsigned NumGrpTyp;
|
||||
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 &&
|
||||
(Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
|
||||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||
NULL,
|
||||
Hlp_USERS_Groups,Box_CLOSABLE);
|
||||
|
@ -422,7 +423,6 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction,
|
|||
/***** End box *****/
|
||||
Box_EndBox ();
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************* 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 *****/
|
||||
/* To get the students who don't belong to a type of group, use group code -(GrpTyp->GrpTypCod) */
|
||||
/* Write checkbox to select the group */
|
||||
switch (Gbl.Usrs.Me.Role.Logged)
|
||||
{
|
||||
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;
|
||||
}
|
||||
ICanSelUnselGroup = (Gbl.Usrs.Me.Role.Logged >= Rol_STD);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"checkbox\" id=\"Grp%ld\" name=\"GrpCods\""
|
||||
|
|
Loading…
Reference in New Issue