diff --git a/assets/img/pages/accountCreated/background.jpg b/assets/img/pages/accountCreated/background.jpg new file mode 100644 index 00000000..f03b08e1 Binary files /dev/null and b/assets/img/pages/accountCreated/background.jpg differ diff --git a/assets/js/common/functionsSchema.js b/assets/js/common/functionsSchema.js index e21f1fe4..2d8554e3 100644 --- a/assets/js/common/functionsSchema.js +++ b/assets/js/common/functionsSchema.js @@ -1088,6 +1088,13 @@ var ComunicWeb = { }, + /** + * Account created controller + */ + accountCreated: { + //TODO : implement + }, + /** * Logout controller */ diff --git a/assets/js/pages/accountCreated.js b/assets/js/pages/accountCreated.js new file mode 100644 index 00000000..977a3f43 --- /dev/null +++ b/assets/js/pages/accountCreated.js @@ -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); + } + +} \ No newline at end of file diff --git a/assets/js/pages/createAccount.js b/assets/js/pages/createAccount.js index f1e29cb3..f19d53e5 100644 --- a/assets/js/pages/createAccount.js +++ b/assets/js/pages/createAccount.js @@ -156,6 +156,9 @@ ComunicWeb.pages.createAccount = { )); return; } + + //Redirect to the account created page + openPage("account_created"); } )); }; diff --git a/assets/js/pagesList.js b/assets/js/pagesList.js index 35a045b3..3da3bb84 100644 --- a/assets/js/pagesList.js +++ b/assets/js/pagesList.js @@ -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 */ diff --git a/assets/templates/pages/accountCreated.tpl b/assets/templates/pages/accountCreated.tpl new file mode 100644 index 00000000..372d31fd --- /dev/null +++ b/assets/templates/pages/accountCreated.tpl @@ -0,0 +1,47 @@ + + + + + + +