mirror of https://github.com/acanas/swad-core.git
Version 22.85.1: Mar 29, 2023 Code refactoring in links to update sections.
This commit is contained in:
parent
d84a834925
commit
82897e88bd
|
@ -2777,15 +2777,7 @@ static void Att_ListEventsToSelect (struct Att_Events *Events,
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
if (NormalView)
|
if (NormalView)
|
||||||
{
|
Lay_WriteLinkToUpdate (Txt_Update_attendance);
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Update_attendance,
|
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_attendance);
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
if (NormalView)
|
if (NormalView)
|
||||||
|
|
|
@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr
|
||||||
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
|
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 22.85 (2023-03-29)"
|
#define Log_PLATFORM_VERSION "SWAD 22.85.1 (2023-03-29)"
|
||||||
#define CSS_FILE "swad22.78.15.css"
|
#define CSS_FILE "swad22.78.15.css"
|
||||||
#define JS_FILE "swad22.49.js"
|
#define JS_FILE "swad22.49.js"
|
||||||
/*
|
/*
|
||||||
|
Version 22.85.1: Mar 29, 2023 Code refactoring in links to update sections. (338447 lines)
|
||||||
Version 22.85: Mar 29, 2023 New action to remove the resource clipboard in program. (338449 lines)
|
Version 22.85: Mar 29, 2023 New action to remove the resource clipboard in program. (338449 lines)
|
||||||
Version 22.84: Mar 29, 2023 New action to see the resource clipboard in program. (338356 lines)
|
Version 22.84: Mar 29, 2023 New action to see the resource clipboard in program. (338356 lines)
|
||||||
Version 22.83.5: Mar 28, 2023 Fixed bugs in rubrics and exams. (338235 lines)
|
Version 22.83.5: Mar 28, 2023 Fixed bugs in rubrics and exams. (338235 lines)
|
||||||
|
|
|
@ -135,9 +135,8 @@ void Con_ShowConnectedUsrs (void)
|
||||||
|
|
||||||
static void Con_PutIconToUpdateConnected (__attribute__((unused)) void *Args)
|
static void Con_PutIconToUpdateConnected (__attribute__((unused)) void *Args)
|
||||||
{
|
{
|
||||||
Lay_PutContextualLinkOnlyIcon (ActLstCon,NULL,
|
Ico_PutContextualIconToUpdate (ActLstCon,NULL,
|
||||||
Con_PutParScope,NULL,
|
Con_PutParScope,NULL);
|
||||||
"recycle.svg",Ico_BLACK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Con_PutParScope (__attribute__((unused)) void *Args)
|
static void Con_PutParScope (__attribute__((unused)) void *Args)
|
||||||
|
|
|
@ -634,13 +634,7 @@ static void ExaRes_ListExamsToSelect (struct Exa_Exams *Exams)
|
||||||
HTM_TABLE_End ();
|
HTM_TABLE_End ();
|
||||||
|
|
||||||
/***** Put link to refresh *****/
|
/***** Put link to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
Lay_WriteLinkToUpdate (Txt_Update_results);
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Update_results,
|
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -268,9 +268,8 @@ static void Fol_PutIconsWhoToFollow (__attribute__((unused)) void *Args)
|
||||||
|
|
||||||
static void Fol_PutIconToUpdateWhoToFollow (void)
|
static void Fol_PutIconToUpdateWhoToFollow (void)
|
||||||
{
|
{
|
||||||
Lay_PutContextualLinkOnlyIcon (ActSeeSocPrf,NULL,
|
Ico_PutContextualIconToUpdate (ActSeeSocPrf,NULL,
|
||||||
NULL,NULL,
|
NULL,NULL);
|
||||||
"recycle.svg",Ico_BLACK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
10
swad_group.c
10
swad_group.c
|
@ -403,15 +403,7 @@ void Grp_ShowFormToSelectSeveralGroups (void (*FuncPars) (void *Args),void *Args
|
||||||
Grp_FreeListGrpTypesAndGrps ();
|
Grp_FreeListGrpTypesAndGrps ();
|
||||||
|
|
||||||
/***** Submit button *****/
|
/***** Submit button *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
Lay_WriteLinkToUpdate (Txt_Update_users);
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Update_users,
|
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"%s",
|
|
||||||
The_GetSuffix (),
|
|
||||||
Gbl.Action.Act == ActReqMsgUsr ? " onsubmit=\"CopyMessageToHiddenFields();\"" :
|
|
||||||
"");
|
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_users);
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
17
swad_icon.c
17
swad_icon.c
|
@ -256,6 +256,14 @@ void Ico_PutContextualIconToReset (Act_Action_t NextAction,const char *Anchor,
|
||||||
"recycle.svg",Ico_RED);
|
"recycle.svg",Ico_RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Ico_PutContextualIconToUpdate (Act_Action_t NextAction,const char *Anchor,
|
||||||
|
void (*FuncPars) (void *Args),void *Args)
|
||||||
|
{
|
||||||
|
Lay_PutContextualLinkOnlyIcon (NextAction,Anchor,
|
||||||
|
FuncPars,Args,
|
||||||
|
"recycle.svg",Ico_BLACK);
|
||||||
|
}
|
||||||
|
|
||||||
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
|
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
|
||||||
void (*FuncPars) (void *Args),void *Args)
|
void (*FuncPars) (void *Args),void *Args)
|
||||||
{
|
{
|
||||||
|
@ -426,6 +434,15 @@ void Ico_PutIconLink (const char *Icon,Ico_Color_t Color,Act_Action_t NextAction
|
||||||
Ico_GetPreffix (Color),The_GetSuffix ());
|
Ico_GetPreffix (Color),The_GetSuffix ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/******************** Show an icon and a text to update **********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Ico_PutIconTextUpdate (const char *Text)
|
||||||
|
{
|
||||||
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Text);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/******************* Show an icon with a link (with text) ********************/
|
/******************* Show an icon with a link (with text) ********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -70,6 +70,8 @@ void Ico_PutContextualIconToRemove (Act_Action_t NextAction,const char *Anchor,
|
||||||
void (*FuncPars) (void *Args),void *Args);
|
void (*FuncPars) (void *Args),void *Args);
|
||||||
void Ico_PutContextualIconToReset (Act_Action_t NextAction,const char *Anchor,
|
void Ico_PutContextualIconToReset (Act_Action_t NextAction,const char *Anchor,
|
||||||
void (*FuncPars) (void *Args),void *Args);
|
void (*FuncPars) (void *Args),void *Args);
|
||||||
|
void Ico_PutContextualIconToUpdate (Act_Action_t NextAction,const char *Anchor,
|
||||||
|
void (*FuncPars) (void *Args),void *Args);
|
||||||
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
|
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
|
||||||
void (*FuncPars) (void *Args),void *Args);
|
void (*FuncPars) (void *Args),void *Args);
|
||||||
void Ico_PutContextualIconToViewFiles (Act_Action_t NextAction,
|
void Ico_PutContextualIconToViewFiles (Act_Action_t NextAction,
|
||||||
|
@ -108,6 +110,7 @@ void Ico_PutContextualIconToZIP (Act_Action_t NextAction,
|
||||||
void Ico_PutDivIcon (const char *DivClass,
|
void Ico_PutDivIcon (const char *DivClass,
|
||||||
const char *Icon,Ico_Color_t Color,const char *Title);
|
const char *Icon,Ico_Color_t Color,const char *Title);
|
||||||
void Ico_PutIconLink (const char *Icon,Ico_Color_t Color,Act_Action_t NextAction);
|
void Ico_PutIconLink (const char *Icon,Ico_Color_t Color,Act_Action_t NextAction);
|
||||||
|
void Ico_PutIconTextUpdate (const char *Text);
|
||||||
void Ico_PutIconTextLink (const char *Icon,Ico_Color_t Color,const char *Text);
|
void Ico_PutIconTextLink (const char *Icon,Ico_Color_t Color,const char *Text);
|
||||||
void Ico_PutSettingIconLink (const char *Icon,Ico_Color_t Color,const char *Title);
|
void Ico_PutSettingIconLink (const char *Icon,Ico_Color_t Color,const char *Title);
|
||||||
void Ico_PutIconOn (const char *Icon,Ico_Color_t Color,const char *Title);
|
void Ico_PutIconOn (const char *Icon,Ico_Color_t Color,const char *Title);
|
||||||
|
|
|
@ -1698,6 +1698,23 @@ void Lay_WriteIndex (unsigned Index,const char *Class)
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/*************************** Write a link to update **************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Lay_WriteLinkToUpdate (const char *Txt)
|
||||||
|
{
|
||||||
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
|
HTM_BUTTON_Submit_Begin (Txt,
|
||||||
|
"class=\"BT_LINK FORM_IN_%s BOLD\"%s",
|
||||||
|
The_GetSuffix (),
|
||||||
|
Gbl.Action.Act == ActReqMsgUsr ? " onsubmit=\"CopyMessageToHiddenFields();\"" :
|
||||||
|
"");
|
||||||
|
Ico_PutIconTextUpdate (Txt);
|
||||||
|
HTM_BUTTON_End ();
|
||||||
|
HTM_DIV_End ();
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***** Get and show number of users who have chosen a layout of columns ******/
|
/***** Get and show number of users who have chosen a layout of columns ******/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -80,6 +80,7 @@ void Lay_HelpRichEditor (void);
|
||||||
void Lay_BeginHTMLFile (FILE *File,const char *Title);
|
void Lay_BeginHTMLFile (FILE *File,const char *Title);
|
||||||
|
|
||||||
void Lay_WriteIndex (unsigned Index,const char *Class);
|
void Lay_WriteIndex (unsigned Index,const char *Class);
|
||||||
|
void Lay_WriteLinkToUpdate (const char *Txt);
|
||||||
|
|
||||||
//-------------------------------- Figures ------------------------------------
|
//-------------------------------- Figures ------------------------------------
|
||||||
void Lay_GetAndShowNumUsrsPerSideColumns (void);
|
void Lay_GetAndShowNumUsrsPerSideColumns (void);
|
||||||
|
|
|
@ -607,13 +607,7 @@ static void MchRes_ListGamesToSelect (struct Gam_Games *Games)
|
||||||
HTM_TABLE_End ();
|
HTM_TABLE_End ();
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
Lay_WriteLinkToUpdate (Txt_Update_results);
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Update_results,
|
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -1512,13 +1512,7 @@ static void Msg_ShowSntOrRcvMessages (struct Msg_Messages *Messages)
|
||||||
Msg_ShowFormToFilterMsgs (Messages);
|
Msg_ShowFormToFilterMsgs (Messages);
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
Lay_WriteLinkToUpdate (Txt_Update_messages);
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Update_messages,
|
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_messages);
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
||||||
|
|
|
@ -1997,7 +1997,7 @@ static void Pho_PutLinkToCalculateDegreeStats (const struct Pho_DegPhotos *DegPh
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Calculate_average_photo_of_THE_DEGREE_X,
|
HTM_BUTTON_Submit_Begin (Txt_Calculate_average_photo_of_THE_DEGREE_X,
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate_average_photo_of_THE_DEGREE_X);
|
Ico_PutIconTextUpdate (Txt_Calculate_average_photo_of_THE_DEGREE_X);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
/* Selector with all degrees with students */
|
/* Selector with all degrees with students */
|
||||||
|
|
|
@ -779,11 +779,11 @@ static void Prf_PutLinkCalculateFigures (const char *EncryptedUsrCod)
|
||||||
Frm_BeginForm (ActCalFig);
|
Frm_BeginForm (ActCalFig);
|
||||||
Usr_PutParUsrCodEncrypted (EncryptedUsrCod);
|
Usr_PutParUsrCodEncrypted (EncryptedUsrCod);
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put icon to refresh *****/
|
||||||
HTM_BUTTON_Submit_Begin (Txt_Calculate,
|
HTM_BUTTON_Submit_Begin (Txt_Calculate,
|
||||||
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate);
|
Ico_PutIconTextUpdate (Txt_Calculate);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -493,13 +493,12 @@ void TmlPub_PutLinkToViewOldPubs (void)
|
||||||
HTM_DIV_Begin ("id=\"view_old_pubs_container\""
|
HTM_DIV_Begin ("id=\"view_old_pubs_container\""
|
||||||
" class=\"Tml_WIDTH Tml_SEP BG_HIGHLIGHT\"");
|
" class=\"Tml_WIDTH Tml_SEP BG_HIGHLIGHT\"");
|
||||||
|
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_BUTTON_Begin (Txt_See_more,
|
HTM_BUTTON_Begin (Txt_See_more,
|
||||||
"class=\"BT_LINK FORM_IN_%s BOLD\""
|
"class=\"BT_LINK FORM_IN_%s BOLD\""
|
||||||
" onclick=\"refreshOldTimeline();return false;\"",
|
" onclick=\"refreshOldTimeline();return false;\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_See_more);
|
Ico_PutIconTextUpdate (Txt_See_more);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
/***** End container *****/
|
/***** End container *****/
|
||||||
|
|
Loading…
Reference in New Issue