mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-07-14 06:58:09 +00:00
Added account created page
This commit is contained in:
assets
img
pages
accountCreated
js
templates
pages
system/config
@ -1088,6 +1088,13 @@ var ComunicWeb = {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Account created controller
|
||||
*/
|
||||
accountCreated: {
|
||||
//TODO : implement
|
||||
},
|
||||
|
||||
/**
|
||||
* Logout controller
|
||||
*/
|
||||
|
28
assets/js/pages/accountCreated.js
Normal file
28
assets/js/pages/accountCreated.js
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Account created page
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
ComunicWeb.pages.accountCreated = {
|
||||
|
||||
/**
|
||||
* Open the account created page
|
||||
*
|
||||
* @param {Object} additionnalData Additionnal data passed in the method
|
||||
* @param {element} target Where the page will be applied
|
||||
*/
|
||||
open: function(additionnalData, target){
|
||||
|
||||
var data = {
|
||||
|
||||
//Background image URL
|
||||
background_img_url: ComunicWeb.__config.assetsURL + "img/pages/accountCreated/background.jpg"
|
||||
|
||||
};
|
||||
|
||||
//Apply the template
|
||||
ComunicWeb.common.page.getAndShowTemplate(target, data, "pages/accountCreated.tpl", null, true);
|
||||
}
|
||||
|
||||
}
|
@ -156,6 +156,9 @@ ComunicWeb.pages.createAccount = {
|
||||
));
|
||||
return;
|
||||
}
|
||||
|
||||
//Redirect to the account created page
|
||||
openPage("account_created");
|
||||
}
|
||||
));
|
||||
};
|
||||
|
@ -59,6 +59,15 @@ ComunicWeb.pagesList = {
|
||||
disableMenus: false
|
||||
},
|
||||
|
||||
/**
|
||||
* Account created page
|
||||
*/
|
||||
account_created: {
|
||||
pageTitle: "Account created",
|
||||
methodHandler: "ComunicWeb.pages.accountCreated.open",
|
||||
disableMenus: false,
|
||||
},
|
||||
|
||||
/**
|
||||
* Logout page
|
||||
*/
|
||||
|
Reference in New Issue
Block a user