Version 15.151.2

This commit is contained in:
Antonio Cañas Vargas 2016-03-19 00:19:18 +01:00
parent 43f215a44b
commit 30296f008e
2 changed files with 13 additions and 7 deletions

View File

@ -134,13 +134,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.151.1 (2016-03-18)"
#define Log_PLATFORM_VERSION "SWAD 15.151.2 (2016-03-19)"
#define CSS_FILE "swad15.150.2.css"
#define JS_FILE "swad15.131.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/*
Version 15.151.2: Mar 19, 2016 Changes in layout of groups. (195935 lines)
Version 15.151.1: Mar 18, 2016 Changes in layout of groups. (195929 lines)
Version 15.151: Mar 18, 2016 Changes in layout of header class photo. (195930 lines)
Version 15.150.10:Mar 18, 2016 Icon to print calendar integrated in frame. (195961 lines)

View File

@ -234,9 +234,17 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
extern const char *Txt_Update_students;
extern const char *Txt_Update_students_according_to_selected_groups;
unsigned NumGrpTyp;
bool ICanEdit = !Gbl.Form.Inside &&
(Gbl.Usrs.Me.LoggedRole == Rol_TEACHER ||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM);
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
/***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Groups,
ICanEdit ? Grp_PutIconToEditGroups :
NULL);
/***** Start form to update the students listed
depending on the groups selected *****/
Act_FormStart (NextAction);
@ -247,9 +255,6 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
/***** Put parameters needed depending on the action *****/
Usr_PutExtraParamsUsrList (NextAction);
/***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Groups,NULL);
/***** Select all groups *****/
fprintf (Gbl.F.Out,"<div class=\"%s CENTER_MIDDLE\">"
"<input type=\"checkbox\" id=\"AllGroups\" name=\"AllGroups\" value=\"Y\"",
@ -283,11 +288,11 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
Lay_PutCalculateIconWithText (Txt_Update_students_according_to_selected_groups,Txt_Update_students);
fprintf (Gbl.F.Out,"</div>");
/***** End frame *****/
Lay_EndRoundFrame ();
/***** End form *****/
Act_FormEnd ();
/***** End frame *****/
Lay_EndRoundFrame ();
fprintf (Gbl.F.Out,"</div>");
}