diff --git a/swad_changelog.h b/swad_changelog.h index 16953feca..87f712ee8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -221,13 +221,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.194.2 (2017-04-28)" +#define Log_PLATFORM_VERSION "SWAD 16.194.3 (2017-04-28)" #define CSS_FILE "swad16.193.4.css" #define JS_FILE "swad16.181.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.194.3: Apr 28, 2017 Changed dialog to remove all students in course. (218340 lines) Version 16.194.2: Apr 28, 2017 Changed dialog to reject user's enrolment request. (218336 lines) Version 16.194.1: Apr 28, 2017 Changed dialog to register user as administrator. (218335 lines) Version 16.194: Apr 28, 2017 Fixed bugs in filtering sent and received messages. (218332 lines) diff --git a/swad_enrolment.c b/swad_enrolment.c index 41dd1a325..b19d0a70d 100644 --- a/swad_enrolment.c +++ b/swad_enrolment.c @@ -1759,17 +1759,21 @@ void Enr_AskRemAllStdsThisCrs (void) if ((NumStds = Usr_GetNumUsrsInCrs (Rol_STUDENT,Gbl.CurrentCrs.Crs.CrsCod))) { - /***** Write message to confirm the removing *****/ + /***** Show question and button to remove students *****/ + /* Start alert */ sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_X_students_from_the_course_Y_, NumStds,Gbl.CurrentCrs.Crs.FullName); - Lay_ShowAlert (Lay_WARNING,Gbl.Message); + Lay_ShowAlertAndButton1 (Lay_QUESTION,Gbl.Message); - /***** Form to remove all the students in current course *****/ + /* Show form to request confirmation */ Act_FormStart (ActRemAllStdCrs); Grp_PutParamAllGroups (); Pwd_AskForConfirmationOnDangerousAction (); Lay_PutRemoveButton (Txt_Remove_all_students); Act_FormEnd (); + + /* End alert */ + Lay_ShowAlertAndButton2 (ActUnk,NULL,Lay_NO_BUTTON,NULL); } else /***** Show warning indicating no students found *****/