mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Added account created page
This commit is contained in:
parent
fb03f0db43
commit
b61b27736c
BIN
assets/img/pages/accountCreated/background.jpg
Normal file
BIN
assets/img/pages/accountCreated/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 KiB |
@ -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
|
||||
*/
|
||||
|
47
assets/templates/pages/accountCreated.tpl
Normal file
47
assets/templates/pages/accountCreated.tpl
Normal 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>
|
@ -320,6 +320,7 @@ class Dev {
|
||||
|
||||
//Create account page
|
||||
"js/pages/createAccount.js",
|
||||
"js/pages/accountCreated.js",
|
||||
|
||||
//Logout page
|
||||
"js/pages/logout.js",
|
||||
|
Loading…
Reference in New Issue
Block a user