Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduhealth
Project
Overview
Details
Activity
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
amal
eduhealth
Commits
ca6ea20d
Commit
ca6ea20d
authored
Jun 20, 2019
by
kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firstbuild
parent
0971fb01
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
16 deletions
+38
-16
app-routing.module.ts
src/app/app-routing.module.ts
+1
-1
details.page.html
src/app/details/details.page.html
+9
-6
details.page.ts
src/app/details/details.page.ts
+20
-3
home.page.ts
src/app/home/home.page.ts
+3
-1
login.page.ts
src/app/login/login.page.ts
+5
-5
No files found.
src/app/app-routing.module.ts
View file @
ca6ea20d
...
...
@@ -24,7 +24,7 @@ const routes: Routes = [
loadChildren
:
'./signup/signup.module#SignupPageModule'
},
{
path
:
'details'
,
path
:
'details
/:id
'
,
loadChildren
:
'./details/details.module#DetailsPageModule'
}
];
...
...
src/app/details/details.page.html
View file @
ca6ea20d
...
...
@@ -12,33 +12,35 @@
</ion-header>
<ion-content>
<div
class=
"detail_wrapper"
>
<div
*
ngIf =
"student_details"
>
<div
class=
"detail_circle_img"
>
<img
src=
"../../assets/imgs/asset_img1.png"
>
</div>
<h4>
Arnold Schelz
</h4>
<h4>
{{student_details.first_name}} {{student_details.last_name}}
</h4>
<div
class=
"detail_grid"
>
<ion-row>
<ion-col
col
>
<p>
Student Number
</p>
<h3>
2455
</h3>
<h3>
{{student_details.student_number}}
</h3>
</ion-col>
<ion-col
col
>
<p>
Graduation Year
</p>
<h3>
2019
</h3>
<h3>
{{student_details.graduation_year}}
</h3>
</ion-col>
<ion-col
col
>
<p>
Grade
</p>
<h3>
1
</h3>
<h3>
{{student_details.grade}}
</h3>
</ion-col>
</ion-row>
<ion-row>
<ion-col
col
>
<p>
DOB
</p>
<h3>
13-05-1996
</h3>
<h3>
{{student_details.dob}}
</h3>
</ion-col>
<ion-col
col
>
<p>
School Name
</p>
<h3>
EU School
</h3>
<h3>
{{student_details.school_name}}
</h3>
</ion-col>
<ion-col
col
>
<p>
Gender
</p>
...
...
@@ -46,6 +48,7 @@
</ion-col>
</ion-row>
</div>
</div>
<div
class=
"detail_listing"
>
<ul>
<li>
...
...
src/app/details/details.page.ts
View file @
ca6ea20d
import
{
Component
,
OnInit
,
ElementRef
,
NgZone
,
ViewChild
}
from
'@angular/core'
;
import
{
trigger
,
transition
,
animate
,
style
}
from
'@angular/animations'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
MyserviceService
}
from
'../myservice.service'
@
Component
({
...
...
@@ -20,12 +21,28 @@ import { Router,ActivatedRoute } from '@angular/router';
]
})
export
class
DetailsPage
implements
OnInit
{
stud1
:
boolean
;
stud2
:
boolean
;
stud3
:
boolean
;
navCtrl
:
any
;
isToggle
=
false
;
constructor
()
{
}
id
:
any
;
student_details
:
any
;
constructor
(
private
route
:
ActivatedRoute
,
private
myservice
:
MyserviceService
)
{
}
ngOnInit
()
{
this
.
id
=
this
.
route
.
snapshot
.
paramMap
.
get
(
'id'
);
console
.
log
(
this
.
id
);
this
.
myservice
.
presentLoader
();
this
.
myservice
.
load_get
(
'student_details/id/'
+
this
.
id
).
subscribe
(
resp
=>
{
console
.
log
(
resp
);
this
.
student_details
=
resp
;
this
.
myservice
.
dismissLoader
();
})
}
...
...
src/app/home/home.page.ts
View file @
ca6ea20d
...
...
@@ -19,7 +19,9 @@ export class HomePage {
details
goToPage
(
path
,
data
){
this
.
router
.
navigate
([
'details'
]);
console
.
log
(
data
)
//this.router.navigateByUrl(path);
this
.
router
.
navigateByUrl
(
'/details/'
+
data
);
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
get_students_data
()
...
...
src/app/login/login.page.ts
View file @
ca6ea20d
...
...
@@ -90,11 +90,11 @@ export class LoginPage implements OnInit {
user_signup
()
{
console
.
log
(
this
.
signupForm
.
value
)
;
// this.myservice.load_post(this.signupForm.value,'login').subscribe(response=>
// {
// console.log(response)
;
// });
var
data
=
null
;
this
.
myservice
.
presentToast
(
'Your account has been created successfully'
);
this
.
router
.
navigateByUrl
(
'login'
,{
queryParams
:
data
});
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
}
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