mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Created privacy settings section
This commit is contained in:
parent
99f86060a4
commit
53edcd8ffc
5
assets/css/pages/settings/sections/privacy.css
Normal file
5
assets/css/pages/settings/sections/privacy.css
Normal file
@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Settings privacy settings section
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
@ -1158,6 +1158,13 @@ var ComunicWeb = {
|
||||
accountImage: {
|
||||
//TODO : implement
|
||||
},
|
||||
|
||||
/**
|
||||
* Privacy section
|
||||
*/
|
||||
privacy: {
|
||||
//TODO : implement
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -91,6 +91,20 @@ ComunicWeb.pages.settings.navigationPane = {
|
||||
sectionSecurityLink.onclick = function(){
|
||||
openPage("settings/account_image");
|
||||
};
|
||||
|
||||
//Privacy settings
|
||||
var sectionSecurity = createElem2({
|
||||
appendTo: elemList,
|
||||
type: "li",
|
||||
});
|
||||
var sectionSecurityLink = createElem2({
|
||||
appendTo: sectionSecurity,
|
||||
type: "a",
|
||||
innerHTML: "<i class='fa fa-user-secret'></i> Privacy"
|
||||
});
|
||||
sectionSecurityLink.addEventListener("click", function(){
|
||||
openPage("settings/privacy");
|
||||
});
|
||||
}
|
||||
|
||||
}
|
51
assets/js/pages/settings/sections/privacy.js
Normal file
51
assets/js/pages/settings/sections/privacy.js
Normal file
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Privacy settings section
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
ComunicWeb.pages.settings.sections.privacy = {
|
||||
|
||||
/**
|
||||
* Open settings section
|
||||
*
|
||||
* @param {object} args Additionnal arguments
|
||||
* @param {HTMLElement} target The target for the page
|
||||
*/
|
||||
open: function(args, target){
|
||||
|
||||
//Create a box
|
||||
var box = createElem2({
|
||||
appendTo: target,
|
||||
type: "div",
|
||||
class: "box box-primary box-privacy-settings"
|
||||
});
|
||||
|
||||
//Add box header
|
||||
var boxHead = createElem2({
|
||||
appendTo: box,
|
||||
type: "div",
|
||||
class: "box-header",
|
||||
});
|
||||
var boxTitle = createElem2({
|
||||
appendTo: boxHead,
|
||||
type: "h3",
|
||||
class: "box-title",
|
||||
innerHTML: "Privacy"
|
||||
});
|
||||
|
||||
//Create box body
|
||||
var boxBody = createElem2({
|
||||
appendTo: box,
|
||||
type: "div",
|
||||
class: "box-body"
|
||||
});
|
||||
|
||||
//Create a form contener
|
||||
var formContener = createElem2({
|
||||
appendTo: boxBody,
|
||||
type: "div"
|
||||
});
|
||||
},
|
||||
|
||||
}
|
@ -37,4 +37,12 @@ ComunicWeb.pages.settings.sectionsList = {
|
||||
title: "Account image",
|
||||
handler: "ComunicWeb.pages.settings.sections.accountImage.open"
|
||||
},
|
||||
|
||||
/**
|
||||
* Privacy settings
|
||||
*/
|
||||
privacy: {
|
||||
title: "Privacy",
|
||||
handler: "ComunicWeb.pages.settings.sections.privacy.open",
|
||||
},
|
||||
}
|
@ -192,6 +192,7 @@ class Dev {
|
||||
"css/pages/settings/sections/security.css",
|
||||
"css/pages/settings/sections/password.css",
|
||||
"css/pages/settings/sections/accountImage.css",
|
||||
"css/pages/settings/sections/privacy.css",
|
||||
|
||||
//Latest post page stylesheet
|
||||
"css/pages/latestPosts/main.css",
|
||||
@ -364,6 +365,7 @@ class Dev {
|
||||
"js/pages/settings/sections/security.js",
|
||||
"js/pages/settings/sections/password.js",
|
||||
"js/pages/settings/sections/accountImage.js",
|
||||
"js/pages/settings/sections/privacy.js",
|
||||
|
||||
//Login page
|
||||
"js/pages/login.js",
|
||||
|
Loading…
Reference in New Issue
Block a user