2018-04-12 14:17:41 +00:00
|
|
|
/**
|
|
|
|
* Settings navigation pane
|
|
|
|
*
|
|
|
|
* @author Pierre HUBERT
|
|
|
|
*/
|
|
|
|
|
|
|
|
ComunicWeb.pages.settings.navigationPane = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display the settings navigation pane
|
|
|
|
*
|
|
|
|
* @param {HTMLElement} target The target for the navigation pane
|
|
|
|
*/
|
|
|
|
display: function(target){
|
|
|
|
|
|
|
|
//Create a box
|
|
|
|
var navigationBox = createElem2({
|
|
|
|
appendTo: target,
|
|
|
|
type: "div",
|
|
|
|
class: "box box-solid"
|
|
|
|
});
|
|
|
|
|
|
|
|
//Set box header
|
|
|
|
var boxHeader = createElem2({
|
|
|
|
appendTo: navigationBox,
|
|
|
|
type: "div",
|
|
|
|
class: "box-header with-border",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//Set box title
|
|
|
|
createElem2({
|
|
|
|
appendTo: boxHeader,
|
|
|
|
type: "h3",
|
|
|
|
class: "box-title",
|
|
|
|
innerHTML: "Sections"
|
|
|
|
});
|
|
|
|
|
|
|
|
//Create box body
|
|
|
|
var boxBody = createElem2({
|
|
|
|
appendTo: navigationBox,
|
|
|
|
type: "div",
|
|
|
|
class: "box-body no-padding"
|
|
|
|
});
|
|
|
|
|
|
|
|
//Display the list of sections
|
|
|
|
var elemList = createElem2({
|
|
|
|
appendTo: boxBody,
|
|
|
|
type: "ul",
|
|
|
|
class: "nav nav-pills nav-stacked"
|
|
|
|
});
|
|
|
|
|
|
|
|
//General account information
|
|
|
|
var sectionGeneral = createElem2({
|
|
|
|
appendTo: elemList,
|
|
|
|
type: "li",
|
|
|
|
});
|
|
|
|
var sectionGeneralLink = createElem2({
|
|
|
|
appendTo: sectionGeneral,
|
|
|
|
type: "a",
|
|
|
|
innerHTML: "<i class='fa fa-user'></i> General"
|
|
|
|
});
|
2018-04-15 13:02:32 +00:00
|
|
|
sectionGeneralLink.onclick = function(){
|
|
|
|
openPage("settings/general");
|
|
|
|
};
|
2018-04-18 16:11:45 +00:00
|
|
|
|
|
|
|
//Account security
|
|
|
|
var sectionSecurity = createElem2({
|
|
|
|
appendTo: elemList,
|
|
|
|
type: "li",
|
|
|
|
});
|
|
|
|
var sectionSecurityLink = createElem2({
|
|
|
|
appendTo: sectionSecurity,
|
|
|
|
type: "a",
|
|
|
|
innerHTML: "<i class='fa fa-lock'></i> Security"
|
|
|
|
});
|
|
|
|
sectionSecurityLink.onclick = function(){
|
|
|
|
openPage("settings/security");
|
|
|
|
};
|
2018-04-29 13:13:51 +00:00
|
|
|
|
|
|
|
//Account image
|
|
|
|
var sectionSecurity = createElem2({
|
|
|
|
appendTo: elemList,
|
|
|
|
type: "li",
|
|
|
|
});
|
|
|
|
var sectionSecurityLink = createElem2({
|
|
|
|
appendTo: sectionSecurity,
|
|
|
|
type: "a",
|
|
|
|
innerHTML: "<i class='fa fa-file-image-o'></i> Account image"
|
|
|
|
});
|
|
|
|
sectionSecurityLink.onclick = function(){
|
|
|
|
openPage("settings/account_image");
|
|
|
|
};
|
2018-04-12 14:17:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|