From 32ae858f7f0865a088637b4ad32aa9e4659d028a Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 22 Mar 2018 15:14:29 +0100 Subject: [PATCH] names of tab headers changed --- .../src/main/js/gui/admin/EditUserDialog.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend-js/src/main/js/gui/admin/EditUserDialog.js b/frontend-js/src/main/js/gui/admin/EditUserDialog.js index 4995c26e34..83dc923fb4 100644 --- a/frontend-js/src/main/js/gui/admin/EditUserDialog.js +++ b/frontend-js/src/main/js/gui/admin/EditUserDialog.js @@ -82,7 +82,7 @@ EditUserDialog.prototype.createGeneralTab = function (tabMenuDiv, tabContentDiv) self.addTab({ tabMenuDiv: tabMenuDiv, tabContentDiv: tabContentDiv, - name: "Details", + name: "DETAILS", content: self.createGeneralTabContent() }); @@ -96,7 +96,7 @@ EditUserDialog.prototype.generateTabId = function (tab_name) { if (login === undefined) { login = "new_user_" + (login_counter++); } - return login.replace(".", "_") + tab_name + "_TAB"; + return login.replace(".", "_") + tab_name.replace(" ", "_") + "_TAB"; }; EditUserDialog.prototype.createPrivilegesTab = function (tabMenuDiv, tabContentDiv) { @@ -104,7 +104,7 @@ EditUserDialog.prototype.createPrivilegesTab = function (tabMenuDiv, tabContentD self.addTab({ tabMenuDiv: tabMenuDiv, tabContentDiv: tabContentDiv, - name: "PRIVILEGES", + name: "GLOBAL PRIVILEGES", content: self.createPrivilegesTabContent() }); @@ -195,7 +195,8 @@ EditUserDialog.prototype.createGeneralTabContent = function () { EditUserDialog.prototype.createPrivilegesTabContent = function () { var self = this; var result = Functions.createElement({ - type: "div" + type: "div", + style: "margin-top:10px;" }); result.appendChild(self._createPrivilegesTable()); return result; @@ -224,7 +225,7 @@ EditUserDialog.prototype.createProjectsTab = function (tabMenuDiv, tabContentDiv self.addTab({ tabMenuDiv: tabMenuDiv, tabContentDiv: tabContentDiv, - name: "PROJECTS", + name: "PROJECT PRIVILEGES", content: self.createProjectsTabContent() }); }; @@ -232,7 +233,8 @@ EditUserDialog.prototype.createProjectsTab = function (tabMenuDiv, tabContentDiv EditUserDialog.prototype.createProjectsTabContent = function () { var self = this; var result = Functions.createElement({ - type: "div" + type: "div", + style: "margin-top:10px;" }); result.appendChild(self._createProjectsTable()); return result; -- GitLab