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
d8b28e98
Commit
d8b28e98
authored
Aug 25, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add send to doctor
parent
acdd317b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
8 deletions
+74
-8
waiting-list-item.component.css
...tionist/waiting-list-item/waiting-list-item.component.css
+20
-0
waiting-list-item.component.html
...ionist/waiting-list-item/waiting-list-item.component.html
+41
-7
waiting-list-item.component.ts
...ptionist/waiting-list-item/waiting-list-item.component.ts
+13
-1
No files found.
Clinics.Frontend/src/app/components/receptionist/waiting-list-item/waiting-list-item.component.css
View file @
d8b28e98
...
...
@@ -62,6 +62,26 @@
color
:
var
(
--accent-color
);
}
.custom-select
select
{
border
:
1px
solid
var
(
--heading-color
);
color
:
var
(
--heading-color
);
margin-bottom
:
0.3em
;
/* For arrow */
appearance
:
none
;
background-image
:
linear-gradient
(
45deg
,
transparent
50%
,
var
(
--heading-color
)
50%
),
linear-gradient
(
135deg
,
var
(
--heading-color
)
50%
,
transparent
50%
);
background-position
:
calc
(
100%
-
20px
)
calc
(
1em
+
2px
),
calc
(
100%
-
15px
)
calc
(
1em
+
2px
),
calc
(
100%
-
2.5em
)
0.5em
;
background-size
:
5px
5px
,
5px
5px
,
1px
1.5em
;
background-repeat
:
no-repeat
;
}
.custom-select
select
:focus
{
box-shadow
:
0
0
0
0.1em
var
(
--heading-color
);
}
.custom-select
option
{
color
:
var
(
--heading-color
);
background-color
:
white
;
}
/* #endregion */
/* #region collection item */
...
...
Clinics.Frontend/src/app/components/receptionist/waiting-list-item/waiting-list-item.component.html
View file @
d8b28e98
...
...
@@ -30,24 +30,20 @@
<div
class=
"d-grid gap-3 custom-edit-button"
>
<a>
<button
class=
"btn btn-outline-secondary"
style=
"width: 100%;"
>
<button
class=
"btn btn-outline-secondary"
style=
"width: 100%;"
(
click
)="
openModal
(
SendToDoctorModal
)"
>
إرسال إلى طبيب
<i
class=
"fas fa-arrow-left"
></i>
</button>
</a>
<div
class=
"custom-delete-button"
>
<button
class=
"btn btn-outline-secondary"
(
click
)="
o
nClickDelete
(
confirmDeleteModal
)"
>
(
click
)="
o
penModal
(
confirmDeleteModal
)"
>
<i
class=
"fa fa-trash-alt"
></i>
</button>
</div>
</div>
<!-- #endregion -->
</div>
...
...
@@ -79,3 +75,41 @@
</div>
</div>
</ng-template>
<ng-template
#
SendToDoctorModal
let-modal
>
<div
class=
"modal-body"
>
<div
class=
"custom-child"
dir=
"rtl"
>
<div
class=
"custom-title mb-3"
>
<h2>
إرسال إلى طبيب
</h2>
</div>
<div
class=
"custom-select"
>
<select
class=
"text-center mb-3 form-control"
[(
ngModel
)]="
selectedDoctorId
"
>
<option
value=
"-1"
disabled
>
يرجى اختيار الطبيب
</option>
<option
*
ngFor=
"let doctor of doctors"
[
ngValue
]="
doctor
.
id
"
>
{{doctor.name}}
</option>
</select>
</div>
<div
class=
"d-grid gap-3 custom-undo-button mb-3"
>
<a>
<button
class=
"btn btn-outline-secondary"
style=
"width: 100%;"
(
click
)="
modal
.
dismiss
()"
>
إلغاء
</button>
</a>
</div>
<a>
<div
class=
"custom-edit-button"
>
<button
class=
"btn btn-outline-secondary"
style=
"width:100%;"
(
click
)="
onSendToDoctor
();
modal
.
dismiss
();"
>
تأكيد
</button>
</div>
</a>
</div>
</div>
</ng-template>
\ No newline at end of file
Clinics.Frontend/src/app/components/receptionist/waiting-list-item/waiting-list-item.component.ts
View file @
d8b28e98
...
...
@@ -29,7 +29,7 @@ export class WaitingListItemComponent {
return
this
.
types
.
FamilyMember
;
}
o
nClickDelete
(
modal
:
any
):
void
{
o
penModal
(
modal
:
any
):
void
{
this
.
modalService
.
open
(
modal
,
{
centered
:
true
,
size
:
'md'
...
...
@@ -48,4 +48,16 @@ export class WaitingListItemComponent {
}
})
}
selectedDoctorId
:
number
=
-
1
;
doctors
:
{
id
:
number
,
name
:
string
}[]
=
[
{
id
:
1
,
name
:
'A'
},
{
id
:
2
,
name
:
'B'
},
{
id
:
3
,
name
:
'C'
},
{
id
:
4
,
name
:
'D'
},
{
id
:
5
,
name
:
'E'
},
]
onSendToDoctor
():
void
{
console
.
log
(
this
.
selectedDoctorId
);
}
}
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