diff --git a/assets/js/pages/settings/sections/privacy.js b/assets/js/pages/settings/sections/privacy.js index 45b0424a..728563ab 100644 --- a/assets/js/pages/settings/sections/privacy.js +++ b/assets/js/pages/settings/sections/privacy.js @@ -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 Privacy Policy and our Terms of use." + }) + }, + /** * Show export personnal data box *