Version 16.166.1

This commit is contained in:
Antonio Cañas Vargas 2017-03-25 17:49:28 +01:00
parent 85bc4aa690
commit b89dee4fff
5 changed files with 24 additions and 1 deletions

View File

@ -531,6 +531,7 @@ static void Att_PutFormToListStdsParams (void)
Grp_PutParamWhichGrps ();
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
}
/*****************************************************************************/
/************** Put a link (form) to edit one attendance event ***************/
/*****************************************************************************/

View File

@ -259,6 +259,9 @@ void Cal_DrawCalendarCty (void)
void Cal_DrawCalendarIns (void)
{
/***** Link to view and edit holidays *****/
Hld_PutLinkToHolidays ();
Cal_DrawCalendar (ActSeeCalIns,ActChgCalIns1stDay,Cal_PutIconToPrintCalendarIns,false);
}

View File

@ -209,13 +209,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.166 (2017-03-24)"
#define Log_PLATFORM_VERSION "SWAD 16.166.1 (2017-03-24)"
#define CSS_FILE "swad16.166.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.166.1: Mar 25, 2017 Contextual link to holidays in calendar. (217630 lines)
Version 16.166: Mar 24, 2017 Changes in layout related with institutional links.
Fixed bug in swad.sql reported by user "proxa" in GitHub. (217613 lines)
Version 16.165: Mar 24, 2017 Allowed mail domains option is moved from system tab to messages tab. (217591 lines)

View File

@ -71,6 +71,22 @@ static void Hld_PutFormToCreateHoliday (void);
static void Hld_PutHeadHolidays (void);
static void Hld_CreateHoliday (struct Holiday *Hld);
/*****************************************************************************/
/****************** Put a link to view and edit holidays *********************/
/*****************************************************************************/
void Hld_PutLinkToHolidays (void)
{
extern const char *Txt_Holidays;
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
Lay_PutContextualLink (ActSeeHld,NULL,
"date64x64.gif",
Txt_Holidays,Txt_Holidays,
NULL);
fprintf (Gbl.F.Out,"</div>");
}
/*****************************************************************************/
/*************************** List all the holidays ***************************/
/*****************************************************************************/

View File

@ -74,6 +74,8 @@ typedef enum
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Hld_PutLinkToHolidays (void);
void Hld_SeeHolidays (void);
void Hld_EditHolidays (void);
void Hld_GetListHolidays (void);