Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
ba98801b
Commit
ba98801b
authored
Aug 22, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Fix roles, add remaining buttons to header
parent
77e12b8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
9 deletions
+49
-9
roles.ts
Clinics.Frontend/src/app/classes/Authentication/roles.ts
+1
-1
header.component.html
.../src/app/components/template/header/header.component.html
+48
-8
No files found.
Clinics.Frontend/src/app/classes/Authentication/roles.ts
View file @
ba98801b
export
class
Roles
{
export
class
Roles
{
public
static
readonly
Admin
:
string
=
"admin"
;
public
static
readonly
Admin
:
string
=
"admin"
;
public
static
readonly
Doctor
:
string
=
"
D
octor"
;
public
static
readonly
Doctor
:
string
=
"
d
octor"
;
public
static
readonly
Receptionist
:
string
=
"receptionist"
;
public
static
readonly
Receptionist
:
string
=
"receptionist"
;
}
}
\ No newline at end of file
Clinics.Frontend/src/app/components/template/header/header.component.html
View file @
ba98801b
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<img
src=
"assets/images/logo.png"
alt=
"Logo"
width=
"100em"
height=
"100em"
>
<img
src=
"assets/images/logo.png"
alt=
"Logo"
width=
"100em"
height=
"100em"
>
</div>
</div>
<div
class=
"app-name-container m-auto"
>
<div
class=
"
container
app-name-container m-auto"
>
<h1
class=
"h3 custom-app-name mb-4"
>
المركز الطبي - برنامج الأطباء
</h1>
<h1
class=
"h3 custom-app-name mb-4"
>
المركز الطبي - برنامج الأطباء
</h1>
<h3
dir=
"rtl"
*
ngIf=
"userData!==null"
class=
"h5 text-primary"
>
أهلا
ً
{{userData.fullName}}!
</h3>
<h3
dir=
"rtl"
*
ngIf=
"userData!==null"
class=
"h5 text-primary"
>
أهلا
َ
<span
*
ngIf=
"userData.role===DOCTOR"
>
د.
</span>
{{userData.fullName}}!
</h3>
</div>
</div>
<!-- #region unregistered buttons -->
<!-- #region unregistered buttons -->
...
@@ -63,12 +63,52 @@
...
@@ -63,12 +63,52 @@
(
click
)="
selectButton
('
Home
')"
>
الصفحة الرئيسية
</button></a></li>
(
click
)="
selectButton
('
Home
')"
>
الصفحة الرئيسية
</button></a></li>
</ul>
</ul>
</nav>
<!-- #endregion -->
<!-- #region doctor buttons -->
<nav
class=
"navmenu custom-buttons"
*
ngIf=
"userData?.role === DOCTOR"
>
<ul>
<li
class=
"dropdown"
>
<button
[
ngClass
]="{'
btn
'
:
true
,
'
btn-outline-secondary
'
:
true
,
'
custom-selected-dropdown
'
:
showDropdown
}"
(
click
)="
showDropdown =
!showDropdown"
>
خيارات
<i
class=
"bi bi-chevron-down toggle-dropdown"
></i></button>
<ul
[
ngClass
]="{'
show
'
:
showDropdown
}"
>
<li
(
click
)="
onLogout
();"
><a>
تسجيل الخروج
</a></li>
</ul>
</li>
<li><a
[
routerLink
]="'
home
'"
><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Home
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Home
')}"
(
click
)="
selectButton
('
Home
')"
>
الصفحة الرئيسية
</button></a></li>
</ul>
</nav>
</nav>
<!-- #endregion -->
<!-- #endregion -->
<!-- #region receptionist buttons -->
<nav
class=
"navmenu custom-buttons"
*
ngIf=
"userData?.role === RECEPTIONIST"
>
<ul>
<li
class=
"dropdown"
>
<button
[
ngClass
]="{'
btn
'
:
true
,
'
btn-outline-secondary
'
:
true
,
'
custom-selected-dropdown
'
:
showDropdown
}"
(
click
)="
showDropdown =
!showDropdown"
>
خيارات
<i
class=
"bi bi-chevron-down toggle-dropdown"
></i></button>
<ul
[
ngClass
]="{'
show
'
:
showDropdown
}"
>
<li
(
click
)="
onLogout
();"
><a>
تسجيل الخروج
</a></li>
</ul>
</li>
<li><a
[
routerLink
]="'
home
'"
><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Home
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Home
')}"
(
click
)="
selectButton
('
Home
')"
>
الصفحة الرئيسية
</button></a></li>
</ul>
</nav>
<!-- #endregion -->
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment