-
Notifications
You must be signed in to change notification settings - Fork 10
/
form-common.html
445 lines (441 loc) · 20.9 KB
/
form-common.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matrix Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/colorpicker.css" />
<link rel="stylesheet" href="css/datepicker.css" />
<link rel="stylesheet" href="css/uniform.css" />
<link rel="stylesheet" href="css/select2.css" />
<link rel="stylesheet" href="css/matrix-style2.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<link rel="stylesheet" href="css/bootstrap-wysihtml5.css" />
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<style>
.control-group .controls label{
display:inline-block;
}
</style>
</head>
<body>
<div id="content">
<div id="content-header">
<h1>普通表单</h1>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Personal-info</h5>
</div>
<div class="widget-content nopadding">
<form action="#" method="get" class="form-horizontal">
<div class="control-group">
<label class="control-label">First Name :</label>
<div class="controls">
<input type="text" class="span11" placeholder="First name" />
</div>
</div>
<div class="control-group">
<label class="control-label">Last Name :</label>
<div class="controls">
<input type="text" class="span11" placeholder="Last name" />
</div>
</div>
<div class="control-group">
<label class="control-label">Password input</label>
<div class="controls">
<input type="password" class="span11" placeholder="Enter Password" />
</div>
</div>
<div class="control-group">
<label class="control-label">Company info :</label>
<div class="controls">
<input type="text" class="span11" placeholder="Company name" />
</div>
</div>
<div class="control-group">
<label class="control-label">Description field:</label>
<div class="controls">
<input type="text" class="span11" />
<span class="help-block">Description field</span> </div>
</div>
<div class="control-group">
<label class="control-label">Message</label>
<div class="controls">
<textarea class="span11" ></textarea>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success">Save</button>
</div>
</form>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Form Elements</h5>
</div>
<div class="widget-content nopadding">
<form action="#" method="get" class="form-horizontal">
<div class="control-group">
<label class="control-label">Select input</label>
<div class="controls">
<select >
<option>First option</option>
<option>Second option</option>
<option>Third option</option>
<option>Fourth option</option>
<option>Fifth option</option>
<option>Sixth option</option>
<option>Seventh option</option>
<option>Eighth option</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Multiple Select input</label>
<div class="controls">
<select multiple >
<option>First option</option>
<option selected>Second option</option>
<option>Third option</option>
<option>Fourth option</option>
<option>Fifth option</option>
<option>Sixth option</option>
<option>Seventh option</option>
<option>Eighth option</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Radio inputs</label>
<div class="controls">
<label>
<input type="radio" name="radios" />
First One</label>
<label>
<input type="radio" name="radios" />
Second One</label>
<label>
<input type="radio" name="radios" />
Third One</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Checkboxes</label>
<div class="controls">
<label>
<input type="checkbox" name="radios" />
First One</label>
<label>
<input type="checkbox" name="radios" />
Second One</label>
<label>
<input type="checkbox" name="radios" />
Third One</label>
</div>
</div>
<div class="control-group">
<label for="checkboxes" class="control-label">Data Toggle checkbox</label>
<div class="controls">
<div data-toggle="buttons-checkbox" class="btn-group">
<button class="btn btn-primary" type="button">Left</button>
<button class="btn btn-primary" type="button">Middle</button>
<button class="btn btn-primary" type="button">Right</button>
</div>
</div>
</div>
<div class="control-group">
<label for="checkboxes" class="control-label">Data Radio button</label>
<div class="controls">
<div data-toggle="buttons-radio" class="btn-group">
<button class="btn btn-primary" type="button">Left</button>
<button class="btn btn-primary" type="button">Middle</button>
<button class="btn btn-primary" type="button">Right</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">File upload input</label>
<div class="controls">
<input type="file" />
</div>
</div>
<div class="control-group">
<label class="control-label">Disabled Input</label>
<div class="controls">
<input type="text" placeholder="You can't type anything…" disabled="" class="span11">
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success">Save</button>
</div>
</form>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Form Elements</h5>
</div>
<div class="widget-content nopadding">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label">Color picker (hex)</label>
<div class="controls">
<input type="text" data-color="#ffffff" value="#ffffff" class="colorpicker input-big span11">
<span class="help-block">Color picker with Formate of (hex)</span> </div>
</div>
<div class="control-group">
<label class="control-label">Color picker (rgba)</label>
<div class="controls">
<input type="text" data-color="rgba(344,232,53,0.5)" value="rgba(344,232,53,0.5)" data-color-format="rgba" class="colorpicker span11">
<span class="help-block">Color picker with Formate of (rgba)</span> </div>
</div>
<div class="control-group">
<label class="control-label">Date picker (dd-mm)</label>
<div class="controls">
<input type="text" data-date="01-02-2013" data-date-format="dd-mm-yyyy" value="01-02-2013" class="datepicker span11">
<span class="help-block">Date with Formate of (dd-mm-yy)</span> </div>
</div>
<div class="control-group">
<label class="control-label">Date Picker (mm-dd)</label>
<div class="controls">
<div data-date="12-02-2012" class="input-append date datepicker">
<input type="text" value="12-02-2012" data-date-format="mm-dd-yyyy" class="span11" >
<span class="add-on"><i class="icon-th"></i></span> </div>
</div>
</div>
<div class="control-group">
<label class="control-label">Color Picker (rgb)</label>
<div class="controls">
<div data-color-format="rgb" data-color="rgb(155, 142, 180)" class="input-append color colorpicker colorpicker-rgb">
<input type="text" value="rgb(155, 142, 180)" class="span11">
<span class="add-on"><i style="background-color: rgb(155, 142, 180)"></i></span> </div>
</div>
</div>
<div class="control-group">
<label class="control-label">Color Picker (hex)</label>
<div class="controls">
<div data-color-format="hex" data-color="#000000" class="input-append color colorpicker">
<input type="text" value="#000000" class="span11">
<span class="add-on"><i style="background-color: #000000"></i></span> </div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success">Save</button>
<button type="submit" class="btn btn-primary">Reset</button>
<button type="submit" class="btn btn-info">Edit</button>
<button type="submit" class="btn btn-danger">Cancel</button>
</div>
</form>
</div>
</div>
</div>
<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Form Elements</h5>
</div>
<div class="widget-content nopadding">
<form action="#" class="form-horizontal">
<div class="control-group">
<label for="normal" class="control-label">Phone field</label>
<div class="controls">
<input type="text" id="mask-phone" class="span8 mask text">
<span class="help-block blue span8">(999) 999-9999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Phone field + ext.</label>
<div class="controls">
<input type="text" id="mask-phoneExt" class="span8 mask text">
<span class="help-block blue span8">(999) 999-9999? x99999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Phone field + ext.</label>
<div class="controls">
<input type="text" id="mask-phoneInt" class="span8 mask text">
<span class="help-block blue span8">+40 999 999 999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Date field</label>
<div class="controls">
<input type="text" id="mask-date" class="span8 mask text">
<span class="help-block blue span8">99/99/9999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">SSN field</label>
<div class="controls">
<input type="text" id="mask-ssn" class="span8 mask text">
<span class="help-block blue span8">999-99-9999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Product Key</label>
<div class="controls">
<input type="text" id="mask-productKey" class="span8 mask text">
<span class="help-block blue span8">a*-999-a999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Eye Script</label>
<div class="controls">
<input type="text" id="mask-eyeScript" class="span8 mask text">
<span class="help-block blue span8">~9.99 ~9.99 999</span> </div>
</div>
<div class="control-group">
<label for="normal" class="control-label">Percent</label>
<div class="controls">
<input type="text" id="mask-percent" class="span8 mask text">
<span class="help-block blue span8">99%</span> </div>
</div>
</form>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Form Elements</h5>
</div>
<div class="widget-content nopadding">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label">Tooltip Input</label>
<div class="controls">
<input type="text" placeholder="Hover for tooltip…" data-title="A tooltip for the input" class="span11 tip" data-original-title="">
</div>
</div>
<div class="control-group">
<label class="control-label">Type ahead Input</label>
<div class="controls">
<input type="text" placeholder="Type here for auto complete…" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source="["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Ahmedabad","India","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"]" class="span11">
</div>
</div>
<div class="control-group">
<label class="control-label">Prepended Input</label>
<div class="controls">
<div class="input-prepend"> <span class="add-on">#</span>
<input type="text" placeholder="prepend" class="span11">
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Appended Input</label>
<div class="controls">
<div class="input-append">
<input type="text" placeholder="5.000" class="span11">
<span class="add-on">$</span> </div>
</div>
</div>
<div class="control-group warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<div class="controls">
<input type="text" id="inputWarning" class="span11">
<span class="help-inline">Something may have gone wrong</span> </div>
</div>
<div class="control-group error">
<label class="control-label" for="inputError">Input with error</label>
<div class="controls">
<input type="text" id="inputError" class="span11">
<span class="help-inline">Please correct the error</span> </div>
</div>
<div class="control-group info">
<label class="control-label" for="inputInfo">Input with info</label>
<div class="controls">
<input type="text" id="inputInfo" class="span11">
<span class="help-inline">Username is already taken</span> </div>
</div>
<div class="control-group success">
<label class="control-label" for="inputSuccess">Input with success</label>
<div class="controls">
<input type="text" id="inputSuccess" class="span11">
<span class="help-inline">Woohoo!</span> </div>
</div>
</form>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Form Layout</h5>
</div>
<div class="widget-content">
<div class="controls">
<input type="text" placeholder=".span12" class="span12 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span11" class="span11 m-wrap">
<input type="text" placeholder=".span1" class="span1 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span10" class="span10 m-wrap">
<input type="text" placeholder=".span2" class="span2 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span9" class="span9 m-wrap">
<input type="text" placeholder=".span3" class="span3 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span8" class="span8 m-wrap">
<input type="text" placeholder=".span4" class="span4 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span7" class="span7 m-wrap">
<input type="text" placeholder=".span5" class="span5 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span6" class="span6 m-wrap">
<input type="text" placeholder=".span6" class="span6 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span5" class="span5 m-wrap">
<input type="text" placeholder=".span7" class="span7 m-wrap">
</div>
<div class="controls controls-row">
<input type="text" placeholder=".span2" class="span2 m-wrap">
<input type="text" placeholder=".span3" class="span3 m-wrap">
<input type="text" placeholder=".span4" class="span4 m-wrap">
<input type="text" placeholder=".span1" class="span2 m-wrap">
<input type="text" placeholder=".span1" class="span1 m-wrap">
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>wysihtml5</h5>
</div>
<div class="widget-content">
<div class="control-group">
<form>
<div class="controls">
<textarea class="textarea_editor span12" rows="6" placeholder="输入文本 ..."></textarea>
</div>
</form>
</div>
</div>
</div>
</div>
</div></div>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.ui.custom.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-colorpicker.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/jquery.toggle.buttons.html"></script>
<script src="js/masked.js"></script>
<script src="js/jquery.uniform.js"></script>
<script src="js/select2.min.js"></script>
<script src="js/matrix.js"></script>
<script src="js/matrix.form_common.js"></script>
<script src="js/wysihtml5-0.3.0.js"></script>
<script src="js/jquery.peity.min.js"></script>
<script src="js/bootstrap-wysihtml5.js"></script>
<script>
$('.textarea_editor').wysihtml5();
</script>
</body>
</html>