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
72d0dbfb
Commit
72d0dbfb
authored
Aug 24, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add delete button to waiting list item
parent
bb2f5968
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
6 deletions
+93
-6
waiting-list-item.component.css
...tionist/waiting-list-item/waiting-list-item.component.css
+31
-0
waiting-list-item.component.html
...ionist/waiting-list-item/waiting-list-item.component.html
+46
-6
waiting-list-item.component.ts
...ptionist/waiting-list-item/waiting-list-item.component.ts
+16
-0
No files found.
Clinics.Frontend/src/app/components/receptionist/waiting-list-item/waiting-list-item.component.css
View file @
72d0dbfb
...
...
@@ -31,6 +31,37 @@
margin-right
:
0.5em
;
}
.custom-delete-button
button
{
background-color
:
white
;
border-color
:
red
;
color
:
red
;
}
.custom-delete-button
button
:hover
{
background-color
:
red
;
border-color
:
red
;
color
:
white
;
}
.custom-delete-button
button
i
{
margin
:
auto
;
}
.custom-undo-button
button
{
width
:
100%
;
background-color
:
var
(
--accent-color
);
border
:
var
(
--accent-color
);
color
:
white
;
font-weight
:
900
;
}
.custom-undo-button
button
:hover
{
border
:
1px
solid
;
background-color
:
white
;
border-color
:
var
(
--accent-color
);
color
:
var
(
--accent-color
);
}
/* #endregion */
/* #region collection item */
...
...
Clinics.Frontend/src/app/components/receptionist/waiting-list-item/waiting-list-item.component.html
View file @
72d0dbfb
...
...
@@ -28,14 +28,54 @@
<!-- #region buttons-->
<a
class=
"d-grid gap-3 custom-edit-button"
>
<button
class=
"btn btn-outline-secondary"
>
إرسال إلى طبيب
<i
class=
"fas fa-arrow-left"
></i>
</button>
</a>
<div
class=
"d-grid gap-3 custom-edit-button"
>
<a>
<button
class=
"btn btn-outline-secondary"
style=
"width: 100%;"
>
إرسال إلى طبيب
<i
class=
"fas fa-arrow-left"
></i>
</button>
</a>
<div
class=
"custom-delete-button"
>
<button
class=
"btn btn-outline-secondary"
(
click
)="
onClickDelete
(
confirmDeleteModal
)"
>
<i
class=
"fa fa-trash-alt"
></i>
</button>
</div>
</div>
<!-- #endregion -->
</div>
<ng-template
#
confirmDeleteModal
let-modal
>
<div
class=
"modal-body"
>
<div
class=
"custom-child"
dir=
"rtl"
>
<p
style=
"font-weight: 800;"
>
هل أنت متأكد من رغبتك في حذف هذا المريض من قائمة الانتظار ؟
</p>
<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>
</div>
\ No newline at end of file
<a>
<div
class=
"custom-edit-button"
>
<button
class=
"btn btn-outline-secondary"
style=
"width:100%;"
(
click
)="
modal
.
dismiss
();
onDelete
()"
>
تأكيد
</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 @
72d0dbfb
import
{
Component
}
from
'@angular/core'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
selector
:
'app-waiting-list-item'
,
...
...
@@ -7,4 +8,19 @@ import { Component } from '@angular/core';
})
export
class
WaitingListItemComponent
{
constructor
(
private
modalService
:
NgbModal
)
{}
onClickDelete
(
modal
:
any
):
void
{
this
.
modalService
.
open
(
modal
,
{
centered
:
true
,
size
:
'md'
});
}
onDelete
():
void
{
}
}
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