-
Notifications
You must be signed in to change notification settings - Fork 0
/
Temp.txt
146 lines (117 loc) · 7.26 KB
/
Temp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<div class="container">
<form class="card" style="border-radius: 15px;">
<h1 class="text-center">SignUp</h1>
<div class="card-body">
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">Name</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<!-- <input type="text" [(ngModel)]="userDetails.userFName" class="form-control" name="userFName" required="required"> -->
<input type="text" [(ngModel)]="user.name" class="form-control form-control-lg" name="name" required="required">
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">Email ID</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="email" [(ngModel)]="user.emailAddress" class="form-control" name="emailId" required="required">
<!-- <input type="email" [(ngModel)]="userDetails.userEmailId" class="form-control" name="userEmailId" required="required"> -->
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">Contact Number</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="tel" [(ngModel)]="user.contactNo" class="form-control" name="contactNumber" maxlength="10" required="required">
<!-- <input type="tel" [(ngModel)]="userDetails.userMobileNumber" class="form-control" name="userMobileNumber" maxlength="10" required="required"> -->
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">User Type</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="text" [(ngModel)]="user.userType" class="form-control" name="userType" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">DOB</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="date" [(ngModel)]="user.dOB" class="form-control" name="dOB" required="required">
<!-- <input type="date" [ngModel]="userDetails.userCreatedDate | date : 'yyyy-MM-dd' " class="form-control" name="userCreatedDate" required="required"> -->
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">User Id</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="text" [(ngModel)]="user.userId" class="form-control" name="userId" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
</div>
<div class="row align-items-center pt-4 pb-3">
<div class="col-md-3 ps-5">
<h6 class="mb-0">Password</h6>
</div>
<fieldset class="form-group col-md-9 pe-5">
<input type="password" [(ngModel)]="user.password" class="form-control" name="password" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
</div>
<div class="d-flex justify-content-end pt-3">
<button type="button" class="btn btn-light" (onclick)="navLogin()">Login</button>
<button type="reset" class="btn btn-light btn-lg">Reset all</button>
<button type="submit" class="btn btn-warning btn-lg ms-2" (click)="saveUser()">Register</button>
</div>
</div>
</form>
</div>
..................................
<h1>Signup</h1>
<form class="container">
<fieldset class="form-group col-md-9 pe-5">
<label>Name</label>
<!-- <input type="text" [(ngModel)]="userDetails.userFName" class="form-control" name="userFName" required="required"> -->
<input type="text" [(ngModel)]="user.name" class="form-control" name="name" required="required">
</fieldset>
<label>Email Id</label>
<fieldset class="form-group col-md-9 pe-5">
<label></label>
<input type="email" [(ngModel)]="user.emailAddress" class="form-control" name="emailAddress" required="required">
<!-- <input type="email" [(ngModel)]="userDetails.userEmailId" class="form-control" name="userEmailId" required="required"> -->
</fieldset>
<fieldset class="form-group col-md-9 pe-5">
<label>Mobile Number</label>
<input type="tel" [(ngModel)]="user.contactNo" class="form-control" name="contactNo" maxlength="10" required="required">
<!-- <input type="tel" [(ngModel)]="userDetails.userMobileNumber" class="form-control" name="userMobileNumber" maxlength="10" required="required"> -->
</fieldset>
<fieldset class="form-group col-md-9 pe-5">
<label>User Type</label>
<input type="text" [(ngModel)]="user.userType" class="form-control" name="userType" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
<fieldset class="form-group col-md-9 pe-5">
<label>DOB</label>
<input type="date" [ngModel]="user.dOB | date : 'yyyy-MM-dd' " class="form-control" name="dOB" required="required">
<!-- <input type="date" [ngModel]="userDetails.userCreatedDate | date : 'yyyy-MM-dd' " class="form-control" name="userCreatedDate" required="required"> -->
</fieldset>
<fieldset class="form-group col-md-9 pe-5">
<label>UserId</label>
<input type="text" [(ngModel)]="user.userId" class="form-control" name="userId" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
<fieldset class="form-group col-md-9 pe-5">
<label>Password</label>
<input type="password" [(ngModel)]="user.password" class="form-control" name="password" min="1001" required="required">
<!-- <input type="number" [(ngModel)]="userDetails.userId" class="form-control" name="userId" min="1001" required="required"> -->
</fieldset>
<button type="submit" class="btn btn-warning btn-lg ms-2" (click)="saveUser()">Register</button>
<button type="reset" class="btn btn-warning btn-lg ms-2">reset</button>
</form>