From 79da14e0bc98260778387c6cdea98e58135cb026 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 22 May 2018 22:23:16 +0200 Subject: [PATCH] Added link to privacy policy on settings page --- assets/js/pages/settings/sections/privacy.js | 45 ++++++++++++++++++++ 1 file changed, 45 insertions(+) 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 *