From 11dd7e56e4934d643d19243b4922c050a950bdb6 Mon Sep 17 00:00:00 2001 From: enadhilal Date: Tue, 3 Mar 2020 09:54:11 +0300 Subject: [PATCH] fix profile in arabic and translate --- Mohem/src/app/app.component.html | 10 ++++--- Mohem/src/app/app.component.scss | 26 +++++++++++++++++++ .../change-password.component.html | 2 +- Mohem/src/app/home/home.page.html | 6 +++-- Mohem/src/app/home/home.page.scss | 24 +++++++++++------ Mohem/src/app/home/home.page.ts | 2 ++ .../app/notification/home/home.component.ts | 1 + .../edit-profile/edit-profile.component.html | 2 +- Mohem/src/theme/styles.scss | 3 +++ 9 files changed, 61 insertions(+), 15 deletions(-) diff --git a/Mohem/src/app/app.component.html b/Mohem/src/app/app.component.html index 4a975deb..5dcc2432 100644 --- a/Mohem/src/app/app.component.html +++ b/Mohem/src/app/app.component.html @@ -12,15 +12,19 @@ -
+

+
+
+ +
-
+

{{User_name_Emp}}

@@ -62,7 +66,7 @@
-->
- +
diff --git a/Mohem/src/app/app.component.scss b/Mohem/src/app/app.component.scss index e2901722..5b3cf302 100644 --- a/Mohem/src/app/app.component.scss +++ b/Mohem/src/app/app.component.scss @@ -17,6 +17,16 @@ header margin-top: -24px !important; margin-bottom: 11px; } + +.mohemmLogo-ar{ + + max-width: 46% !important; + border: 0 !important; + margin-right: 70px !important; + margin-top: -24px !important; + margin-bottom: 11px; +} + .closeIcon{ height: 10px !important; @@ -84,6 +94,22 @@ padding: 6px 24px; } +.logout-ar{ + background-color: #22C6B3; + border: none; + color: white; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 12px; + margin-right: 95px !important; + margin-top: 15px !important; + margin-bottom: 20px !important; + border-radius: 30px; + height: 26px; + padding: 6px 24px; +} + .menuImg{ width: 105px !important; height: 105px !important; diff --git a/Mohem/src/app/authentication/change-password/change-password.component.html b/Mohem/src/app/authentication/change-password/change-password.component.html index 29eb0d85..939e66ba 100644 --- a/Mohem/src/app/authentication/change-password/change-password.component.html +++ b/Mohem/src/app/authentication/change-password/change-password.component.html @@ -1,7 +1,7 @@ - + {{'changePassword,changePassword' | translate}} diff --git a/Mohem/src/app/home/home.page.html b/Mohem/src/app/home/home.page.html index 54e6fe9d..221901fd 100644 --- a/Mohem/src/app/home/home.page.html +++ b/Mohem/src/app/home/home.page.html @@ -2,8 +2,10 @@ {{'home,dashboard' | translate}} -
- +
+
+
+
diff --git a/Mohem/src/app/home/home.page.scss b/Mohem/src/app/home/home.page.scss index f5f2bc46..c26c6473 100644 --- a/Mohem/src/app/home/home.page.scss +++ b/Mohem/src/app/home/home.page.scss @@ -9,14 +9,22 @@ ion-row { .profile-image-container{ position: relative; z-index: 999; - img { - width: 32px; - float: right; - margin-top: -42px; - border-radius: 20px; - height: 32px; - margin-right: 4px; - } + // img { + // width: 32px; + // float: right; + // // margin-top: -42px; + // border-radius: 20px; + // height: 32px; + // // margin-right: 4px; + // } +} +.profile-image{ + width: 32px; + float: right; + // margin-top: -42px; + border-radius: 20px; + height: 32px; + // margin-right: 4px; } ion-title{ color: white; diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index 6606a201..ac59a2d1 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -140,6 +140,7 @@ export class HomePage implements OnInit { vacationRuleTitle: string; public myTeamIcon: string; public vacationRuleIcon: string; + direction: string; constructor( public ts: TranslatorService, @@ -176,6 +177,7 @@ export class HomePage implements OnInit { } ngOnInit() { + this.direction = TranslatorService.getCurrentLanguageName(); // this.getUserDetails(); // this.getCount(); // this.events.subscribe('getNotCount', badge => { diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts index a30c11d2..2d1f172f 100644 --- a/Mohem/src/app/notification/home/home.component.ts +++ b/Mohem/src/app/notification/home/home.component.ts @@ -411,6 +411,7 @@ export class HomeComponent implements OnInit { if(this.ITGSegment.length != 0 ){ this.setActive(this.ITGSegment[0].code); } + console.log(this.ITGSegment); }); } diff --git a/Mohem/src/app/profile/edit-profile/edit-profile.component.html b/Mohem/src/app/profile/edit-profile/edit-profile.component.html index 9163ba2a..9ce9f3d3 100644 --- a/Mohem/src/app/profile/edit-profile/edit-profile.component.html +++ b/Mohem/src/app/profile/edit-profile/edit-profile.component.html @@ -1,7 +1,7 @@
- +

{{ts.trPK('userProfile','title')}}

diff --git a/Mohem/src/theme/styles.scss b/Mohem/src/theme/styles.scss index f5bd4929..cb74c49d 100644 --- a/Mohem/src/theme/styles.scss +++ b/Mohem/src/theme/styles.scss @@ -42,6 +42,9 @@ ion-label{ .profileDiv{ margin: 5px auto !important; } +.profileDiv-ar{ + margin: 16px auto !important; +} .full-modal{ --height:100%; --width:100%;