Added account created page

This commit is contained in:
Pierre 2018-04-11 12:25:50 +02:00
parent fb03f0db43
commit b61b27736c
7 changed files with 95 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

View File

@ -1088,6 +1088,13 @@ var ComunicWeb = {
},
/**
* Account created controller
*/
accountCreated: {
//TODO : implement
},
/**
* Logout controller
*/

View 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);
}
}

View File

@ -156,6 +156,9 @@ ComunicWeb.pages.createAccount = {
));
return;
}
//Redirect to the account created page
openPage("account_created");
}
));
};

View File

@ -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
*/

View File

@ -0,0 +1,47 @@
<!--
Account created template
@author Pierre HUBERT
-->
<!-- Page style updated -->
<style>
.content-wrapper {
background-image: url({background_img_url});
background-position: 10% 50%;
}
.page_account_created {
display: table;
padding-top: 20px;
width: 100%;
}
.message_container {
display: table-cell;
vertical-align: middle;
}
.message {
background-color: #fff9;
max-width: 500px;
margin: auto;
text-align: center;
padding: 20px;
}
</style>
<!-- Page content -->
<div class="page_account_created">
<div class="message_container">
<div class="message">
<h1>Congratulations!</h1>
<br />
<h4>Your account has been successfully created! Login now to use all the features of Comunic !</h4>
<br />
<a target="login" class="btn btn-primary btn-lg">Login</a>
</div>
</div>
</div>

View File

@ -320,6 +320,7 @@ class Dev {
//Create account page
"js/pages/createAccount.js",
"js/pages/accountCreated.js",
//Logout page
"js/pages/logout.js",