Selaa lähdekoodia

Merge pull request #9179 from miguelvazq/HPCC-16364

HPCC-16364 Add read-only employeeID

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 vuotta sitten
vanhempi
commit
6e8fb7afc7

+ 3 - 0
esp/src/eclwatch/CurrentUserDetailsWidget.js

@@ -102,6 +102,9 @@ define([
                     if (lang.exists("MyAccountResponse.firstName", response)) {
                         context.updateInput("FirstName", null, response.MyAccountResponse.firstName);
                     }
+                    if (lang.exists("MyAccountResponse.employeeID", response)) {
+                        context.updateInput("EmployeeID", null, response.MyAccountResponse.employeeID);
+                    }
                     if (lang.exists("MyAccountResponse.lastName", response)) {
                         context.updateInput("LastName", null, response.MyAccountResponse.lastName);
                     }

+ 4 - 0
esp/src/eclwatch/templates/CurrentUserDetailsWidget.html

@@ -14,6 +14,10 @@
                         <div id="${id}Username"></div>
                     </li>
                     <li>
+                        <label class="Prompt" for="${id}EmployeeID">${i18n.EmployeeID}:</label>
+                        <div id="${id}EmployeeID"></div>
+                    </li>
+                    <li>
                         <label class="Prompt" for="${id}FirstName">${i18n.FirstName}:</label>
                         <div id="${id}FirstName"></div>
                     </li>