Version 22.16.1: Sep 21, 2022 Changes in program layout.

This commit is contained in:
acanas 2022-09-21 10:20:53 +02:00
parent 3070414744
commit 83ce48af4d
3 changed files with 19 additions and 12 deletions

View File

@ -1679,7 +1679,7 @@ a:hover img.CENTER_PHOTO_SHOW
.PRG_COL1
{
box-sizing:border-box;
width:108px;
width:88px;
}
.PRG_TITLE_DESCRIPTION_WIDTH
@ -1772,6 +1772,12 @@ a:hover img.CENTER_PHOTO_SHOW
from {opacity:0;}
to {opacity:1;}
}
.PRG_RSC_COL1
{
box-sizing:border-box;
width:66px;
}
.PRG_RSC_WHITE,
.PRG_RSC_GREY,

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 22.16 (2022-09-21)"
#define Log_PLATFORM_VERSION "SWAD 22.16.1 (2022-09-21)"
#define CSS_FILE "swad22.16.css"
#define JS_FILE "swad21.100.js"
/*
Version 22.16.1: Sep 21, 2022 Changes in program layout. (331462 lines)
Version 22.16: Sep 21, 2022 Changes in program layout. (331455 lines)
Version 22.15: Sep 21, 2022 Links to assignments in program. (331442 lines)
Version 22.14: Sep 21, 2022 An assignment is shown when clicking on its title. (331300 lines)

View File

@ -476,7 +476,7 @@ static void PrgRsc_WriteRowEditResource (unsigned NumRsc,unsigned NumResources,
HTM_TR_Begin (NULL);
/***** Forms to remove/edit this item resource *****/
HTM_TD_Begin ("class=\"PRG_COL1 LT %s\"",The_GetColorRows1 (1));
HTM_TD_Begin ("class=\"PRG_RSC_COL1 LT %s\"",The_GetColorRows1 (1));
PrgRsc_PutFormsToRemEditOneResource (Item,NumRsc,NumResources);
HTM_TD_End ();
@ -531,7 +531,7 @@ static void PrgRsc_WriteRowNewResource (unsigned NumResources,
HTM_TR_Begin (NULL);
/***** Forms to remove/edit this item resource *****/
HTM_TD_Begin ("class=\"PRG_COL1 LT %s\"",The_GetColorRows1 (1));
HTM_TD_Begin ("class=\"PRG_RSC_COL1 LT %s\"",The_GetColorRows1 (1));
PrgRsc_PutFormsToRemEditOneResource (Item,NumResources,NumResources);
HTM_TD_End ();
@ -605,6 +605,14 @@ static void PrgRsc_PutFormsToRemEditOneResource (struct Prg_Item *Item,
else
Ico_PutIconOff ("eye.svg",Ico_GREEN,Txt_Visible);
/***** Put icon to edit the item resource *****/
if (NumRsc < NumResources)
Ico_PutContextualIconToEdit (ActSeeCliPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
Prg_PutParamRscCod,&Item->Resource.Hierarchy.RscCod);
else
Ico_PutContextualIconToEdit (ActSeeCliPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
/***** Icon to move up the item resource *****/
if (NumRsc > 0 && NumRsc < NumResources)
Lay_PutContextualLinkOnlyIcon (ActUp_PrgRsc,PrgRsc_RESOURCE_SECTION_ID,
@ -620,14 +628,6 @@ static void PrgRsc_PutFormsToRemEditOneResource (struct Prg_Item *Item,
"arrow-down.svg",Ico_BLACK);
else
Ico_PutIconOff ("arrow-down.svg",Ico_BLACK,Txt_Movement_not_allowed);
/***** Put icon to edit the item resource *****/
if (NumRsc < NumResources)
Ico_PutContextualIconToEdit (ActSeeCliPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
Prg_PutParamRscCod,&Item->Resource.Hierarchy.RscCod);
else
Ico_PutContextualIconToEdit (ActSeeCliPrgRsc,PrgRsc_RESOURCE_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
break;
case Rol_STD:
case Rol_NET: