Version 18.3.3

This commit is contained in:
Antonio Cañas Vargas 2018-10-09 20:40:41 +02:00
parent 07494ea200
commit c5d0b055c3
2 changed files with 12 additions and 15 deletions

View File

@ -477,16 +477,8 @@ static void Acc_ShowFormChgMyAccount (void)
if (Gbl.Usrs.Me.ConfirmEmailJustSent) if (Gbl.Usrs.Me.ConfirmEmailJustSent)
Mai_ShowMsgConfirmEmailHasBeenSent (); Mai_ShowMsgConfirmEmailHasBeenSent ();
/***** Put link to remove my account *****/
if (Acc_CheckIfICanEliminateAccount (Gbl.Usrs.Me.UsrDat.UsrCod))
{
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
Acc_PutLinkToRemoveMyAccount ();
fprintf (Gbl.F.Out,"</div>");
}
/***** Start box and table *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_User_account,NULL, Box_StartBoxTable (NULL,Txt_User_account,Acc_PutLinkToRemoveMyAccount,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE,2); Hlp_PROFILE_Account,Box_NOT_CLOSABLE,2);
/***** Nickname *****/ /***** Nickname *****/
@ -534,17 +526,18 @@ static void Acc_ShowFormChgMyAccount (void)
} }
/*****************************************************************************/ /*****************************************************************************/
/******** Put a link to the action used to request user's password ***********/ /************* Put an icon (form) to request removing my account *************/
/*****************************************************************************/ /*****************************************************************************/
static void Acc_PutLinkToRemoveMyAccount (void) static void Acc_PutLinkToRemoveMyAccount (void)
{ {
extern const char *Txt_Remove_account; extern const char *Txt_Remove_account;
Lay_PutContextualLink (ActReqRemMyAcc,NULL,Acc_PutParamsToRemoveMyAccount, if (Acc_CheckIfICanEliminateAccount (Gbl.Usrs.Me.UsrDat.UsrCod))
"remove-on64x64.png", Lay_PutContextualLink (ActReqRemMyAcc,NULL,Acc_PutParamsToRemoveMyAccount,
Txt_Remove_account,Txt_Remove_account, "remove-on64x64.png",
NULL); Txt_Remove_account,NULL,
NULL);
} }
static void Acc_PutParamsToRemoveMyAccount (void) static void Acc_PutParamsToRemoveMyAccount (void)
@ -974,6 +967,9 @@ void Acc_AskIfRemoveMyAccount (void)
/* End alert */ /* End alert */
Ale_ShowAlertAndButton2 (ActUnk,NULL,NULL,NULL,Btn_NO_BUTTON,NULL); Ale_ShowAlertAndButton2 (ActUnk,NULL,NULL,NULL,Btn_NO_BUTTON,NULL);
/***** Show forms to change my account and my password *****/
Acc_ShowFormChgMyAccountAndPwd ();
} }
static void Acc_AskIfRemoveOtherUsrAccount (void) static void Acc_AskIfRemoveOtherUsrAccount (void)

View File

@ -355,10 +355,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
#define Log_PLATFORM_VERSION "SWAD 18.3.2 (2018-10-09)" #define Log_PLATFORM_VERSION "SWAD 18.3.3 (2018-10-09)"
#define CSS_FILE "swad18.3.css" #define CSS_FILE "swad18.3.css"
#define JS_FILE "swad17.17.1.js" #define JS_FILE "swad17.17.1.js"
/* /*
Version 18.3.3: Oct 09, 2018 Changes in form to remove account. (234932 lines)
Version 18.3.2: Oct 09, 2018 Changes in form to change password. (234935 lines) Version 18.3.2: Oct 09, 2018 Changes in form to change password. (234935 lines)
Version 18.3.1: Oct 09, 2018 Changes in layout of session option. (234904 lines) Version 18.3.1: Oct 09, 2018 Changes in layout of session option. (234904 lines)
Version 18.3: Oct 09, 2018 New icon in breadcrumb to go to user's courses. (234874 lines) Version 18.3: Oct 09, 2018 New icon in breadcrumb to go to user's courses. (234874 lines)