-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathforms.html
461 lines (449 loc) · 31 KB
/
forms.html
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<!DOCTYPE html>
<html>
<head>
<title>Forms | Bootstrap 3.0 Admin Theme</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-theme.min.css" rel="stylesheet" media="screen">
<!-- Bootstrap Admin Theme -->
<link href="css/bootstrap-admin-theme.css" rel="stylesheet" media="screen">
<!-- Vendors -->
<link href="vendors/bootstrap-datepicker/css/datepicker.css" rel="stylesheet" media="screen">
<link href="css/datepicker.fixes.css" rel="stylesheet" media="screen">
<link href="vendors/uniform/themes/default/css/uniform.default.min.css" rel="stylesheet" media="screen">
<link href="css/uniform.default.fixes.css" rel="stylesheet" media="screen">
<link href="vendors/chosen.min.css" rel="stylesheet" media="screen">
<link href="vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/stylesheets/bootstrap-wysihtml5/core-b3.css" rel="stylesheet" media="screen">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5shiv.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- main navbar -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".main-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Admin Panel</a>
</div>
<div class="collapse navbar-collapse main-navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-hover="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li role="presentation" class="dropdown-header">Dropdown header</li>
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation" class="dropdown-header">Dropdown header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" role="button" class="dropdown-toggle" data-hover="dropdown"> <i class="glyphicon glyphicon-user"></i> Username <i class="caret"></i></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</nav>
<div class="container">
<!-- left, vertical navbar & content -->
<div class="row">
<!-- left, vertical navbar -->
<div class="col-md-2 bootstrap-admin-col-left">
<ul class="nav navbar-collapse collapse bootstrap-admin-navbar-side">
<li>
<a href="index.html"><i class="glyphicon glyphicon-chevron-right"></i> Dashboard</a>
</li>
<li class="disabled">
<a href="#"><i class="glyphicon glyphicon-chevron-right"></i> Calendar</a><!-- calendar.html -->
</li>
<li class="disabled">
<a href="#"><i class="glyphicon glyphicon-chevron-right"></i> Statistics (Charts)</a><!-- stats.html -->
</li>
<li class="active">
<a href="forms.html"><i class="glyphicon glyphicon-chevron-right"></i> Forms</a>
</li>
<li>
<a href="tables.html"><i class="glyphicon glyphicon-chevron-right"></i> Tables</a>
</li>
<li>
<a href="buttons-and-icons.html"><i class="glyphicon glyphicon-chevron-right"></i> Buttons & Icons</a>
</li>
<li>
<a href="wysiwyg-editors.html"><i class="glyphicon glyphicon-chevron-right"></i> WYSIWYG Editors</a>
</li>
<li>
<a href="ui-and-interface.html"><i class="glyphicon glyphicon-chevron-right"></i> UI & Interface</a>
</li>
<li>
<a href="#"><span class="badge pull-right">731</span> Orders</a>
</li>
<li>
<a href="#"><span class="badge pull-right">812</span> Invoices</a>
</li>
<li>
<a href="#"><span class="badge pull-right">27</span> Clients</a>
</li>
<li>
<a href="#"><span class="badge pull-right">1,234</span> Users</a>
</li>
<li>
<a href="#"><span class="badge pull-right">2,221</span> Messages</a>
</li>
<li>
<a href="#"><span class="badge pull-right">11</span> Reports</a>
</li>
<li>
<a href="#"><span class="badge pull-right">83</span> Errors</a>
</li>
<li>
<a href="#"><span class="badge pull-right">4,231</span> Logs</a>
</li>
</ul>
</div>
<!-- content -->
<div class="col-md-10">
<div class="row">
<div class="panel panel-default bootstrap-admin-no-table-panel">
<div class="panel-heading">
<div class="text-muted bootstrap-admin-box-title">Form Example</div>
</div>
<div class="bootstrap-admin-no-table-panel-content bootstrap-admin-panel-content collapse in">
<form class="form-horizontal">
<fieldset>
<legend>Form Horizontal</legend>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput">Focused input</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput" type="text" value="This is focused...">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Uneditable input</label>
<div class="col-lg-10">
<span class="form-control">Some value here</span>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="disabledInput">Disabled input</label>
<div class="col-lg-10">
<input class="form-control disabled" id="disabledInput" type="text" placeholder="Disabled input here..." disabled="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="optionsCheckbox2">Disabled checkbox</label>
<div class="col-lg-10">
<label>
<input type="checkbox" id="optionsCheckbox2" value="option1" disabled="">
This is a disabled checkbox
</label>
</div>
</div>
<div class="form-group has-warning">
<label class="col-lg-2 control-label" for="inputError">Input with warning</label>
<div class="col-lg-10">
<input type="text" id="inputWarning" class="form-control">
<span class="help-block">Something may have gone wrong</span>
</div>
</div>
<div class="form-group has-error">
<label class="col-lg-2 control-label" for="inputError">Input with error</label>
<div class="col-lg-10">
<input type="text" id="inputError" class="form-control">
<span class="help-block">Please correct the error</span>
</div>
</div>
<div class="form-group has-success">
<label class="col-lg-2 control-label" for="inputError">Input with success</label>
<div class="col-lg-10">
<input type="text" id="inputSuccess" class="form-control">
<span class="help-block">Woohoo!</span>
</div>
</div>
<div class="form-group has-success">
<label class="col-lg-2 control-label" for="selectError">Select with success</label>
<div class="col-lg-10">
<select id="selectError" class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<span class="help-block">Woohoo!</span>
</div>
</div>
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="reset" class="btn btn-default">Cancel</button>
</fieldset>
</form>
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default bootstrap-admin-no-table-panel">
<div class="panel-heading">
<div class="text-muted bootstrap-admin-box-title">Form Example</div>
</div>
<div class="bootstrap-admin-no-table-panel-content bootstrap-admin-panel-content collapse in">
<form class="form-horizontal">
<fieldset>
<legend>Form Components</legend>
<div class="form-group">
<label class="col-lg-2 control-label" for="typeahead">Text input </label>
<div class="col-lg-10">
<input type="text" class="form-control col-md-6" id="typeahead" autocomplete="off" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
<p class="help-block">Start typing to activate auto complete!</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="date01">Date input</label>
<div class="col-lg-10">
<input type="text" class="form-control datepicker" id="date01" value="02/16/12">
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="optionsCheckbox">Checkbox</label>
<div class="col-lg-10">
<label class="uniform">
<input class="uniform_on" type="checkbox" id="optionsCheckbox" value="option1">
Option one is this and that—be sure to include why it's great
</label>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="select01">Select list</label>
<div class="col-lg-10">
<select id="select01" class="chzn-select" style="width: 150px">
<option>something</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="fileInput">File input</label>
<div class="col-lg-10">
<input class="form-control uniform_on" id="fileInput" type="file">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="textarea-wysihtml5">Textarea WYSIWYG</label>
<div class="col-lg-10">
<textarea id="textarea-wysihtml5" class="form-control textarea-wysihtml5" placeholder="Enter text..." style="width: 100%; height: 200px"></textarea>
</div>
</div>
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="reset" class="btn btn-default">Cancel</button>
</fieldset>
</form>
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default bootstrap-admin-no-table-panel">
<div class="panel-heading">
<div class="text-muted bootstrap-admin-box-title">Form Wizard</div>
</div>
<div class="bootstrap-admin-no-table-panel-content bootstrap-admin-panel-content collapse in">
<div id="rootwizard">
<div class="navbar">
<div class="container">
<ul>
<li><a href="#tab1" data-toggle="tab">Step 1</a></li>
<li><a href="#tab2" data-toggle="tab">Step 2</a></li>
<li><a href="#tab3" data-toggle="tab">Step 3</a></li>
</ul>
</div>
</div>
<div id="bar" class="progress progress-striped active">
<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="tab-content">
<div class="tab-pane" id="tab1">
<form class="form-horizontal">
<fieldset>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput1">Name</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput1" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput2">Email</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput2" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput3">Phone</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput3" type="text" value="">
</div>
</div>
</fieldset>
</form>
</div>
<div class="tab-pane" id="tab2">
<form class="form-horizontal">
<fieldset>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput4">Address</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput4" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput5">City</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput5" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput6">State</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput6" type="text" value="">
</div>
</div>
</fieldset>
</form>
</div>
<div class="tab-pane" id="tab3">
<form class="form-horizontal">
<fieldset>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput7">Company Name</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput7" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput8">Contact Name</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput8" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" for="focusedInput9">Contact Phone</label>
<div class="col-lg-10">
<input class="form-control" id="focusedInput9" type="text" value="">
</div>
</div>
</fieldset>
</form>
</div>
<ul class="pager wizard">
<li class="previous first" style="display:none;"><a href="javascript:void(0);">First</a></li>
<li class="previous"><a href="javascript:void(0);">Previous</a></li>
<li class="next last" style="display:none;"><a href="javascript:void(0);">Last</a></li>
<li class="next"><a href="javascript:void(0);">Next</a></li>
<li class="next finish" style="display:none;"><a href="javascript:;">Finish</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<hr>
<footer role="contentinfo">
<p>© <a href="http://vadimg.com" target="_blank">Vincent Gabriel</a> & <a href="http://www.meritoo.pl" target="_blank">Meritoo.pl</a> 2013</p>
</footer>
</div>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/twitter-bootstrap-hover-dropdown.min.js"></script>
<script type="text/javascript" src="vendors/uniform/jquery.uniform.min.js"></script>
<script type="text/javascript" src="vendors/chosen.jquery.min.js"></script>
<script type="text/javascript" src="vendors/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js"></script>
<script type="text/javascript" src="vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/javascripts/bootstrap-wysihtml5/core-b3.js"></script>
<script type="text/javascript" src="vendors/twitter-bootstrap-wizard/jquery.bootstrap.wizard-for.bootstrap3.js"></script>
<script type="text/javascript" src="vendors/boostrap3-typeahead/bootstrap3-typeahead.min.js"></script>
<script type="text/javascript">
$(function() {
$('.datepicker').datepicker();
$('.uniform_on').uniform();
$('.chzn-select').chosen();
$('.textarea-wysihtml5').wysihtml5({
stylesheets: [
'vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/stylesheets/bootstrap-wysihtml5/wysiwyg-color.css'
]
});
$('#rootwizard').bootstrapWizard({
'nextSelector': '.next',
'previousSelector': '.previous',
onNext: function(tab, navigation, index) {
var $total = navigation.find('li').length;
var $current = index + 1;
var $percent = ($current / $total) * 100;
$('#rootwizard').find('.progress-bar').css('width', $percent + '%');
// If it's the last tab then hide the last button and show the finish instead
if ($current >= $total) {
$('#rootwizard').find('.pager .next').hide();
$('#rootwizard').find('.pager .finish').show();
$('#rootwizard').find('.pager .finish').removeClass('disabled');
} else {
$('#rootwizard').find('.pager .next').show();
$('#rootwizard').find('.pager .finish').hide();
}
},
onPrevious: function(tab, navigation, index) {
var $total = navigation.find('li').length;
var $current = index + 1;
var $percent = ($current / $total) * 100;
$('#rootwizard').find('.progress-bar').css('width', $percent + '%');
// If it's the last tab then hide the last button and show the finish instead
if ($current >= $total) {
$('#rootwizard').find('.pager .next').hide();
$('#rootwizard').find('.pager .finish').show();
$('#rootwizard').find('.pager .finish').removeClass('disabled');
} else {
$('#rootwizard').find('.pager .next').show();
$('#rootwizard').find('.pager .finish').hide();
}
},
onTabShow: function(tab, navigation, index) {
var $total = navigation.find('li').length;
var $current = index + 1;
var $percent = ($current / $total) * 100;
$('#rootwizard').find('.bar').css({width: $percent + '%'});
}
});
$('#rootwizard .finish').click(function() {
alert('Finished!, Starting over!');
$('#rootwizard').find('a[href*=\'tab1\']').trigger('click');
});
});
</script>
</body>
</html>