From 8b2d6cfd1e30349b321d62f46fe2b9b2abe620eb Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Mon, 4 Jan 2021 09:16:17 -0400 Subject: [PATCH] PMCORE-2623 Required fields are not been highlighted in the new user UI --- .../userPersonalInformation/public/index.html | 2 + .../src/components/personalInformation.vue | 424 +++++++++++++----- .../userPersonalInformation/src/main.js | 14 + workflow/engine/methods/users/userMain.php | 5 +- workflow/engine/methods/users/usersInit.php | 13 + workflow/engine/templates/users/userMain.js | 2 +- workflow/engine/templates/users/usersLoad.php | 2 +- 7 files changed, 336 insertions(+), 126 deletions(-) diff --git a/workflow/engine/methods/userPersonalInformation/public/index.html b/workflow/engine/methods/userPersonalInformation/public/index.html index f5eb8dfd0..01740ad0b 100644 --- a/workflow/engine/methods/userPersonalInformation/public/index.html +++ b/workflow/engine/methods/userPersonalInformation/public/index.html @@ -11,6 +11,8 @@ diff --git a/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue b/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue index 07f5489e7..0615862ba 100644 --- a/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue +++ b/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue @@ -8,8 +8,10 @@ - {{$root.translation('ID_IS_REQUIRED')}} + :state="validate.USR_FIRSTNAME.state" + @keyup="validateFirstName" + :disabled="disabled"> + {{validate.USR_FIRSTNAME.message}} @@ -18,18 +20,23 @@ - {{$root.translation('ID_IS_REQUIRED')}} + :state="validate.USR_LASTNAME.state" + @keyup="validateLastName" + :disabled="disabled"> + {{validate.USR_LASTNAME.message}} + :src="urlImage" + :disabled="disabled"> @@ -37,7 +44,8 @@ + autocomplete="off" + :disabled="disabled"/> @@ -45,7 +53,8 @@ + autocomplete="off" + :disabled="disabled"/> @@ -55,7 +64,8 @@ + @keyup="validateUserName" + :disabled="disabled"> @@ -66,20 +76,23 @@ + @change="getStateList" + :disabled="disabled"/> + @change="getLocationList" + :disabled="disabled"/> + :options="locationList" + :disabled="disabled"/> @@ -88,8 +101,10 @@ - {{$root.translation('ID_EMAIL_ENTER_VALID')}} + :state="validate.USR_EMAIL.state" + @keyup="validateEmail" + :disabled="disabled"> + {{validate.USR_EMAIL.message}} @@ -97,7 +112,8 @@ + autocomplete="off" + :disabled="disabled"/> @@ -105,7 +121,8 @@ + autocomplete="off" + :disabled="disabled"/> @@ -113,30 +130,33 @@ + :options="userStatus" + :disabled="disabled"/> - + + placeholder="search" + :disabled="disabled"> + :options="usersList" + :disabled="disabled"> - + :options="availableCalendars" + :disabled="disabled"/> @@ -144,7 +164,8 @@ + :date-format-options="{year:'numeric',month:'numeric',day:'numeric'}" + :disabled="disabled"/> @@ -152,7 +173,8 @@ + :options="timeZoneList" + :disabled="disabled"/> @@ -160,7 +182,8 @@ + :options="languagesList" + :disabled="disabled"/> @@ -169,7 +192,8 @@ + @change="changeRole" + :disabled="disabled"/> @@ -177,7 +201,8 @@ + :options="defaultMainMenuOptionList" + :disabled="disabled"/> @@ -185,18 +210,22 @@ + :options="defaultCasesMenuOptionList" + :disabled="disabled"/> - + + @keyup="validatePassword" + @change="editing=false;" + :disabled="disabled"> @@ -208,12 +237,15 @@ - + + @keyup="validateConfirmationPassword" + @change="editing=false;" + :disabled="disabled"> @@ -232,7 +264,8 @@ + :state="validateExtendedAttribute(userExtendedAttribute)" + :disabled="disabled"> {{$root.translation('ID_IS_REQUIRED')}} @@ -247,28 +280,32 @@ - {{$root.translation('ID_INVALID_VALUE',[$root.translation('ID_COST_BY_HOUR')])}} + :state="validate.USR_COST_BY_HOUR.state" + @keyup="validateCostByHour" + :disabled="disabled"> + {{validate.USR_COST_BY_HOUR.message}} + autocomplete="off" + :disabled="disabled"/> - + + unchecked-value="0" + :disabled="disabled"> {{$root.translation('ID_USER_MUST_CHANGE_PASSWORD_AT_NEXT_LOGON')}} - + + + + + {{$root.translation('ID_EDIT')}} + + + @@ -287,30 +332,10 @@