forked from nathansmith/formalize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dojo_errors.html
213 lines (213 loc) · 5.78 KB
/
dojo_errors.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Formalize CSS</title>
<link rel="stylesheet" href="assets/stylesheets/demo.css" />
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5.0/dojo/dojo.xd.js"></script>
<script src="assets/javascripts/dojo.formalize.js"></script>
</head>
<body>
<div id="wrapper">
<h1>
Example of all form elements
</h1>
<form action="" enctype="multipart/form-data" onsubmit="return false;">
<p>
<input type="checkbox" id="test_checkbox_1" name="test_checkbox_1" />
<label class="error" for="test_checkbox_1">
Test checkbox 1
</label>
<input type="checkbox" id="test_checkbox_2" name="test_checkbox_2" />
<label class="error" for="test_checkbox_2">
Test checkbox 2
</label>
<input type="checkbox" id="test_checkbox_3" name="test_checkbox_3" />
<label class="error" for="test_checkbox_3">
Test checkbox 3
</label>
</p>
<p>
<input type="radio" id="test_radio_1" name="test_radio_group" />
<label class="error" for="test_radio_1">
Test radio 1
</label>
<input type="radio" id="test_radio_2" name="test_radio_group" />
<label class="error" for="test_radio_2">
Test radio 2
</label>
<input type="radio" id="test_radio_3" name="test_radio_group" />
<label class="error" for="test_radio_3">
Test radio 3
</label>
</p>
<p>
<label class="error" for="select_dd">
Select drop-down
</label>
<br />
<select class="error" 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 class="error" type="text" id="text_inline" name="text_inline" />
<input type="button" value="Hello" />
</p>
<p>
<label class="error" for="select_multi">
Select multiple
</label>
<br />
<select class="error" 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 class="error" for="textarea">
Textarea
</label>
<br />
<textarea class="error" id="textarea" name="textarea" rows="5" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
<td>
<label class="error" for="url">
URL + Autofocus
</label>
<br />
<input class="error" type="url" id="url" name="url" value="http://" autofocus="autofocus" />
</td>
<td>
<label class="error" for="email">
Email
</label>
<br />
<input class="error" type="email" id="email" name="email" placeholder="name@example.com" />
</td>
<td>
<label class="error" for="text">
Text
</label>
<br />
<input class="error" type="text" id="text" name="text" />
</td>
</tr>
<tr>
<td>
<label class="error" for="datetime-local">
Datetime local
</label>
<br />
<input class="error" type="datetime-local" id="datetime-local" name="datetime-local" />
</td>
<td>
<label class="error" for="number">
Number
</label>
<br />
<input class="error" type="number" id="number" name="number" />
</td>
<td>
<label class="error" for="tel">
Tel (phone)
</label>
<br />
<input class="error" type="tel" id="tel" name="tel" />
</td>
</tr>
<tr>
<td>
<label class="error" for="datetime">
Datetime
</label>
<br />
<input class="error" type="datetime" id="datetime" name="datetime" />
</td>
<td>
<label class="error" for="date">
Date
</label>
<br />
<input class="error" type="date" id="date" name="date" />
</td>
<td>
<label class="error" for="month">
Month
</label>
<br />
<input class="error" type="month" id="month" name="month" />
</td>
</tr>
<tr>
<td>
<label class="error" for="search">
Search
</label>
<br />
<input class="error" type="search" id="search" name="search" />
</td>
<td>
<label class="error" for="range">
Range
</label>
<br />
<input class="error" type="range" id="range" name="range" />
</td>
<td>
<label class="error" for="file">
File upload
</label>
<br />
<input class="error" type="file" id="file" name="file" />
</td>
</tr>
</table>
<p>
<input type="submit" value="Input - Submit" />
<input type="button" value="Input - Button" />
<input type="reset" value="Input - Reset" />
<button>Button tag</button>
</p>
</form>
</div>
</body>
</html>