-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap_forms.html
More file actions
336 lines (334 loc) · 12 KB
/
bootstrap_forms.html
File metadata and controls
336 lines (334 loc) · 12 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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Forms</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="page-header">
<h2 class="text-center">Bootstrap Forms</h2>
</div>
<div class="row">
<h2 class="text-center">Bootstrap Vertical Layout Forms </h2>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<form>
<div class="form-group">
<label for="username">Username</label>
<input type="text" name="username" id="username" value="" placeholder="Please enter Username Eg: john_stewart, mary141" class="form-control"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" id="password" value="" placeholder="Please enter Password" class="form-control"/>
</div>
<div class="checkbox">
<label><input type="checkbox">Remember Me?</label>
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>
</div>
</div>
<hr/>
<div class="row">
<h2 class="text-center">Bootstrap Horizontal Layout Forms </h2>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-xs-2" for="username">Username</label>
<div class="col-xs-10">
<input type="text" name="username" id="username" value="" placeholder="Please enter Username Eg: john_stewart, mary141" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-2" for="password">Password</label>
<div class="col-xs-10">
<input type="password" name="password" id="password" value="" placeholder="Please enter Password" class="form-control"/>
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-2 col-xs-10">
<div class="checkbox">
<label><input type="checkbox">Remember Me?</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-2 col-xs-10">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</div>
</form>
</div>
</div>
<hr/>
<div class="row">
<h2 class="text-center">Bootstrap Inline Forms </h2>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<form class="form-inline">
<div class="form-group">
<label class="sr-only" for="username">Username</label>
<input type="text" name="username" id="username" value="" placeholder="Please enter Username Eg: john_stewart, mary141" class="form-control"/>
</div>
<div class="form-group">
<label class="sr-only" for="password">Password</label>
<input type="password" name="password" id="password" value="" placeholder="Please enter Password" class="form-control"/>
</div>
<div class="checkbox">
<label><input type="checkbox">Remember Me?</label>
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>
</div>
</div>
<hr/>
<div class="row">
<h2 class="text-center">Bootstrap Static Form Control </h2>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-xs-2" for="username">Username</label>
<div class="col-xs-10">
<p class="form-control-static">vms20591@gmail.com</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-2" for="password">Password</label>
<div class="col-xs-10">
<input type="password" name="password" id="password" value="" placeholder="Please enter Password" class="form-control"/>
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-2 col-xs-10">
<div class="checkbox">
<label><input type="checkbox">Remember Me?</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-2 col-xs-10">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</div>
</form>
</div>
</div>
<hr/>
<div class="row">
<h2 class="text-center">Bootstrap Input/Select Box Size</h2>
<div class="col-sm-12 col-xs-12 col-md-12 col-lg-12">
<div class="row">
<div class="col-sm-4">
<input type="text" class="form-control input-lg" placeholder="Large Input"/>
</div>
<div class="col-sm-4">
<select class="form-control input-lg">
<option>Large Select</option>
</select>
</div>
<div class="col-sm-4">
<textarea class="form-control input-lg" rows="2" cols="10"></textarea>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-4">
<input type="text" class="form-control" placeholder="Default Input"/>
</div>
<div class="col-sm-4">
<select class="form-control">
<option>Default Select</option>
</select>
</div>
<div class="col-sm-4">
<textarea class="form-control" rows="2" cols="10"></textarea>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-4">
<input type="text" class="form-control input-sm" placeholder="Small Input"/>
</div>
<div class="col-sm-4">
<select class="form-control input-sm">
<option>Small Select</option>
</select>
</div>
<div class="col-sm-4">
<textarea class="form-control input-sm" rows="2" cols="10"></textarea>
</div>
</div>
</div>
</div>
<hr/>
<div class="row">
<h2 class="text-center">Bootstrap Form Controls</h2>
<div class="col-sm-12 col-xs-12 col-md-12 col-lg-12">
<div class="row">
<div class="col-sm-4">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Prepended icon</h4>
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
<input type="text" placeholder="Amount" class="form-control"/>
</div>
</a>
</div>
</div>
<div class="col-sm-4">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Appended icon</h4>
<div class="input-group">
<input type="text" placeholder="Amount" class="form-control"/>
<span class="input-group-addon">.00</span>
</div>
</a>
</div>
</div>
<div class="col-sm-4">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Prepended & Appended icon</h4>
<div class="input-group">
<span class="input-group-addon">$</span></span>
<input type="text" placeholder="Amount" class="form-control"/>
<span class="input-group-addon">.00</span>
</div>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Prepended Button</h4>
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-success" type="button">Action</button>
</span>
<input type="text" placeholder="Amount" class="form-control"/>
</div>
</a>
</div>
</div>
<div class="col-sm-6">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Appended Button</h4>
<div class="input-group">
<input type="text" placeholder="Amount" class="form-control"/>
<span class="input-group-btn">
<button class="btn btn-success" type="button">Action</button>
<button class="btn btn-success" type="button">Cancel</button>
</span>
</div>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Prepended Checkbox</h4>
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox"/>
</span>
<input type="text" placeholder="Check" class="form-control"/>
</div>
</a>
</div>
</div>
<div class="col-sm-6">
<div class="list-group">
<a class="list-group-item">
<h4 class="list-group-item-header">Appended Radio Button</h4>
<div class="input-group">
<input type="text" placeholder="Select" class="form-control"/>
<span class="input-group-addon">
<input type="radio"/>
</span>
</div>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h4>Prepended Dropdown Button</h4>
<div class="input-group">
<div class="input-group-btn">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
Action <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="">Proceed</a></li>
<li class="divider"></li>
<li><a href="">Cancel</a></li>
<li><a href="">Return</a></li>
</ul>
</div>
<input type="text" placeholder="Amount" class="form-control"/>
</div>
</div>
<div class="col-sm-6">
<h4>Appended Dropdown Button</h4>
<div class="input-group">
<input type="text" placeholder="Amount" class="form-control"/>
<div class="input-group-btn">
<button tabindex="-1" class="btn btn-primary">Action</button>
<button tabindex="-1" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="">Proceed</a></li>
<li class="divider"></li>
<li><a href="">Cancel</a></li>
<li><a href="">Return</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h4>Form feeback controls</h4>
<form class="form-horizontal">
<div class="form-group has-success has-feedback">
<label class="control-label col-xs-2">Username</label>
<div class="col-xs-10">
<input type="text" placeholder="Username" class="form-control"/>
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
<span class="help-block">Username is Available</span>
</div>
</div>
<div class="form-group has-warning has-feedback">
<label class="control-label col-xs-2">Password</label>
<div class="col-xs-10">
<input type="password" placeholder="Password" class="form-control"/>
<span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
<span class="help-block">Password is Weak</span>
</div>
</div>
<div class="form-group has-error has-feedback">
<label class="control-label col-xs-2">Email</label>
<div class="col-xs-10">
<input type="text" placeholder="Email" class="form-control"/>
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
<span class="help-block">Email is Invalid</span>
</div>
</div>
</form>
</div>
</div>
<hr/>
</div>
<script type="text/javascript" charset="utf-8" src="jquery-1.11.3.js"></script>
<script type="text/javascript" charset="utf-8" src="bootstrap.min.js"></script>
</body>
</html>