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
d9a3f8c0
Commit
d9a3f8c0
authored
Jun 20, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kevin' into 'master'
firstbuild See merge request
!3
parents
0971fb01
ca6ea20d
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 @
d9a3f8c0
...
@@ -24,7 +24,7 @@ const routes: Routes = [
...
@@ -24,7 +24,7 @@ const routes: Routes = [
loadChildren
:
'./signup/signup.module#SignupPageModule'
loadChildren
:
'./signup/signup.module#SignupPageModule'
},
},
{
{
path
:
'details'
,
path
:
'details
/:id
'
,
loadChildren
:
'./details/details.module#DetailsPageModule'
loadChildren
:
'./details/details.module#DetailsPageModule'
}
}
];
];
...
...
src/app/details/details.page.html
View file @
d9a3f8c0
...
@@ -12,33 +12,35 @@
...
@@ -12,33 +12,35 @@
</ion-header>
</ion-header>
<ion-content>
<ion-content>
<div
class=
"detail_wrapper"
>
<div
class=
"detail_wrapper"
>
<div
*
ngIf =
"student_details"
>
<div
class=
"detail_circle_img"
>
<div
class=
"detail_circle_img"
>
<img
src=
"../../assets/imgs/asset_img1.png"
>
<img
src=
"../../assets/imgs/asset_img1.png"
>
</div>
</div>
<h4>
Arnold Schelz
</h4>
<h4>
{{student_details.first_name}} {{student_details.last_name}}
</h4>
<div
class=
"detail_grid"
>
<div
class=
"detail_grid"
>
<ion-row>
<ion-row>
<ion-col
col
>
<ion-col
col
>
<p>
Student Number
</p>
<p>
Student Number
</p>
<h3>
2455
</h3>
<h3>
{{student_details.student_number}}
</h3>
</ion-col>
</ion-col>
<ion-col
col
>
<ion-col
col
>
<p>
Graduation Year
</p>
<p>
Graduation Year
</p>
<h3>
2019
</h3>
<h3>
{{student_details.graduation_year}}
</h3>
</ion-col>
</ion-col>
<ion-col
col
>
<ion-col
col
>
<p>
Grade
</p>
<p>
Grade
</p>
<h3>
1
</h3>
<h3>
{{student_details.grade}}
</h3>
</ion-col>
</ion-col>
</ion-row>
</ion-row>
<ion-row>
<ion-row>
<ion-col
col
>
<ion-col
col
>
<p>
DOB
</p>
<p>
DOB
</p>
<h3>
13-05-1996
</h3>
<h3>
{{student_details.dob}}
</h3>
</ion-col>
</ion-col>
<ion-col
col
>
<ion-col
col
>
<p>
School Name
</p>
<p>
School Name
</p>
<h3>
EU School
</h3>
<h3>
{{student_details.school_name}}
</h3>
</ion-col>
</ion-col>
<ion-col
col
>
<ion-col
col
>
<p>
Gender
</p>
<p>
Gender
</p>
...
@@ -46,6 +48,7 @@
...
@@ -46,6 +48,7 @@
</ion-col>
</ion-col>
</ion-row>
</ion-row>
</div>
</div>
</div>
<div
class=
"detail_listing"
>
<div
class=
"detail_listing"
>
<ul>
<ul>
<li>
<li>
...
...
src/app/details/details.page.ts
View file @
d9a3f8c0
import
{
Component
,
OnInit
,
ElementRef
,
NgZone
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ElementRef
,
NgZone
,
ViewChild
}
from
'@angular/core'
;
import
{
trigger
,
transition
,
animate
,
style
}
from
'@angular/animations'
;
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
({
@
Component
({
...
@@ -20,12 +21,28 @@ import { Router,ActivatedRoute } from '@angular/router';
...
@@ -20,12 +21,28 @@ import { Router,ActivatedRoute } from '@angular/router';
]
]
})
})
export
class
DetailsPage
implements
OnInit
{
export
class
DetailsPage
implements
OnInit
{
stud1
:
boolean
;
stud2
:
boolean
;
stud3
:
boolean
;
navCtrl
:
any
;
navCtrl
:
any
;
isToggle
=
false
;
isToggle
=
false
;
id
:
any
;
constructor
()
{
}
student_details
:
any
;
constructor
(
private
route
:
ActivatedRoute
,
private
myservice
:
MyserviceService
)
{
}
ngOnInit
()
{
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 @
d9a3f8c0
...
@@ -19,7 +19,9 @@ export class HomePage {
...
@@ -19,7 +19,9 @@ export class HomePage {
details
details
goToPage
(
path
,
data
){
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
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
}
get_students_data
()
get_students_data
()
...
...
src/app/login/login.page.ts
View file @
d9a3f8c0
...
@@ -90,11 +90,11 @@ export class LoginPage implements OnInit {
...
@@ -90,11 +90,11 @@ export class LoginPage implements OnInit {
user_signup
()
user_signup
()
{
{
console
.
log
(
this
.
signupForm
.
value
)
;
var
data
=
null
;
// this.myservice.load_post(this.signupForm.value,'login').subscribe(response=>
this
.
myservice
.
presentToast
(
'Your account has been created successfully'
);
// {
this
.
router
.
navigateByUrl
(
'login'
,{
queryParams
:
data
});
// console.log(response)
;
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