mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Added link to privacy policy on settings page
This commit is contained in:
parent
683a8eb0e6
commit
79da14e0bc
@ -14,6 +14,9 @@ ComunicWeb.pages.settings.sections.privacy = {
|
||||
*/
|
||||
open: function(args, target){
|
||||
|
||||
//Information box
|
||||
this.showInfoBox(target);
|
||||
|
||||
//Export data box
|
||||
this.showExportDataBox(target);
|
||||
|
||||
@ -22,6 +25,48 @@ ComunicWeb.pages.settings.sections.privacy = {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Show privacy policy information box
|
||||
*
|
||||
* @param {HTMLElement} target The target for the box
|
||||
*/
|
||||
showInfoBox: function(target){
|
||||
|
||||
//Create a box
|
||||
var box = createElem2({
|
||||
appendTo: target,
|
||||
type: "div",
|
||||
class: "box box-primary box-export-account-data-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: "About our policy"
|
||||
});
|
||||
|
||||
//Create box body
|
||||
var boxBody = createElem2({
|
||||
appendTo: box,
|
||||
type: "div",
|
||||
class: "box-body"
|
||||
});
|
||||
|
||||
//Box content
|
||||
createElem2({
|
||||
appendTo: boxBody,
|
||||
type: "p",
|
||||
innerHTML: "We give an high importance to our users privacy. Please take some time to check our <a href='"+ComunicWeb.__config.aboutWebsiteURL+"about/privacy' target='_blank'>Privacy Policy</a> and our <a href='"+ComunicWeb.__config.aboutWebsiteURL+"about/terms' target='_blank'>Terms of use</a>."
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Show export personnal data box
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user