From a68be768448ab3e23361a1a06370edd0c36879a3 Mon Sep 17 00:00:00 2001 From: dineshkumarkannan Date: Thu, 8 Nov 2018 17:02:56 +0530 Subject: [PATCH 1/3] question mater changes : kdk --- .../src/app/template/questions/add/add.component.html | 8 ++++---- ng6-seed/src/app/template/questions/add/add.component.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ng6-seed/src/app/template/questions/add/add.component.html b/ng6-seed/src/app/template/questions/add/add.component.html index daa410b1d..433d85fc7 100644 --- a/ng6-seed/src/app/template/questions/add/add.component.html +++ b/ng6-seed/src/app/template/questions/add/add.component.html @@ -13,14 +13,14 @@ You must Select Category. -
+
@@ -58,13 +58,13 @@
-
+
diff --git a/ng6-seed/src/app/template/questions/add/add.component.ts b/ng6-seed/src/app/template/questions/add/add.component.ts index 3a5968b3b..d0977dcbb 100644 --- a/ng6-seed/src/app/template/questions/add/add.component.ts +++ b/ng6-seed/src/app/template/questions/add/add.component.ts @@ -63,7 +63,7 @@ export class AddComponent implements OnInit { question: [null, Validators.compose([Validators.required])], description: [null, Validators.compose([Validators.required])], fk_question_category: [null, Validators.compose([Validators.required])], - fk_question_group_id: [null, Validators.compose([Validators.required])], + // fk_question_group_id: [null, Validators.compose([Validators.required])], fk_question_answertype: [null, Validators.compose([Validators.required])], answers: this._formBuilder.array([ this.initAnswers(), @@ -82,7 +82,7 @@ export class AddComponent implements OnInit { initAnswers() { return this._formBuilder.group({ answer: ['', Validators.compose([Validators.required])], - fk_question_group_id: [''] + // fk_question_group_id: [''] }); } addLanguage(e) { From 3487cf012acbd04121abf69bfead7130745772b1 Mon Sep 17 00:00:00 2001 From: saravanakumarkandasami Date: Thu, 8 Nov 2018 18:08:39 +0530 Subject: [PATCH 2/3] User profile and Mat Field Width UI --- .../layouts/admin/admin-layout.component.ts | 2 +- .../entity-edit/entity.edit.component.html | 4 +- .../users/register/register.component.html | 111 ++++++------ .../users/register/register.component.scss | 3 + .../user-profile/user-profile-component.html | 169 +++++------------- .../user-profile/user-profile.component.ts | 10 +- 6 files changed, 105 insertions(+), 194 deletions(-) diff --git a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts index 2dc3b1ea5..0d8ac289a 100644 --- a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts +++ b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts @@ -64,7 +64,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy { } let users= { 'userid':this.currentUser.userid, - 'entityid':this.currentUser.fk_entity_id, + 'entityid':this.currentUser.fk_entity_type_id, 'profilepic':this.currentUser.profilepic } this.users.getprofilepic(users).subscribe(res=>{ diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html index 86216b766..a94cc5b09 100644 --- a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html +++ b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html @@ -193,13 +193,13 @@
- + You must Include Entity Full Name.
- + You must Include Entity Short Name. diff --git a/ng6-seed/src/app/settings/users/register/register.component.html b/ng6-seed/src/app/settings/users/register/register.component.html index 9fcaa8124..4564ad88a 100755 --- a/ng6-seed/src/app/settings/users/register/register.component.html +++ b/ng6-seed/src/app/settings/users/register/register.component.html @@ -96,71 +96,66 @@ Role
+ + + -- + + {{types.name}} + + + Enitity Type Required + Enitity Type Required + + + + + -- + + {{ent.full_name}} + + + Lender Name Required. + + + + + -- + + {{ent.full_name}} + + Vendor Name Required. + + + - - -- - - {{types.name}} - - - Enitity Type Required - Enitity Type Required - - - - - -- - - {{ent.full_name}} - - - Lender Name Required. - - - - - -- - - {{ent.full_name}} - - Vendor Name Required. - - - - - - - {{role.role_name}} - - - -
- User Role Required - User Role Required -
- - - -- - - {{pd.team_name}} - - - + + + {{role.role_name}} + + + +
+ User Role Required + User Role Required + + + + -- + + {{pd.team_name}} + + +
- -
+
- - - +
- - - + diff --git a/ng6-seed/src/app/settings/users/register/register.component.scss b/ng6-seed/src/app/settings/users/register/register.component.scss index b05fce9d5..7ad10372b 100755 --- a/ng6-seed/src/app/settings/users/register/register.component.scss +++ b/ng6-seed/src/app/settings/users/register/register.component.scss @@ -8,4 +8,7 @@ .hoverdp:hover mat-icon{ display:block; } +mat-form-field { + width:20%; +} \ No newline at end of file diff --git a/ng6-seed/src/app/settings/users/user-profile/user-profile-component.html b/ng6-seed/src/app/settings/users/user-profile/user-profile-component.html index 2998114c9..4b0fc9fb6 100755 --- a/ng6-seed/src/app/settings/users/user-profile/user-profile-component.html +++ b/ng6-seed/src/app/settings/users/user-profile/user-profile-component.html @@ -1,130 +1,43 @@ - +
+

{{userDetails.user_first_name}} {{userDetails.user_last_name}}

+

{{userDetails.role_name}}

+

{{userDetails.email}}

+

{{userDetails.mobile_no}}

+

{{userDetails.city_name}} ,{{userDetails.state_name}}

+
+
+
+
+ + +
+ +
+ +
+ + + + diff --git a/ng6-seed/src/app/settings/users/user-profile/user-profile.component.ts b/ng6-seed/src/app/settings/users/user-profile/user-profile.component.ts index fb19559e7..4fcf5b1be 100755 --- a/ng6-seed/src/app/settings/users/user-profile/user-profile.component.ts +++ b/ng6-seed/src/app/settings/users/user-profile/user-profile.component.ts @@ -68,7 +68,7 @@ export class UserProfileComponent implements OnInit { getprofilepic(){ let users= { 'userid':this.userDetails.userid, - 'entityid':this.userDetails.fk_entity_id, + 'entityid':this.userDetails.fk_entity_type_id, 'profilepic':this.userDetails.profilepic } this.users.getprofilepic(users).subscribe(res=>{ @@ -85,7 +85,7 @@ export class UserProfileComponent implements OnInit { @Component({ selector: 'app-jazz-dialog', template: ` -
New Password Change.
+
Change Password
@@ -99,15 +99,15 @@ export class UserProfileComponent implements OnInit {
- + Passwords do not math.
- - + + ` }) From f26cb6ee8ebd681400a250a6bc662e2923062596 Mon Sep 17 00:00:00 2001 From: saravanakumarkandasami Date: Thu, 8 Nov 2018 18:20:28 +0530 Subject: [PATCH 3/3] Form field UI --- .../src/app/settings/users/register/register.component.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng6-seed/src/app/settings/users/register/register.component.scss b/ng6-seed/src/app/settings/users/register/register.component.scss index 7ad10372b..34effee20 100755 --- a/ng6-seed/src/app/settings/users/register/register.component.scss +++ b/ng6-seed/src/app/settings/users/register/register.component.scss @@ -9,6 +9,6 @@ display:block; } mat-form-field { - width:20%; + width:23%; } \ No newline at end of file