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
e29d8df0
Commit
e29d8df0
authored
Aug 23, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add update doctor forms
parent
a212c5b9
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
170 additions
and
5 deletions
+170
-5
app-routing.module.ts
Clinics.Frontend/src/app/app-routing.module.ts
+5
-1
app.module.ts
Clinics.Frontend/src/app/app.module.ts
+6
-2
doctor-user.component.html
...r-users/components/doctor-user/doctor-user.component.html
+4
-2
update-doctor-user.component.css
...nents/update-doctor-user/update-doctor-user.component.css
+26
-0
update-doctor-user.component.html
...ents/update-doctor-user/update-doctor-user.component.html
+89
-0
update-doctor-user.component.ts
...onents/update-doctor-user/update-doctor-user.component.ts
+18
-0
update-doctor-personal-data-form.component.css
...-data-form/update-doctor-personal-data-form.component.css
+0
-0
update-doctor-personal-data-form.component.html
...data-form/update-doctor-personal-data-form.component.html
+1
-0
update-doctor-personal-data-form.component.ts
...l-data-form/update-doctor-personal-data-form.component.ts
+10
-0
update-doctor-user-data-form.component.css
...user-data-form/update-doctor-user-data-form.component.css
+0
-0
update-doctor-user-data-form.component.html
...ser-data-form/update-doctor-user-data-form.component.html
+1
-0
update-doctor-user-data-form.component.ts
...-user-data-form/update-doctor-user-data-form.component.ts
+10
-0
No files found.
Clinics.Frontend/src/app/app-routing.module.ts
View file @
e29d8df0
...
...
@@ -9,6 +9,7 @@ import { TestSignalRComponent } from './notifications/components/test-signal-r/t
import
{
DoctorUsersComponent
}
from
'./usecases/admin/list-doctor-users/components/doctor-users/doctor-users.component'
;
import
{
AdminDashboardComponent
}
from
'./usecases/admin/shared/admin-dashboard/admin-dashboard.component'
;
import
{
CreateDoctorUserFormComponent
}
from
'./usecases/admin/create-doctor-user/components/create-doctor-user-form/create-doctor-user-form.component'
;
import
{
UpdateDoctorUserComponent
}
from
'./usecases/admin/update-doctor-user/components/update-doctor-user/update-doctor-user.component'
;
const
routes
:
Routes
=
[
{
...
...
@@ -46,9 +47,12 @@ const routes: Routes = [
{
path
:
'doctors/create'
,
component
:
CreateDoctorUserFormComponent
},
{
path
:
'doctors/update/:id'
,
component
:
UpdateDoctorUserComponent
}
]
},
// #region Testing SignalR
...
...
Clinics.Frontend/src/app/app.module.ts
View file @
e29d8df0
import
{
NgModule
}
from
'@angular/core'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
NgbModule
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
AppRoutingModule
}
from
'./app-routing.module'
;
import
{
AppComponent
}
from
'./usecases/shared/components/root/app.component'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
...
...
@@ -25,6 +23,9 @@ import { DoctorUserComponent } from './usecases/admin/list-doctor-users/componen
import
{
DoctorUsersService
}
from
'./usecases/admin/services/doctor-users.service'
;
import
{
CreateDoctorUserFormComponent
}
from
'./usecases/admin/create-doctor-user/components/create-doctor-user-form/create-doctor-user-form.component'
;
import
{
AdminDashboardComponent
}
from
'./usecases/admin/shared/admin-dashboard/admin-dashboard.component'
;
import
{
UpdateDoctorUserComponent
}
from
'./usecases/admin/update-doctor-user/components/update-doctor-user/update-doctor-user.component'
;
import
{
UpdateDoctorPersonalDataFormComponent
}
from
'./usecases/admin/update-doctor-user/update-doctor-personal-data/components/update-doctor-personal-data-form/update-doctor-personal-data-form.component'
;
import
{
UpdateDoctorUserDataFormComponent
}
from
'./usecases/admin/update-doctor-user/update-doctor-user-data/components/update-doctor-user-data-form/update-doctor-user-data-form.component'
;
@
NgModule
({
...
...
@@ -67,6 +68,9 @@ import { AdminDashboardComponent } from './usecases/admin/shared/admin-dashboard
DoctorUsersComponent
,
CreateDoctorUserFormComponent
,
AdminDashboardComponent
,
UpdateDoctorUserComponent
,
UpdateDoctorPersonalDataFormComponent
,
UpdateDoctorUserDataFormComponent
,
],
// identifies the root component that Angular should
...
...
Clinics.Frontend/src/app/usecases/admin/list-doctor-users/components/doctor-user/doctor-user.component.html
View file @
e29d8df0
...
...
@@ -22,11 +22,13 @@
<!-- #region buttons-->
<div
class=
"d-grid gap-3 custom-edit-button"
>
<a
[
routerLink
]="['
update
',
doctorUser
.
id
]"
class=
"d-grid gap-3 custom-edit-button"
>
<button
class=
"btn btn-outline-secondary"
>
تعديل
<i
class=
"bi bi-pencil-fill"
></i>
</button>
</div>
</a>
<!-- #endregion -->
...
...
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/components/update-doctor-user/update-doctor-user.component.css
0 → 100644
View file @
e29d8df0
/* #region Accordion*/
.accordion
{
margin-bottom
:
1em
;
width
:
75%
;
margin
:
auto
;
}
.accordion-header
{
border
:
none
;
}
.accordion-header
.accordion-button
{
border
:
none
;
}
.accordion-item
{
border
:
none
;
}
.custom-accordion-header
.btn-primary
{
width
:
100%
;
background-color
:
var
(
--heading-color
);
font-weight
:
700
;
}
/* #endregion */
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/components/update-doctor-user/update-doctor-user.component.html
0 → 100644
View file @
e29d8df0
<div
class=
"custom-child"
dir=
"rtl"
>
<section
class=
"section"
>
<!-- #region Title -->
<div
class=
"container text-center mb-3 custom-title"
>
<h2>
تعديل بيانات الطبيب
</h2>
<h2>
اسم الطبيب الثلاثي
</h2>
</div>
<!-- #endregion -->
<!-- #region Edit user data-->
<div
class=
"container text-center mt-4"
dir=
"rtl"
>
<div
class=
"accordion"
>
<div
class=
"accordion-item"
>
<div
class=
"custom-accordion-header"
>
<button
class=
"btn btn-primary"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#collapseOne"
aria-expanded=
"true"
aria-controls=
"collapseOne"
(
click
)="
isUserDataSelected =
!isUserDataSelected"
>
تعديل معلومات الحساب
<i
*
ngIf=
"!isUserDataSelected"
class=
"fas fa-chevron-down"
></i>
<i
*
ngIf=
"isUserDataSelected"
class=
"fas fa-chevron-up"
></i>
</button>
</div>
<div
id=
"collapseOne"
class=
"accordion-collapse collapse"
>
<div
class=
"accordion-body"
>
<app-update-doctor-user-data-form>
</app-update-doctor-user-data-form>
</div>
</div>
</div>
</div>
</div>
<!-- #endregion -->
<!-- #region Edit personal data-->
<div
class=
"container text-center mt-4"
dir=
"rtl"
>
<div
class=
"accordion"
>
<div
class=
"accordion-item"
>
<div
class=
"custom-accordion-header"
>
<button
class=
"btn btn-primary"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#collapseTwo"
aria-expanded=
"true"
aria-controls=
"collapseTwo"
(
click
)="
isPersonalInfoSelected =
!isPersonalInfoSelected"
>
تعديل المعلومات الشخصية
<i
*
ngIf=
"!isPersonalInfoSelected"
class=
"fas fa-chevron-down"
></i>
<i
*
ngIf=
"isPersonalInfoSelected"
class=
"fas fa-chevron-up"
></i>
</button>
</div>
<div
id=
"collapseTwo"
class=
"accordion-collapse collapse"
>
<div
class=
"accordion-body"
>
<app-update-doctor-personal-data-form>
</app-update-doctor-personal-data-form>
</div>
</div>
</div>
</div>
</div>
<!-- #endregion -->
</section>
</div>
\ No newline at end of file
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/components/update-doctor-user/update-doctor-user.component.ts
0 → 100644
View file @
e29d8df0
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-update-doctor-user'
,
templateUrl
:
'./update-doctor-user.component.html'
,
styleUrl
:
'./update-doctor-user.component.css'
})
export
class
UpdateDoctorUserComponent
{
// #region Variables
isUserDataSelected
:
boolean
=
false
;
isPersonalInfoSelected
:
boolean
=
false
;
// #endregion
}
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-personal-data/components/update-doctor-personal-data-form/update-doctor-personal-data-form.component.css
0 → 100644
View file @
e29d8df0
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-personal-data/components/update-doctor-personal-data-form/update-doctor-personal-data-form.component.html
0 → 100644
View file @
e29d8df0
<p>
update-doctor-personal-data-form works!
</p>
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-personal-data/components/update-doctor-personal-data-form/update-doctor-personal-data-form.component.ts
0 → 100644
View file @
e29d8df0
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-update-doctor-personal-data-form'
,
templateUrl
:
'./update-doctor-personal-data-form.component.html'
,
styleUrl
:
'./update-doctor-personal-data-form.component.css'
})
export
class
UpdateDoctorPersonalDataFormComponent
{
}
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-user-data/components/update-doctor-user-data-form/update-doctor-user-data-form.component.css
0 → 100644
View file @
e29d8df0
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-user-data/components/update-doctor-user-data-form/update-doctor-user-data-form.component.html
0 → 100644
View file @
e29d8df0
<p>
update-doctor-user-data-form works!
</p>
Clinics.Frontend/src/app/usecases/admin/update-doctor-user/update-doctor-user-data/components/update-doctor-user-data-form/update-doctor-user-data-form.component.ts
0 → 100644
View file @
e29d8df0
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-update-doctor-user-data-form'
,
templateUrl
:
'./update-doctor-user-data-form.component.html'
,
styleUrl
:
'./update-doctor-user-data-form.component.css'
})
export
class
UpdateDoctorUserDataFormComponent
{
}
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