-
Notifications
You must be signed in to change notification settings - Fork 120
/
yui_disabled.html
223 lines (223 loc) · 6.89 KB
/
yui_disabled.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Formalize CSS</title>
<link rel="stylesheet" href="assets/css/demo.css" />
<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script src="assets/js/yui.formalize.js"></script>
<script>
// Fire it off!
YUI().use('formalize', function(Y) {
Y.on('domready', function() {
Y.formalize.go();
});
});
</script>
</head>
<body>
<div id="wrapper">
<h1>
Example of all form elements
</h1>
<form action="#" method="post" enctype="multipart/form-data" onsubmit="return false">
<p>
<input disabled="disabled" type="checkbox" id="test_checkbox_1" name="test_checkbox_1" />
<label for="test_checkbox_1">
Test checkbox 1
</label>
<input disabled="disabled" type="checkbox" id="test_checkbox_2" name="test_checkbox_2" />
<label for="test_checkbox_2">
Test checkbox 2
</label>
<input disabled="disabled" type="checkbox" id="test_checkbox_3" name="test_checkbox_3" />
<label for="test_checkbox_3">
Test checkbox 3
</label>
</p>
<p>
<input disabled="disabled" type="radio" id="test_radio_1" name="test_radio_group" />
<label for="test_radio_1">
Test radio 1
</label>
<input disabled="disabled" type="radio" id="test_radio_2" name="test_radio_group" />
<label for="test_radio_2">
Test radio 2
</label>
<input disabled="disabled" type="radio" id="test_radio_3" name="test_radio_group" />
<label for="test_radio_3">
Test radio 3
</label>
</p>
<p>
<label for="select_dd">
Select drop-down
</label>
<br />
<select disabled="disabled" id="select_dd" name="select_dd">
<optgroup label="Group 1">
<option value="1">Some text goes here</option>
<option value="2">Another choice could be here</option>
<option value="3">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 2">
<option value="4">Some text goes here</option>
<option value="5">Another choice could be here</option>
<option value="6">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 3">
<option value="7">Some text goes here</option>
<option value="8">Another choice could be here</option>
<option value="9">Yet another item to be chosen</option>
</optgroup>
</select>
<input disabled="disabled" type="text" id="text_inline" name="text_inline" />
<input disabled="disabled" type="button" value="Input Button" />
<button disabled="disabled">Button Tag</button>
<a href="#" class="button button_disabled">Link Button</a>
</p>
<p>
<label for="select_multi">
Select multiple
</label>
<br />
<select disabled="disabled" id="select_multi" name="select_multi" multiple="multiple" size="10">
<optgroup label="Group 1">
<option value="1">Some text goes here</option>
<option value="2">Another choice could be here</option>
<option value="3">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 2">
<option value="4">Some text goes here</option>
<option value="5">Another choice could be here</option>
<option value="6">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 3">
<option value="7">Some text goes here</option>
<option value="8">Another choice could be here</option>
<option value="9">Yet another item to be chosen</option>
</optgroup>
</select>
</p>
<p>
<label for="textarea">
Textarea
</label>
<br />
<textarea disabled="disabled" id="textarea" name="textarea" rows="5" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
<td>
<label for="url">
URL + Autofocus
</label>
<br />
<input disabled="disabled" type="url" id="url" name="url" value="http://" autofocus="autofocus" />
</td>
<td>
<label for="email">
Email
</label>
<br />
<input disabled="disabled" type="email" id="email" name="email" placeholder="[email protected]" />
</td>
<td>
<label for="password">
Password
</label>
<br />
<input disabled="disabled" type="password" id="password" name="password" placeholder="Alphanumeric123!" />
</td>
</tr>
<tr>
<td>
<label for="datetime-local">
Datetime local
</label>
<br />
<input disabled="disabled" type="datetime-local" id="datetime-local" name="datetime-local" />
</td>
<td>
<label for="number">
Number
</label>
<br />
<input disabled="disabled" type="number" id="number" name="number" min="0" max="999" step="1" />
</td>
<td>
<label for="tel">
Tel (phone)
</label>
<br />
<input disabled="disabled" type="tel" id="tel" name="tel" />
</td>
</tr>
<tr>
<td>
<label for="datetime">
Datetime
</label>
<br />
<input disabled="disabled" type="datetime" id="datetime" name="datetime" />
</td>
<td>
<label for="date">
Date
</label>
<br />
<input disabled="disabled" type="date" id="date" name="date" />
</td>
<td>
<label for="month">
Month
</label>
<br />
<input disabled="disabled" type="month" id="month" name="month" />
</td>
</tr>
<tr>
<td>
<label for="search">
Search
</label>
<br />
<input disabled="disabled" type="search" id="search" name="search" />
</td>
<td>
<label for="range">
Range
</label>
<br />
<input disabled="disabled" type="range" id="range" name="range" />
</td>
<td>
<label for="file">
File upload
</label>
<br />
<input disabled="disabled" type="file" id="file" name="file" />
</td>
</tr>
</table>
<p>
<input disabled="disabled" type="submit" value="Input - Submit" />
<input disabled="disabled" type="button" value="Input - Button" />
<input disabled="disabled" type="reset" value="Input - Reset" />
<button disabled="disabled">Button tag</button>
</p>
</form>
</div>
</body>
</html>