mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Create empty password forgotten page
This commit is contained in:
parent
d01b9f4803
commit
b0c4971838
11
assets/css/pages/passwordForgotten/main.css
Normal file
11
assets/css/pages/passwordForgotten/main.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* Password forgotten page main stylesheet
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
|
|
||||||
|
.box-password-forgotten {
|
||||||
|
max-width: 350px;
|
||||||
|
margin: auto;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
@ -1273,6 +1273,20 @@ var ComunicWeb = {
|
|||||||
//TODO : implement
|
//TODO : implement
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Password forgotten page
|
||||||
|
*/
|
||||||
|
passwordForgotten: {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Main script
|
||||||
|
*/
|
||||||
|
main: {
|
||||||
|
//TODO : implement
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logout controller
|
* Logout controller
|
||||||
*/
|
*/
|
||||||
|
65
assets/js/pages/passwordForgotten/main.js
Normal file
65
assets/js/pages/passwordForgotten/main.js
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Password forgotten page main script file
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
|
|
||||||
|
ComunicWeb.pages.passwordForgotten.main = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open page
|
||||||
|
*
|
||||||
|
* @param {Object} args Additionnal data passed in the method
|
||||||
|
* @param {element} target Where the page will be applied
|
||||||
|
*/
|
||||||
|
open: function(args, target){
|
||||||
|
|
||||||
|
//Create the main form box
|
||||||
|
var box = createElem2({
|
||||||
|
appendTo: target,
|
||||||
|
type: "div",
|
||||||
|
class: "box box-primary box-password-forgotten"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Box head
|
||||||
|
var boxHead = createElem2({
|
||||||
|
appendTo: box,
|
||||||
|
type: "div",
|
||||||
|
class: "box-header"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Add box title
|
||||||
|
createElem2({
|
||||||
|
appendTo: boxHead,
|
||||||
|
type: "h3",
|
||||||
|
class: "box-title",
|
||||||
|
innerHTML: "Password forgotten"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Put elements at the right of the head of the box
|
||||||
|
var rightElems = createElem2({
|
||||||
|
appendTo: boxHead,
|
||||||
|
type: "div",
|
||||||
|
class: "pull-right",
|
||||||
|
});
|
||||||
|
|
||||||
|
//Add cancel button
|
||||||
|
var cancelButton = createElem2({
|
||||||
|
appendTo: rightElems,
|
||||||
|
type: "div",
|
||||||
|
class: "btn btn-danger btn-xs btn-flat",
|
||||||
|
innerHTML: "Cancel"
|
||||||
|
});
|
||||||
|
cancelButton.addEventListener("click", function(ev){
|
||||||
|
openPage("home");
|
||||||
|
});
|
||||||
|
|
||||||
|
//Add box body
|
||||||
|
var boxBody = createElem2({
|
||||||
|
appendTo: box,
|
||||||
|
type: "div",
|
||||||
|
class: "box-body"
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
@ -96,6 +96,15 @@ ComunicWeb.pagesList = {
|
|||||||
disableMenus: true,
|
disableMenus: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Password forgotten page
|
||||||
|
*/
|
||||||
|
forgot_password: {
|
||||||
|
pageTitle: "Password forgotten",
|
||||||
|
methodHandler: "ComunicWeb.pages.passwordForgotten.main.open",
|
||||||
|
disableMenus: false,
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 404 Page not found
|
* 404 Page not found
|
||||||
*/
|
*/
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<!-- Password forgotten -->
|
||||||
|
<!--<a target="forgot_password">Forgot password</a><br />-->
|
||||||
|
|
||||||
<!-- Create an account -->
|
<!-- Create an account -->
|
||||||
<a target="create_account">{create_account}</a>
|
<a target="create_account">{create_account}</a>
|
||||||
|
|
||||||
|
@ -225,6 +225,9 @@ class Dev {
|
|||||||
|
|
||||||
//Create account page
|
//Create account page
|
||||||
"css/pages/createAccount.css",
|
"css/pages/createAccount.css",
|
||||||
|
|
||||||
|
//Password forgotten page
|
||||||
|
"css/pages/passwordForgotten/main.css"
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -408,6 +411,9 @@ class Dev {
|
|||||||
"js/pages/createAccount.js",
|
"js/pages/createAccount.js",
|
||||||
"js/pages/accountCreated.js",
|
"js/pages/accountCreated.js",
|
||||||
|
|
||||||
|
//Password forgotten page
|
||||||
|
"js/pages/passwordForgotten/main.js",
|
||||||
|
|
||||||
//Logout page
|
//Logout page
|
||||||
"js/pages/logout.js",
|
"js/pages/logout.js",
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user