Version 16.225.12

This commit is contained in:
Antonio Cañas Vargas 2017-05-29 15:00:23 +02:00
parent d5814cafc9
commit 3a07717622
7 changed files with 17 additions and 9 deletions

View File

@ -1074,7 +1074,6 @@ a:hover /* Default ==> underlined */
.CONNECTED .CONNECTED
{ {
box-sizing:border-box; box-sizing:border-box;
width:148px;
margin:0 auto; margin:0 auto;
background:white; background:white;
border-style:solid; border-style:solid;

View File

@ -229,20 +229,20 @@
// TODO: Al listar administradores, debería estar marcado por defecto "Incluir fotos" // TODO: Al listar administradores, debería estar marcado por defecto "Incluir fotos"
// TODO: Add buttons to register students in courses without students
// TODO: Behaviour of register non-editing teachers in groups should be similar to register students. // TODO: Behaviour of register non-editing teachers in groups should be similar to register students.
/*****************************************************************************/ /*****************************************************************************/
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.225.11 (2017-05-29)" #define Log_PLATFORM_VERSION "SWAD 16.225.12 (2017-05-29)"
#define CSS_FILE "swad16.222.css" #define CSS_FILE "swad16.222.css"
#define JS_FILE "swad16.206.3.js" #define JS_FILE "swad16.206.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/* /*
Version 16.225.12:May 29, 2017 Button to register students in connected and requests. (220587 lines)
Version 16.225.11:May 29, 2017 Button to register students everytime an alert with no students in course is displayed. (220581 lines) Version 16.225.11:May 29, 2017 Button to register students everytime an alert with no students in course is displayed. (220581 lines)
Version 16.225.10:May 29, 2017 Buttons to register students in listing of teacher's courses. (220561 lines) Version 16.225.10:May 29, 2017 Buttons to register students in listing of teacher's courses. (220561 lines)
Version 16.225.9: May 29, 2017 Fixed minor bug in user administration. (220540 lines) Version 16.225.9: May 29, 2017 Fixed minor bug in user administration. (220540 lines)

View File

@ -467,7 +467,7 @@ static void Con_ShowConnectedUsrsBelongingToLocation (void)
/***** Start container *****/ /***** Start container *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\"" fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
" style=\"width:390px; margin-top:6px;\">"); " style=\"margin-top:6px;\">");
/***** Number of connected users who belong to scope *****/ /***** Number of connected users who belong to scope *****/
Con_GetNumConnectedUsrsWithARoleBelongingCurrentLocation (Rol_UNK,&Usrs); Con_GetNumConnectedUsrsWithARoleBelongingCurrentLocation (Rol_UNK,&Usrs);
@ -491,6 +491,11 @@ static void Con_ShowConnectedUsrsBelongingToLocation (void)
Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnMainZone (Rol_GST); Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnMainZone (Rol_GST);
fprintf (Gbl.F.Out,"</table>"); fprintf (Gbl.F.Out,"</table>");
/***** Put link to register students *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_TCH) // Course selected and I am logged as teacher
if (!Gbl.CurrentCrs.Crs.NumUsrs[Rol_STD]) // No students in course
Usr_ShowWarningNoUsersFound (Rol_STD);
/***** End container *****/ /***** End container *****/
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
} }

View File

@ -758,7 +758,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
{ {
Act_FormStart (ActReqEnrSevStd); Act_FormStart (ActReqEnrSevStd);
Crs_PutParamCrsCod (Crs.CrsCod); Crs_PutParamCrsCod (Crs.CrsCod);
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT_INLINE BT_CONFIRM\">" fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT_INLINE BT_CREATE\">"
"%s" "%s"
"</button>", "</button>",
Txt_Register_students); Txt_Register_students);

View File

@ -164,7 +164,7 @@ void Enr_PutButtonToEnrolStudents (void)
Gbl.Usrs.Me.LoggedRole == Rol_TCH) // I am logged as teacher Gbl.Usrs.Me.LoggedRole == Rol_TCH) // I am logged as teacher
{ {
Act_FormStart (ActReqEnrSevStd); Act_FormStart (ActReqEnrSevStd);
Lay_PutConfirmButton (Txt_Register_students); Lay_PutCreateButton (Txt_Register_students);
Act_FormEnd (); Act_FormEnd ();
} }
} }
@ -2932,6 +2932,11 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
else // There are no requests else // There are no requests
Ale_ShowAlert (Ale_INFO,Txt_No_enrolment_requests); Ale_ShowAlert (Ale_INFO,Txt_No_enrolment_requests);
/***** Put link to register students *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_TCH) // Course selected and I am logged as teacher
if (!Gbl.CurrentCrs.Crs.NumUsrs[Rol_STD]) // No students in course
Usr_ShowWarningNoUsersFound (Rol_STD);
/***** End frame *****/ /***** End frame *****/
Lay_EndRoundFrame (); Lay_EndRoundFrame ();
} }

View File

@ -172,7 +172,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
Gbl.CurrentCrs.Crs.ShrtName); Gbl.CurrentCrs.Crs.ShrtName);
Hlp_ShowRowHelpWhatWouldYouLikeToDo (Gbl.Title, Hlp_ShowRowHelpWhatWouldYouLikeToDo (Gbl.Title,
ActReqEnrSevStd, ActReqEnrSevStd,
"BT_CONFIRM",Txt_Register_students); "BT_CREATE",Txt_Register_students);
} }
if (Gbl.Action.Act != ActMyCrs) // I am not seeing the action to list my courses if (Gbl.Action.Act != ActMyCrs) // I am not seeing the action to list my courses

View File

@ -8162,8 +8162,7 @@ void Usr_ShowWarningNoUsersFound (Rol_Role_t Role)
extern const char *Txt_No_users_found[Rol_NUM_ROLES]; extern const char *Txt_No_users_found[Rol_NUM_ROLES];
if (Role == Rol_STD && // No students found if (Role == Rol_STD && // No students found
Gbl.CurrentCrs.Crs.CrsCod > 0 && // Course selected Gbl.Usrs.Me.LoggedRole == Rol_TCH) // Course selected and I am logged as teacher
Gbl.Usrs.Me.LoggedRole == Rol_TCH) // I am logged as teacher
{ {
/***** Show alert *****/ /***** Show alert *****/
Ale_ShowAlert (Ale_WARNING,Txt_No_users_found[Role]); Ale_ShowAlert (Ale_WARNING,Txt_No_users_found[Role]);