mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-13 20:24:06 +02:00
Version 21.112.1: Jul 22, 2022 Changes in edition of program items.
This commit is contained in:
parent
b6145ec0a7
commit
a1cc7eebfb
|
@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
||||||
|
|
||||||
TODO: Attach pdf files in multimedia.
|
TODO: Attach pdf files in multimedia.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 21.112 (2022-07-21)"
|
#define Log_PLATFORM_VERSION "SWAD 21.112.1 (2022-07-22)"
|
||||||
#define CSS_FILE "swad21.107.1.css"
|
#define CSS_FILE "swad21.107.1.css"
|
||||||
#define JS_FILE "swad21.100.js"
|
#define JS_FILE "swad21.100.js"
|
||||||
/*
|
/*
|
||||||
|
Version 21.112.1: Jul 22, 2022 Changes in edition of program items. (329058 lines)
|
||||||
Version 21.112: Jul 21, 2022 Code refactoring in hide/unhide icons.
|
Version 21.112: Jul 21, 2022 Code refactoring in hide/unhide icons.
|
||||||
Fixed bugs in edition of banners.
|
Fixed bugs in edition of banners.
|
||||||
Fixed bug hidding/unhiding exam sessions.
|
Fixed bug hidding/unhiding exam sessions.
|
||||||
|
|
|
@ -101,6 +101,8 @@ static struct
|
||||||
.Levels = NULL
|
.Levels = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *Prg_ITEM_SECTION_ID = "item_section";
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************************** Private prototypes ****************************/
|
/***************************** Private prototypes ****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -392,7 +394,7 @@ static void Prg_PutIconToCreateNewItem (void)
|
||||||
{
|
{
|
||||||
long ItmCod = -1L;
|
long ItmCod = -1L;
|
||||||
|
|
||||||
Ico_PutContextualIconToAdd (ActFrmNewPrgItm,"item_form",
|
Ico_PutContextualIconToAdd (ActFrmNewPrgItm,Prg_ITEM_SECTION_ID,
|
||||||
Prg_PutParams,&ItmCod);
|
Prg_PutParams,&ItmCod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -405,7 +407,7 @@ static void Prg_PutButtonToCreateNewItem (void)
|
||||||
extern const char *Txt_New_item;
|
extern const char *Txt_New_item;
|
||||||
long ItmCod = -1L;
|
long ItmCod = -1L;
|
||||||
|
|
||||||
Frm_BeginFormAnchor (ActFrmNewPrgItm,"item_form");
|
Frm_BeginFormAnchor (ActFrmNewPrgItm,Prg_ITEM_SECTION_ID);
|
||||||
Prg_PutParams (&ItmCod);
|
Prg_PutParams (&ItmCod);
|
||||||
Btn_PutConfirmButton (Txt_New_item);
|
Btn_PutConfirmButton (Txt_New_item);
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -489,7 +491,7 @@ static void Prg_WriteRowItem (Prg_ListingType_t ListingType,
|
||||||
ColSpan,TitleClass,The_GetColorRows ());
|
ColSpan,TitleClass,The_GetColorRows ());
|
||||||
if (ListingType == Prg_EDIT_ITEM ||
|
if (ListingType == Prg_EDIT_ITEM ||
|
||||||
ListingType == Prg_END_EDIT_ITEM)
|
ListingType == Prg_END_EDIT_ITEM)
|
||||||
HTM_ARTICLE_Begin ("item_form");
|
HTM_ARTICLE_Begin (Prg_ITEM_SECTION_ID);
|
||||||
HTM_Txt (Item->Title);
|
HTM_Txt (Item->Title);
|
||||||
if (ListingType == Prg_EDIT_ITEM ||
|
if (ListingType == Prg_EDIT_ITEM ||
|
||||||
ListingType == Prg_END_EDIT_ITEM)
|
ListingType == Prg_END_EDIT_ITEM)
|
||||||
|
@ -560,15 +562,7 @@ static void Prg_WriteRowItem (Prg_ListingType_t ListingType,
|
||||||
{
|
{
|
||||||
case Prg_EDIT_ITEM:
|
case Prg_EDIT_ITEM:
|
||||||
/* Form to change item title, dates and text */
|
/* Form to change item title, dates and text */
|
||||||
HTM_ARTICLE_Begin ("item_form");
|
Prg_ShowFormToChangeItem (Item->Hierarchy.ItmCod);
|
||||||
Prg_ShowFormToChangeItem (Item->Hierarchy.ItmCod);
|
|
||||||
HTM_ARTICLE_End ();
|
|
||||||
break;
|
|
||||||
case Prg_END_EDIT_ITEM:
|
|
||||||
/* Text */
|
|
||||||
HTM_ARTICLE_Begin ("item_form");
|
|
||||||
Prg_WriteItemText (Item->Hierarchy.ItmCod,LightStyle);
|
|
||||||
HTM_ARTICLE_End ();
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Text */
|
/* Text */
|
||||||
|
@ -653,7 +647,7 @@ static void Prg_WriteRowToCreateItem (long ItmCod,unsigned FormLevel)
|
||||||
HTM_TD_Begin ("colspan=\"%u\" class=\"PRG_MAIN %s\"",
|
HTM_TD_Begin ("colspan=\"%u\" class=\"PRG_MAIN %s\"",
|
||||||
ColSpan,The_GetColorRows ());
|
ColSpan,The_GetColorRows ());
|
||||||
/* Form for item data */
|
/* Form for item data */
|
||||||
HTM_ARTICLE_Begin ("item_form");
|
HTM_ARTICLE_Begin (Prg_ITEM_SECTION_ID);
|
||||||
Prg_ShowFormToCreateItem (ItmCod);
|
Prg_ShowFormToCreateItem (ItmCod);
|
||||||
HTM_ARTICLE_End ();
|
HTM_ARTICLE_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -873,17 +867,17 @@ static void Prg_PutFormsToRemEditOneItem (Prg_ListingType_t ListingType,
|
||||||
switch (ListingType)
|
switch (ListingType)
|
||||||
{
|
{
|
||||||
case Prg_EDIT_ITEM:
|
case Prg_EDIT_ITEM:
|
||||||
Ico_PutContextualIconToView (ActSeePrgItm,"item_form",
|
Ico_PutContextualIconToView (ActSeePrgItm,Prg_ITEM_SECTION_ID,
|
||||||
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Ico_PutContextualIconToEdit (ActFrmChgPrgItm,"item_form",
|
Ico_PutContextualIconToEdit (ActFrmChgPrgItm,Prg_ITEM_SECTION_ID,
|
||||||
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Icon to add a new child item inside this item *****/
|
/***** Icon to add a new child item inside this item *****/
|
||||||
Ico_PutContextualIconToAdd (ActFrmNewPrgItm,"item_form",
|
Ico_PutContextualIconToAdd (ActFrmNewPrgItm,Prg_ITEM_SECTION_ID,
|
||||||
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
Prg_PutParams,&Item->Hierarchy.ItmCod);
|
||||||
|
|
||||||
HTM_BR ();
|
HTM_BR ();
|
||||||
|
|
|
@ -465,12 +465,12 @@ static void PrgRsc_PutFormsToRemEditOneResource (unsigned NumRsc,
|
||||||
Resource->Hidden);
|
Resource->Hidden);
|
||||||
|
|
||||||
/***** Icon to edit program resource *****/
|
/***** Icon to edit program resource *****/
|
||||||
// Ico_PutContextualIconToEdit (ActFrmChgPrgItm,"item_form",
|
// Ico_PutContextualIconToEdit (ActFrmChgPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
|
||||||
// Prg_PutParams,&Item->Hierarchy.ItmCod);
|
// PrgRsc_PutParams,&Resource->Rsc.Cod,);
|
||||||
|
|
||||||
/***** Icon to add a new resource after this resource *****/
|
/***** Icon to add a new resource after this resource *****/
|
||||||
// Ico_PutContextualIconToAdd (ActFrmNewPrgItm,"item_form",
|
// Ico_PutContextualIconToAdd (ActFrmNewPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
|
||||||
// Prg_PutParams,&Item->Hierarchy.ItmCod);
|
// PrgRsc_PutParams,&Resource->Rsc.Cod,);
|
||||||
|
|
||||||
/***** Icon to move up the item *****/
|
/***** Icon to move up the item *****/
|
||||||
if (NumRsc > 0)
|
if (NumRsc > 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user