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
c241dcc5
You need to sign in or sign up before continuing.
Commit
c241dcc5
authored
Aug 21, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add login form
parent
4e374cb3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
3 deletions
+43
-3
config.ts
Clinics.Frontend/config.ts
+1
-0
app.module.ts
Clinics.Frontend/src/app/app.module.ts
+3
-1
login-form.component.css
...onents/Authentication/login-form/login-form.component.css
+0
-0
login-form.component.html
...nents/Authentication/login-form/login-form.component.html
+1
-0
login-form.component.ts
...ponents/Authentication/login-form/login-form.component.ts
+10
-0
home.component.html
Clinics.Frontend/src/app/components/home/home.component.html
+18
-2
home.component.ts
Clinics.Frontend/src/app/components/home/home.component.ts
+10
-0
No files found.
Clinics.Frontend/config.ts
0 → 100644
View file @
c241dcc5
export
const
apiUrl
=
"https://localhost:7046/api"
;
\ No newline at end of file
Clinics.Frontend/src/app/app.module.ts
View file @
c241dcc5
...
@@ -11,6 +11,7 @@ import { LayoutComponent } from './components/template/layout/layout.component';
...
@@ -11,6 +11,7 @@ import { LayoutComponent } from './components/template/layout/layout.component';
import
{
HeaderComponent
}
from
'./components/template/header/header.component'
;
import
{
HeaderComponent
}
from
'./components/template/header/header.component'
;
import
{
FooterComponent
}
from
'./components/template/footer/footer.component'
;
import
{
FooterComponent
}
from
'./components/template/footer/footer.component'
;
import
{
HomeComponent
}
from
'./components/home/home.component'
;
import
{
HomeComponent
}
from
'./components/home/home.component'
;
import
{
LoginFormComponent
}
from
'./components/Authentication/login-form/login-form.component'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[
...
@@ -34,7 +35,8 @@ import { HomeComponent } from './components/home/home.component';
...
@@ -34,7 +35,8 @@ import { HomeComponent } from './components/home/home.component';
LayoutComponent
,
LayoutComponent
,
HeaderComponent
,
HeaderComponent
,
FooterComponent
,
FooterComponent
,
HomeComponent
HomeComponent
,
LoginFormComponent
],
],
// identifies the root component that Angular should
// identifies the root component that Angular should
...
...
Clinics.Frontend/src/app/components/Authentication/login-form/login-form.component.css
0 → 100644
View file @
c241dcc5
Clinics.Frontend/src/app/components/Authentication/login-form/login-form.component.html
0 → 100644
View file @
c241dcc5
<p>
login-form works!
</p>
Clinics.Frontend/src/app/components/Authentication/login-form/login-form.component.ts
0 → 100644
View file @
c241dcc5
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-login-form'
,
templateUrl
:
'./login-form.component.html'
,
styleUrl
:
'./login-form.component.css'
})
export
class
LoginFormComponent
{
}
Clinics.Frontend/src/app/components/home/home.component.html
View file @
c241dcc5
...
@@ -22,8 +22,9 @@
...
@@ -22,8 +22,9 @@
للاستفادة من خدمات هذا التطبيق، يحب عليك تسجيل الدخول أولاً
للاستفادة من خدمات هذا التطبيق، يحب عليك تسجيل الدخول أولاً
</p>
</p>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<a
href=
"#about"
class=
"more-btn"
><span>
تسجيل الدخول
</span>
<i
<button
(
click
)="
openLoginForm
(
loginModal
)"
class=
"btn more-btn"
>
class=
"bi bi-chevron-right"
></i></a>
<a>
تسجيل الدخول
<i
class=
"bi bi-chevron-right"
></i></a>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -198,4 +199,19 @@
...
@@ -198,4 +199,19 @@
</section>
</section>
<!-- #endregion -->
<!-- #endregion -->
<!-- #region login pop-up -->
<ng-template
#
loginModal
let-modal
>
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
id=
"modal-basic-title"
>
تسجيل الدخول
</h4>
<button
type=
"button"
class=
"btn-close"
data-bs-dismiss=
"modal"
aria-label=
"Close"
(
click
)="
modal
.
dismiss
('
Cross
click
')"
></button>
</div>
<div
class=
"modal-body"
>
<app-login-form></app-login-form>
</div>
<!-- <div class="modal-footer">
</div> -->
</ng-template>
<!-- #endregion -->
</div>
</div>
\ No newline at end of file
Clinics.Frontend/src/app/components/home/home.component.ts
View file @
c241dcc5
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
@
Component
({
selector
:
'app-home'
,
selector
:
'app-home'
,
...
@@ -7,4 +8,13 @@ import { Component } from '@angular/core';
...
@@ -7,4 +8,13 @@ import { Component } from '@angular/core';
})
})
export
class
HomeComponent
{
export
class
HomeComponent
{
//#region CTOR DI
constructor
(
private
modalService
:
NgbModal
)
{}
//#endregion
//#region Login
openLoginForm
(
content
:
any
):
void
{
this
.
modalService
.
open
(
content
);
}
//#endregion
}
}
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