Version 15.153.1

This commit is contained in:
Antonio Cañas Vargas 2016-03-19 19:34:22 +01:00
parent 2d2c2364c0
commit e9a0b1d2db
2 changed files with 15 additions and 20 deletions

View File

@ -99,9 +99,6 @@ void Asg_SeeAssignments (void)
Grp_GetParamWhichGrps (); Grp_GetParamWhichGrps ();
Pag_GetParamPagNum (Pag_ASSIGNMENTS); Pag_GetParamPagNum (Pag_ASSIGNMENTS);
/***** Get list of assignments *****/
Asg_GetListAssignments ();
/***** Show all the assignments *****/ /***** Show all the assignments *****/
Asg_ShowAllAssignments (); Asg_ShowAllAssignments ();
} }
@ -123,6 +120,9 @@ static void Asg_ShowAllAssignments (void)
struct Pagination Pagination; struct Pagination Pagination;
unsigned NumAsg; unsigned NumAsg;
/***** Get list of assignments *****/
Asg_GetListAssignments ();
/***** Compute variables related to pagination *****/ /***** Compute variables related to pagination *****/
Pagination.NumItems = Gbl.Asgs.Num; Pagination.NumItems = Gbl.Asgs.Num;
Pagination.CurrentPage = (int) Gbl.Pag.CurrentPage; Pagination.CurrentPage = (int) Gbl.Pag.CurrentPage;
@ -227,12 +227,10 @@ static void Asg_PutIconToCreateNewAsg (void)
static void Asg_PutButtonToCreateNewAsg (void) static void Asg_PutButtonToCreateNewAsg (void)
{ {
extern const char *Txt_New_assignment; extern const char *Txt_New_assignment;
extern const char *Txt_Create_assignment;
Act_FormStart (ActFrmNewAsg); Act_FormStart (ActFrmNewAsg);
Asg_PutParamsToCreateNewAsg (); Asg_PutParamsToCreateNewAsg ();
Lay_PutConfirmButton (Gbl.Asgs.Num ? Txt_New_assignment : Lay_PutConfirmButton (Txt_New_assignment);
Txt_Create_assignment);
Act_FormEnd (); Act_FormEnd ();
} }
@ -1141,12 +1139,8 @@ void Asg_RequestCreatOrEditAsg (void)
Lay_EndRoundFrameTableWithButton (Lay_CONFIRM_BUTTON,Txt_Save); Lay_EndRoundFrameTableWithButton (Lay_CONFIRM_BUTTON,Txt_Save);
Act_FormEnd (); Act_FormEnd ();
/***** Get list of assignments *****/
Asg_GetListAssignments ();
/***** Show current assignments, if any *****/ /***** Show current assignments, if any *****/
if (Gbl.Asgs.Num) Asg_ShowAllAssignments ();
Asg_ShowAllAssignments ();
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1332,18 +1326,18 @@ void Asg_RecFormAssignment (void)
/* Free memory for list of selected groups */ /* Free memory for list of selected groups */
Grp_FreeListCodSelectedGrps (); Grp_FreeListCodSelectedGrps ();
/***** Notify by e-mail about the new assignment *****/
if ((NumUsrsToBeNotifiedByEMail = Ntf_StoreNotifyEventsToAllUsrs (Ntf_EVENT_ASSIGNMENT,NewAsg.AsgCod)))
Asg_UpdateNumUsrsNotifiedByEMailAboutAssignment (NewAsg.AsgCod,NumUsrsToBeNotifiedByEMail);
Ntf_ShowAlertNumUsrsToBeNotifiedByEMail (NumUsrsToBeNotifiedByEMail);
/***** Show assignments again *****/
Asg_SeeAssignments ();
} }
else else
// TODO: The form should be filled with partial data, now is always empty // TODO: The form should be filled with partial data, now is always empty
Asg_RequestCreatOrEditAsg (); Asg_RequestCreatOrEditAsg ();
/***** Notify by e-mail about the new assignment *****/
if ((NumUsrsToBeNotifiedByEMail = Ntf_StoreNotifyEventsToAllUsrs (Ntf_EVENT_ASSIGNMENT,NewAsg.AsgCod)))
Asg_UpdateNumUsrsNotifiedByEMailAboutAssignment (NewAsg.AsgCod,NumUsrsToBeNotifiedByEMail);
Ntf_ShowAlertNumUsrsToBeNotifiedByEMail (NumUsrsToBeNotifiedByEMail);
/***** Show assignments again *****/
Asg_SeeAssignments ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -132,13 +132,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.153 (2016-03-19)" #define Log_PLATFORM_VERSION "SWAD 15.153.1 (2016-03-19)"
#define CSS_FILE "swad15.152.css" #define CSS_FILE "swad15.152.css"
#define JS_FILE "swad15.131.3.js" #define JS_FILE "swad15.131.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 15.153.1: Mar 19, 2016 Fixed layout in edition of assignments. (195980 lines)
Version 15.153: Mar 19, 2016 Icon to add new assignment integrated in frame. Version 15.153: Mar 19, 2016 Icon to add new assignment integrated in frame.
Changes in layout of assignments. (195984 lines) Changes in layout of assignments. (195984 lines)
Version 15.152: Mar 19, 2016 Changes in layout of head. Not finished. (195949 lines) Version 15.152: Mar 19, 2016 Changes in layout of head. Not finished. (195949 lines)