diff --git a/swad_changelog.h b/swad_changelog.h index 9a630d7df..c1999d15e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -194,17 +194,20 @@ // TODO: Un administrador de institución, ¿debería poder cambiar la contraseña de un usuario de esa institución? No lo tengo claro. +// TODO: Poner botón de crear lugares si no se ha creado ningún lugar + /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.144.1 (2017-03-01)" +#define Log_PLATFORM_VERSION "SWAD 16.144.2 (2017-03-01)" #define CSS_FILE "swad16.144.css" #define JS_FILE "swad16.144.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.144.2: Mar 01, 2017 Button to create a new group when no groups have been created. (213300 lines) Version 16.144.1: Mar 01, 2017 Zoom photo even if user has no photo. Country name is cached. (213290 lines) Version 16.144: Mar 01, 2017 Label with the user's country under her/his enlarged photo. (213265 lines) diff --git a/swad_group.c b/swad_group.c index 6d80b555c..adcd11133 100644 --- a/swad_group.c +++ b/swad_group.c @@ -1513,6 +1513,7 @@ void Grp_ShowLstGrpsToChgMyGrps (bool ShowWarningsToStudents) extern const char *Txt_Change_my_groups; extern const char *Txt_Enroll_in_groups; extern const char *Txt_No_groups_have_been_created_in_the_course_X; + extern const char *Txt_Create_group; unsigned NumGrpTyp; unsigned NumGrpsIBelong = 0; bool PutFormToChangeGrps = !Gbl.Form.Inside; // Not inside another form (record card) @@ -1565,6 +1566,14 @@ void Grp_ShowLstGrpsToChgMyGrps (bool ShowWarningsToStudents) sprintf (Gbl.Message,Txt_No_groups_have_been_created_in_the_course_X, Gbl.CurrentCrs.Crs.FullName); Lay_ShowAlert (Lay_INFO,Gbl.Message); + + /***** Button to create group *****/ + if (ICanEdit) + { + Act_FormStart (ActReqEdiGrp); + Lay_PutConfirmButton (Txt_Create_group); + Act_FormEnd (); + } } /***** End frame *****/