-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootStrapFormsDemo.html
More file actions
244 lines (227 loc) · 8.89 KB
/
Copy pathbootStrapFormsDemo.html
File metadata and controls
244 lines (227 loc) · 8.89 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bootstrap Registration Form</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
</head>
<body>
<main class="col-md-5 mx-auto">
<header class="text-center">
<h1 class="display-4 text-primary text-uppercase">Register</h1>
<h6 class="text-secondary">Provide your details</h6>
</header>
<hr />
<section>
<form action="register-backend" method="GET" class="font-weight-bold">
<!-- Name (firstname and lastname) -->
<div id="name" name="name" class="row form-group">
<div id="firstNameField" name="nameField" class="col-lg-6">
<label for="fname">First name:*</label><br />
<input type="text" id="fname" name="fname" class="form-control" autocomplete="off" autofocus required />
</div>
<div id="lastNameField" name="nameField" class="col-lg-6">
<label for="lname">Last name:</label><br />
<input type="text" id="lname" name="lname" class="form-control" />
</div>
</div>
<!-- Email -->
<div id="emailField" name="emailField" class="form-group">
<label for="email">Email:*</label><br />
<input type="email" id="email" name="email" class="form-control" placeholder="abc@xyz.com" required />
<small id="emailFieldHelp" class="form-text text-muted">Your email is safe with us :)</small
>
</div>
<!-- Password -->
<div id="passwordField" name="passwordField" class="form-group">
<label for="password">Password:*</label><br />
<input
type="password"
id="password"
name="password"
class="form-control"
required
/>
<small id="passwordHelp" class="form-text text-muted"
><ul>
<li>Password should be between 8-16 characters</li>
<li>
Password should contain both lowercase and uppercase alphabets
</li>
<li>Password should contain at least one special symbol</li>
</ul></small
>
</div>
<!-- Date of Birth -->
<div id="dobField" name="dobField" class="form-group">
<label for="dob">Date of Birth:</label><br />
<input type="date" id="dob" name="dob" class="form-control" />
</div>
<!-- Age -->
<div id="ageField" name="ageField" class="form-group">
<label for="age">Age:</label><br />
<input type="number" id="age" name="age" class="form-control" />
</div>
<!-- Gender -->
<div id="genderField" name="genderField" class="form-group">
<label for="gender">Gender:</label><br />
<div class="font-weight-normal" id="gender" name="gender">
<div class="form-check form-check-inline">
<input
type="radio"
class="form-check-input"
name="gender"
id="male"
value="male"
/>
<label for="male" class="form-check-label">Male</label>
</div>
<div class="form-check form-check-inline">
<input
type="radio"
class="form-check-input"
name="gender"
id="female"
value="female"
/>
<label for="female" class="form-check-label">Female</label>
</div>
<div class="form-check form-check-inline">
<input
type="radio"
class="form-check-input"
name="gender"
id="other"
value="other"
/>
<label for="other" class="form-check-label">Other</label>
</div>
<div class="form-check form-check-inline">
<input
type="radio"
class="form-check-input"
name="gender"
id="undisclosed"
value="undisclosed"
/>
<label for="undisclosed" class="form-check-label"
>Rather not say</label
>
</div>
</div>
</div>
<!-- Employment Status -->
<div id="employmentField" name="employmentField" class="form-group">
<label for="employmentStatus">Employment Status:*</label><br />
<div
id="employmentStatus"
name="employmentStatus"
class="font-weight-normal"
>
<div class="form-check form-check-inline">
<input
type="checkbox"
name="student"
id="student"
class="form-check-input"
/>
<label for="student" class="form-check-label">Student</label>
</div>
<div class="form-check form-check-inline">
<input
type="checkbox"
name="unemployed"
id="unemployed"
class="form-check-input"
/>
<label for="unemployed" class="form-check-label"
>Unemployed</label
>
</div>
<div class="form-check form-check-inline">
<input
type="checkbox"
name="part-time"
id="part-time"
class="form-check-input"
/>
<label for="part-time" class="form-check-label"
>Part-time</label
>
</div>
<div class="form-check form-check-inline">
<input
type="checkbox"
name="full-time"
id="full-time"
class="form-check-input"
/>
<label for="full-time" class="form-check-label"
>Full-time</label
>
</div>
</div>
</div>
<!-- Country -->
<div id="countryField" name="countryField" class="form-group">
<label for="country">Country:</label><br />
<select name="country" id="country" class="form-control">
<option value="india" selected>India</option>
<option value="australia">Australia</option>
<option value="england">England</option>
<option value="south-africa">South Africa</option>
</select>
</div>
<!-- Bio -->
<div id="bioField" name="bioField" class="form-group">
<label for="bio">Bio:</label><br />
<textarea
name="bio"
id="bio"
rows="5"
class="form-control"
placeholder="Please introduce yourself"
>
</textarea>
</div>
<!-- Profile Picture Upload -->
<div id="profilePicField" class="form-group">
<label for="profilePicture">Upload a photo:</label><br />
<input
type="file"
name="profilePicture"
id="profilePicture"
class="form-control-file"
accept=".jpg"
/>
</div>
<!-- Submit Button -->
<div id="registrationButton">
<input
type="registration"
value="Register"
class="btn btn-block btn-primary my-4"
/>
</div>
</form>
</section>
</main>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
</body>
</html>