From 09df12759acfb91696ec7cd95b3c2ebf276d29d0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 17 Apr 2021 09:00:01 +0200 Subject: [PATCH] Add new fields --- assets/js/pages/userPage/profileInfos.js | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/assets/js/pages/userPage/profileInfos.js b/assets/js/pages/userPage/profileInfos.js index fddb2917..1d4a79ce 100644 --- a/assets/js/pages/userPage/profileInfos.js +++ b/assets/js/pages/userPage/profileInfos.js @@ -201,6 +201,66 @@ ComunicWeb.pages.userPage.profileInfos = { class: "box-body" }); + //Add user email address + if(infos.email_address){ + const emailAddress = createElem2({ + appendTo: boxBody, + type: "strong" + }); + createElem2({ + appendTo: emailAddress, + type: "i", + class: "fa fa-envelope-o margin-r-5" + }); + createElem2({ + appendTo: emailAddress, + type: "span", + innerHTML: tr("Email address") + }); + createElem2({ + appendTo: boxBody, + type: "p", + class: "text-muted", + innerHTML: infos.email_address + }); + + //Add separator + createElem2({ + appendTo: boxBody, + type: "hr", + }); + } + + //Add location + if(infos.location){ + const location = createElem2({ + appendTo: boxBody, + type: "strong" + }); + createElem2({ + appendTo: location, + type: "i", + class: "fa fa-map-marker margin-r-5" + }); + createElem2({ + appendTo: location, + type: "span", + innerHTML: tr("Location") + }); + createElem2({ + appendTo: boxBody, + type: "p", + class: "text-muted", + innerHTML: infos.location + }); + + //Add separator + createElem2({ + appendTo: boxBody, + type: "hr", + }); + } + //Add user website (if any) if(infos.personnalWebsite){