55 Ionic pages and navigation.
66-->
77< ion-header >
8- < ion-navbar >
9- < button ion-button menuToggle >
10- < ion-icon name ="menu "> </ ion-icon >
11- </ button >
12- < ion-title > Register </ ion-title >
13- </ ion-navbar >
8+ < ion-navbar >
9+ < button ion-button menuToggle >
10+ < ion-icon name ="menu "> </ ion-icon >
11+ </ button >
12+ < ion-title > Login </ ion-title >
13+ </ ion-navbar >
1414</ ion-header >
1515
1616< ion-content >
1919 < h1 id ="title "> INTRANSITION</ h1 >
2020 </ div >
2121
22- < ion-grid fixed >
23-
24- < br >
25-
26- < ion-row >
27- < ion-col col-1 > </ ion-col >
28- < ion-col >
29- < h2 text-center > Transitioning from the military to civilian environment is more than just a job change.</ h2 >
30- < br >
31- < h2 id ="lifechange " text-center > It's a life change.</ h2 >
32- </ ion-col >
33- < ion-col col-1 > </ ion-col >
34- </ ion-row >
35-
36- < br >
37-
38- < ion-row >
39- < ion-col col-1 > </ ion-col >
40- < ion-col >
41- < ion-label class ="labels " style ="font-size: 25px " stacked > EMAIL ADDRESS</ ion-label >
42- < ion-input class ="inputs " type ="email "> </ ion-input >
43- < ion-icon class ="icons " name ="person "> </ ion-icon >
44- </ ion-col >
45- < ion-col col-1 > </ ion-col >
46- </ ion-row >
47-
48- < ion-row >
49- < ion-col col-1 > </ ion-col >
50- < ion-col >
51- < ion-label class ="labels " style ="font-size: 25px " stacked > PASSWORD</ ion-label >
52- < ion-input class ="inputs " type ="password "> </ ion-input >
53- < ion-icon class ="icons " name ="lock "> </ ion-icon >
54- </ ion-col >
55- < ion-col col-1 > </ ion-col >
56- </ ion-row >
57-
58- < br >
59- < br >
60-
61- < ion-row >
62- < ion-col col-2 > </ ion-col >
63- < ion-col >
64- < button id ="loginbutton " ion-button block > LOGIN</ button >
65- </ ion-col >
66- < ion-col col-2 > </ ion-col >
67- </ ion-row >
68-
69- < br >
70- < br >
71-
72- < ion-row >
73- < ion-col col-1 > </ ion-col >
74- < ion-col >
75- < h3 text-center > If you don't have an account yet, you can register now.</ h3 >
76- </ ion-col >
77- < ion-col col-1 > </ ion-col >
78- </ ion-row >
79-
80- < ion-row style ="padding-bottom:30px; ">
81- < ion-col col-2 > </ ion-col >
82- < ion-col >
83- < button id ="signupbutton " ion-button block > SIGN UP</ button >
84- </ ion-col >
85- < ion-col col-2 > </ ion-col >
86- </ ion-row >
87-
88- </ ion-grid >
22+ < form [formGroup] ="loginCreds " (ngSubmit) ="login() ">
23+ < ion-grid >
24+
25+ < ion-row >
26+ < ion-col col-1 > </ ion-col >
27+ < ion-col >
28+ < h2 text-center > Transitioning from the military to civilian environment is more than just a job change.</ h2 >
29+ < br >
30+ < h2 id ="lifechange " text-center > It's a life change.</ h2 >
31+ </ ion-col >
32+ < ion-col col-1 > </ ion-col >
33+ </ ion-row >
34+
35+ < ion-row >
36+ < ion-col col-1 > </ ion-col >
37+ < ion-col >
38+ < ion-label class ="labels " style ="font-size: 25px " stacked > EMAIL ADDRESS</ ion-label >
39+ < ion-input formControlName ="email " class ="inputs " id ="email " type ="email "> </ ion-input >
40+ </ ion-col >
41+ < ion-col col-1 > </ ion-col >
42+ </ ion-row >
43+
44+ < ion-row >
45+ < ion-col col-1 > </ ion-col >
46+ < ion-col >
47+ < ion-item no-lines *ngIf ="!loginCreds.controls.email.valid && (loginCreds.controls.email.dirty || submitAttempt) ">
48+ < p class ="invalid-text "> Please enter a valid email</ p >
49+ </ ion-item > < br >
50+ </ ion-col >
51+ < ion-col col-1 > </ ion-col >
52+ </ ion-row >
53+
54+ < ion-row >
55+ < ion-col col-1 > </ ion-col >
56+ < ion-col >
57+ < ion-label class ="labels " style ="font-size: 25px " stacked > PASSWORD</ ion-label >
58+ < ion-input formControlName ="password " class ="inputs " id ="password " type ="password "> </ ion-input >
59+ </ ion-col >
60+ < ion-col col-1 > </ ion-col >
61+ </ ion-row >
62+
63+ < ion-row >
64+ < ion-col col-1 > </ ion-col >
65+ < ion-col >
66+ < ion-item no-lines *ngIf ="!loginCreds.controls.password.valid && (loginCreds.controls.password.dirty || submitAttempt) ">
67+ < p class ="invalid-text "> Please enter a password</ p >
68+ </ ion-item > < br >
69+ </ ion-col >
70+ < ion-col col-1 > </ ion-col >
71+ </ ion-row >
72+
73+ < ion-row >
74+ < ion-col col-2 > </ ion-col >
75+ < ion-col >
76+ < button id ="loginbutton " type ="submit " ion-button block [disabled] ="!loginCreds.valid "> LOGIN</ button >
77+ </ ion-col >
78+ < ion-col col-2 > </ ion-col >
79+ </ ion-row >
80+
81+ < ion-row >
82+ < ion-col col-1 > </ ion-col >
83+ < ion-col >
84+ < h3 text-center > If you don't have an account yet, you can register now.</ h3 >
85+ </ ion-col >
86+ < ion-col col-1 > </ ion-col >
87+ </ ion-row >
88+
89+ < ion-row >
90+ < ion-col col-2 > </ ion-col >
91+ < ion-col >
92+ < button (click) ="toRegisterPage() " id ="signupbutton " ion-button block > SIGN UP</ button >
93+ </ ion-col >
94+ < ion-col col-2 > </ ion-col >
95+ </ ion-row >
96+
97+ </ ion-grid >
98+ </ form >
8999
90100</ ion-content >
0 commit comments