ソースを参照

rgstr tchr prstng, search page added

rjsmall90 6 年 前
コミット
c4bde198c8

+ 5
- 5
src/pages/registerTeacher/registerTeacher.html ファイルの表示

@@ -15,19 +15,19 @@
15 15
         <ion-label>
16 16
           First Name
17 17
         </ion-label>
18
-        <ion-input type="text" placeholder=""></ion-input>
18
+        <ion-input type="text" placeholder="" [(ngModel)]="user.firstName" name="firstName"></ion-input>
19 19
       </ion-item>
20 20
       <ion-item id="teacherRegistration-input11">
21 21
         <ion-label>
22 22
           Last Name
23 23
         </ion-label>
24
-        <ion-input type="text" placeholder=""></ion-input>
24
+        <ion-input type="text" placeholder="" [(ngModel)]="user.lastName" name="lastName"></ion-input>
25 25
       </ion-item>
26 26
       <ion-item id="teacherRegistration-input9">
27 27
         <ion-label>
28 28
           Email
29 29
         </ion-label>
30
-        <ion-input type="email" placeholder=""></ion-input>
30
+        <ion-input type="email" placeholder="" [(ngModel)]="user.email" name="email"></ion-input>
31 31
       </ion-item>
32 32
        <ion-item id="teacherRegistration-item-select1">
33 33
         <ion-label>
@@ -56,7 +56,7 @@
56 56
       <ion-label>
57 57
         Password
58 58
       </ion-label>
59
-      <ion-input type="text" placeholder=""></ion-input>
59
+      <ion-input type="text" placeholder="" [(ngModel)]="user.password" name="password"></ion-input>
60 60
     </ion-item>
61 61
     <ion-item id="teacherRegistration-input14">
62 62
       <ion-label>
@@ -64,7 +64,7 @@
64 64
       </ion-label>
65 65
       <ion-input type="text" placeholder=""></ion-input>
66 66
     </ion-item>
67
-    <button id="teacherRegistration-button17" ion-button color="stable" block on-click="goToTeacherProfile()">
67
+    <button id="teacherRegistration-button17" ion-button color="stable" block on-click="register()">
68 68
       Sign up
69 69
     </button>
70 70
   </form>

+ 12
- 2
src/pages/registerTeacher/registerTeacher.ts ファイルの表示

@@ -1,6 +1,7 @@
1 1
 import { Component } from '@angular/core';
2 2
 import { NavController } from 'ionic-angular';
3
-//import { TeacherProfilePage } from '../teacher-profile/teacher-profile';
3
+import { User } from './../../app/component/user';
4
+import { ConnectionProvider } from './../../providers/connection/connection';
4 5
 
5 6
 @Component({
6 7
   selector: 'page-registerTeacher',
@@ -8,8 +9,17 @@ import { NavController } from 'ionic-angular';
8 9
 })
9 10
 export class TeacherRegistrationPage {
10 11
 
11
-  constructor(public navCtrl: NavController) {
12
+  user: User = new User();
13
+
14
+  constructor(public navCtrl: NavController, public conn: ConnectionProvider) {
15
+  }
16
+
17
+   register(){
18
+    this.conn.post('teacher_service/register', this.user).subscribe(
19
+      data => console.log(data)
20
+    );
12 21
   }
22
+
13 23
 //   goToTeacherProfile(params){
14 24
 //     if (!params) params = {};
15 25
 //     this.navCtrl.push(TeacherProfilePage);

+ 49
- 0
src/pages/search/search.html ファイルの表示

@@ -0,0 +1,49 @@
1
+<ion-header>
2
+  <ion-navbar>
3
+    <button ion-button menuToggle>
4
+      <ion-icon name="menu"></ion-icon>
5
+    </button>
6
+    <ion-title>
7
+      Search Home Page
8
+    </ion-title>
9
+  </ion-navbar>
10
+</ion-header>
11
+<ion-content padding style="background:url(assets/img/XevfnYbMSbmzquaF2tvl_final_spitball.jpg) no-repeat center;background-size:cover;" id="page3">
12
+  <form id="searchHomePage-form3">
13
+    <ion-searchbar placeholder="Enter Name or School Here" name="" id="searchHomePage-search1"></ion-searchbar>
14
+  </form>
15
+  <h4 id="searchHomePage-heading2" style="color:#FF0000;"></h4>
16
+  <form id="searchHomePage-form8">
17
+    <ion-item id="searchHomePage-textarea1">
18
+      <ion-label>
19
+        Choose A District In Your Area!
20
+      </ion-label>
21
+      <ion-textarea placeholder=""></ion-textarea>
22
+    </ion-item>
23
+  </form>
24
+  <img src="assets/img/yY6rwyS0DVld9WhuOGwS_map.jpg" style="display:block;width:100%;height:auto;margin-left:auto;margin-right:auto;" />
25
+  <div style="width:100%;height:220px;margin:0px 0px;line-height:250px;background-color:#e8ebef;text-align:center;">
26
+    <i class="icon ion-image" style="font-size:64px;color:#888;vertical-align:middle;"></i>
27
+  </div>
28
+  <ion-list id="searchHomePage-list19">
29
+    <ion-item color="none" id="searchHomePage-list-item10">
30
+      School District #1
31
+    </ion-item>
32
+  </ion-list>
33
+  <ion-list id="searchHomePage-list20">
34
+    <ion-item color="none" id="searchHomePage-list-item11">
35
+      School District #2
36
+    </ion-item>
37
+  </ion-list>
38
+  <ion-list id="searchHomePage-list21">
39
+    <ion-item color="none" id="searchHomePage-list-item15">
40
+      School District #3
41
+    </ion-item>
42
+    <ion-item color="none" id="searchHomePage-list-item16">
43
+      School District #4
44
+    </ion-item>
45
+  </ion-list>
46
+  <button id="searchHomePage-button10" ion-button color="balanced" full large>
47
+    Recent Searches
48
+  </button>
49
+</ion-content>

+ 0
- 0
src/pages/search/search.scss ファイルの表示


+ 13
- 0
src/pages/search/search.ts ファイルの表示

@@ -0,0 +1,13 @@
1
+import { Component } from '@angular/core';
2
+import { NavController } from 'ionic-angular';
3
+
4
+@Component({
5
+  selector: 'page-search-home-page',
6
+  templateUrl: 'search-home-page.html'
7
+})
8
+export class SearchHomePagePage {
9
+
10
+  constructor(public navCtrl: NavController) {
11
+  }
12
+  
13
+}