",
Txt_The_whole_course,Gbl.CurrentCrs.Crs.ShrtName);
diff --git a/swad_changelog.h b/swad_changelog.h
index 706ec6fb8..d74f38908 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -188,13 +188,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 16.105.1 (2016-12-20)"
+#define Log_PLATFORM_VERSION "SWAD 16.105.2 (2016-12-20)"
#define CSS_FILE "swad16.105.css"
#define JS_FILE "swad16.101.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 16.105.2: Dec 20, 2016 Changes in behaviour of labels in forms. (211279 lines)
Version 16.105.1: Dec 20, 2016 Changes in behaviour of labels in forms. (211244 lines)
Version 16.105: Dec 20, 2016 Changes in behaviour of labels in forms.
Changes in layout for Safari browser. (211237 lines)
diff --git a/swad_group.c b/swad_group.c
index 4d18a36ef..9022e45a6 100644
--- a/swad_group.c
+++ b/swad_group.c
@@ -262,12 +262,15 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction)
/***** Select all groups *****/
fprintf (Gbl.F.Out,"
"
- ""
+ ""
- " %s"
+ " %s"
+ ""
"
",
Txt_All_groups);
@@ -1490,7 +1493,9 @@ void Grp_ListGrpsToEditAsgAttOrSvy (struct GroupType *GrpTyp,long Cod,Grp_AsgOrS
if (IBelongToThisGroup)
fprintf (Gbl.F.Out," LIGHT_BLUE");
fprintf (Gbl.F.Out,"\">"
- "GrpCod,
Grp->GrpCod);
if (Cod > 0) // Cod == -1L means new assignment or survey
{
@@ -1512,7 +1517,8 @@ void Grp_ListGrpsToEditAsgAttOrSvy (struct GroupType *GrpTyp,long Cod,Grp_AsgOrS
if (!(IBelongToThisGroup ||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM))
fprintf (Gbl.F.Out," disabled=\"disabled\"");
- fprintf (Gbl.F.Out," onclick=\"uncheckParent(this,'WholeCrs')\" />");
+ fprintf (Gbl.F.Out," onclick=\"uncheckParent(this,'WholeCrs')\" />"
+ "");
Grp_WriteRowGrp (Grp,IBelongToThisGroup);
@@ -1705,15 +1711,19 @@ static unsigned Grp_ListGrpsForChange (struct GroupType *GrpTyp)
!GrpTyp->MultipleEnrollment &&
GrpTyp->NumGrps > 1)
{
- fprintf (Gbl.F.Out,"radio\" name=\"GrpCod%ld\" value=\"%ld\"",
- GrpTyp->GrpTypCod,Grp->GrpCod);
+ fprintf (Gbl.F.Out,"radio\" id=\"Grp%ld\" name=\"GrpCod%ld\""
+ " value=\"%ld\"",
+ Grp->GrpCod,GrpTyp->GrpTypCod,
+ Grp->GrpCod);
if (!GrpTyp->MandatoryEnrollment) // If the enrollment is not mandatory, I can select no groups
fprintf (Gbl.F.Out," onclick=\"selectUnselectRadio(this,this.form.GrpCod%ld,%u)\"",
GrpTyp->GrpTypCod,GrpTyp->NumGrps);
}
else // Put a checkbox item
- fprintf (Gbl.F.Out,"checkbox\" name=\"GrpCod%ld\" value=\"%ld\"",
- GrpTyp->GrpTypCod,Grp->GrpCod);
+ fprintf (Gbl.F.Out,"checkbox\" id=\"Grp%ld\" name=\"GrpCod%ld\""
+ " value=\"%ld\"",
+ Grp->GrpCod,GrpTyp->GrpTypCod,
+ Grp->GrpCod);
if (IBelongToThisGroup)
fprintf (Gbl.F.Out," checked=\"checked\"");
@@ -1808,8 +1818,10 @@ static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
if (UsrBelongsToThisGroup)
fprintf (Gbl.F.Out," LIGHT_BLUE");
fprintf (Gbl.F.Out,"\">"
- "GrpTypCod,Grp->GrpCod);
+ "GrpCod,GrpTyp->GrpTypCod,
+ Grp->GrpCod);
if (UsrBelongsToThisGroup)
fprintf (Gbl.F.Out," checked=\"checked\"");
if (!(IBelongToThisGroup ||
@@ -1862,7 +1874,9 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
if (IBelongToThisGroup)
fprintf (Gbl.F.Out," LIGHT_BLUE");
fprintf (Gbl.F.Out,"\">"
- "GrpCod,
Grp->GrpCod);
if (Gbl.Usrs.ClassPhoto.AllGroups)
fprintf (Gbl.F.Out," checked=\"checked\"");
@@ -1890,7 +1904,9 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
/* Write checkbox to select the group */
fprintf (Gbl.F.Out,"
"
@@ -1911,9 +1928,9 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
/* Group name = students with no group */
fprintf (Gbl.F.Out,"
"
- "%s "
+ ""
"
",
- Txt_students_with_no_group);
+ -(GrpTyp->GrpTypCod),Txt_students_with_no_group);
/* Number of students who don't belong to any group of this type */
fprintf (Gbl.F.Out,"
",
+ Grp->GrpCod,
Grp->GrpName);
/***** Max. number of students in this group *****/
diff --git a/swad_survey.c b/swad_survey.c
index d5c63e563..bdcbd5091 100644
--- a/swad_survey.c
+++ b/swad_survey.c
@@ -2056,11 +2056,15 @@ static void Svy_ShowLstGrpsToEditSurvey (long SvyCod)
/***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out,"