judge 1.5.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/README.md +273 -14
  2. data/app/assets/javascripts/judge.js +391 -0
  3. data/app/controllers/judge/validations_controller.rb +9 -0
  4. data/app/models/judge/validation.rb +53 -0
  5. data/config/routes.rb +3 -0
  6. data/lib/generators/judge/install/install_generator.rb +42 -0
  7. data/lib/judge.rb +13 -8
  8. data/lib/judge/config.rb +39 -0
  9. data/lib/judge/controller.rb +35 -0
  10. data/lib/judge/each_validator.rb +5 -4
  11. data/lib/judge/engine.rb +5 -0
  12. data/lib/judge/form_builder.rb +19 -24
  13. data/lib/judge/html.rb +5 -7
  14. data/lib/judge/message_collection.rb +2 -1
  15. data/lib/judge/message_config.rb +2 -1
  16. data/lib/judge/validator.rb +3 -1
  17. data/lib/judge/validator_collection.rb +1 -1
  18. data/lib/judge/version.rb +2 -2
  19. data/lib/tasks/judge_tasks.rake +4 -0
  20. data/{lib/generators/judge/templates → vendor/assets/javascripts}/json2.js +4 -5
  21. data/{lib/generators/judge/templates → vendor/assets/javascripts}/underscore.js +451 -285
  22. metadata +94 -87
  23. data/.gitignore +0 -9
  24. data/.travis.yml +0 -21
  25. data/Gemfile +0 -3
  26. data/Rakefile +0 -11
  27. data/judge.gemspec +0 -23
  28. data/lib/generators/judge/judge_generator.rb +0 -21
  29. data/lib/generators/judge/templates/judge.js +0 -330
  30. data/spec/each_validator_spec.rb +0 -17
  31. data/spec/form_builder_spec.rb +0 -68
  32. data/spec/html_spec.rb +0 -14
  33. data/spec/javascripts/JudgeSpec.js +0 -509
  34. data/spec/javascripts/fixtures/form.html +0 -538
  35. data/spec/javascripts/helpers/customMatchers.js +0 -20
  36. data/spec/javascripts/helpers/jasmine-jquery.js +0 -204
  37. data/spec/javascripts/helpers/jquery-1.5.1.min.js +0 -18
  38. data/spec/javascripts/helpers/json2.js +0 -487
  39. data/spec/javascripts/helpers/underscore.js +0 -1060
  40. data/spec/javascripts/support/jasmine.yml +0 -79
  41. data/spec/javascripts/support/jasmine_config.rb +0 -6
  42. data/spec/javascripts/support/jasmine_runner.rb +0 -21
  43. data/spec/javascripts/support/runner.js +0 -51
  44. data/spec/message_collection_spec.rb +0 -73
  45. data/spec/setup.rb +0 -75
  46. data/spec/support/factories.rb +0 -23
  47. data/spec/support/locale/en.yml +0 -18
  48. data/spec/support/setup.rb +0 -72
  49. data/spec/support/spec_helper.rb +0 -13
  50. data/spec/support/validators/city_validator.rb +0 -9
  51. data/spec/validator_collection_spec.rb +0 -21
  52. data/spec/validator_spec.rb +0 -33
@@ -1,538 +0,0 @@
1
- <form accept-charset="UTF-8" action="/foos" class="new_foo" id="new_foo" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="8rNT3Vl3kRfDI+qKVSFjMs4k3NYX1MF1qKIjzg6Ndms=" /></div>
2
-
3
- <div class="field">
4
- <label for="foo_one">One</label><br />
5
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_one" name="foo[one]">
6
- <option value=""></option>
7
- <option value="HELLO">hello</option>
8
- <option value="GOODBYE">goodbye</option></select>
9
- </div>
10
- <div class="field">
11
- <label for="foo_two">Two</label><br />
12
- <input data-validate="[{&quot;kind&quot;:&quot;length&quot;,&quot;options&quot;:{&quot;allow_blank&quot;:true,&quot;minimum&quot;:5,&quot;maximum&quot;:10},&quot;messages&quot;:{&quot;too_short&quot;:&quot;is too short (minimum is 5 characters)&quot;,&quot;too_long&quot;:&quot;is too long (maximum is 10 characters)&quot;}}]" id="foo_two_foobar" name="foo[two]" type="radio" value="FOOBAR" />
13
- </div>
14
- <div class="field">
15
- <label for="foo_three">Three</label><br />
16
- <select data-validate="[{&quot;kind&quot;:&quot;exclusion&quot;,&quot;options&quot;:{&quot;in&quot;:[&quot;foo&quot;,&quot;bar&quot;]},&quot;messages&quot;:{&quot;exclusion&quot;:&quot;is reserved&quot;,&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_three" name="foo[three]">
17
- <option value=""></option>
18
- <option value="foo">foo</option>
19
- <option value="quux">quux</option></select>
20
- </div>
21
- <div class="field">
22
- <label for="foo_three_inc">Three</label><br />
23
- <select data-validate="[{&quot;kind&quot;:&quot;inclusion&quot;,&quot;options&quot;:{&quot;in&quot;:[&quot;foo&quot;,&quot;bar&quot;]},&quot;messages&quot;:{&quot;inclusion&quot;:&quot;foo bar&quot;,&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_three_inc" name="foo[three_inc]">
24
- <option value=""></option>
25
- <option value="foo">foo</option>
26
- <option value="quux">quux</option></select>
27
- </div>
28
- <div class="field">
29
- <label for="foo_four">Four</label><br />
30
- <textarea cols="40" data-validate="[{&quot;kind&quot;:&quot;numericality&quot;,&quot;options&quot;:{&quot;only_integer&quot;:true,&quot;allow_nil&quot;:false,&quot;odd&quot;:true,&quot;less_than_or_equal_to&quot;:7},&quot;messages&quot;:{&quot;not_a_number&quot;:&quot;is not a number&quot;,&quot;less_than_or_equal_to&quot;:&quot;must be less than or equal to 7&quot;,&quot;odd&quot;:&quot;must be odd&quot;,&quot;not_an_integer&quot;:&quot;must be an integer&quot;}},{&quot;kind&quot;:&quot;exclusion&quot;,&quot;options&quot;:{&quot;in&quot;:[3,12]},&quot;messages&quot;:{&quot;exclusion&quot;:&quot;is reserved&quot;,&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_four" name="foo[four]" rows="20"></textarea>
31
- </div>
32
- <div class="field">
33
- <label for="foo_four_even">Four</label><br />
34
- <textarea cols="40" data-validate="[{&quot;kind&quot;:&quot;numericality&quot;,&quot;options&quot;:{&quot;allow_nil&quot;:false,&quot;even&quot;:true},&quot;messages&quot;:{&quot;not_a_number&quot;:&quot;is not a number&quot;,&quot;even&quot;:&quot;must be even&quot;}}]" id="foo_four_even" name="foo[four_even]" rows="20"></textarea>
35
- </div>
36
- <div class="field">
37
- <label for="foo_four_gt">Four</label><br />
38
- <textarea cols="40" data-validate="[{&quot;kind&quot;:&quot;numericality&quot;,&quot;options&quot;:{&quot;allow_nil&quot;:false,&quot;greater_than&quot;:7},&quot;messages&quot;:{&quot;not_a_number&quot;:&quot;is not a number&quot;,&quot;greater_than&quot;:&quot;must be greater than 7&quot;}}]" id="foo_four_gt" name="foo[four_gt]" rows="20"></textarea>
39
- </div>
40
- <div class="field">
41
- <label for="foo_four_lt">Four</label><br />
42
- <textarea cols="40" data-validate="[{&quot;kind&quot;:&quot;numericality&quot;,&quot;options&quot;:{&quot;allow_nil&quot;:false,&quot;less_than&quot;:7},&quot;messages&quot;:{&quot;not_a_number&quot;:&quot;is not a number&quot;,&quot;less_than&quot;:&quot;must be greater than 7&quot;}}]" id="foo_four_lt" name="foo[four_lt]" rows="20"></textarea>
43
- </div>
44
- <div class="field">
45
- <label for="foo_five_wo">Five</label><br />
46
- <select data-validate="[{&quot;kind&quot;:&quot;format&quot;,&quot;options&quot;:{&quot;without&quot;:&quot;(?-mix:[A-Za-z]+)&quot;},&quot;messages&quot;:{&quot;invalid&quot;:&quot;is invalid&quot;,&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_five_wo" name="foo[five_wo]">
47
- <option value="123">Foo</option>
48
- <option value="ABC">Germany</option></select>
49
- </div>
50
- <div class="field">
51
- <label for="foo_five_wi">Five</label><br />
52
- <select data-validate="[{&quot;kind&quot;:&quot;format&quot;,&quot;options&quot;:{&quot;with&quot;:&quot;(?-mix:[A-Za-z]+)&quot;},&quot;messages&quot;:{&quot;invalid&quot;:&quot;is invalid&quot;,&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_five_wi" name="foo[five_wi]">
53
- <option value="123">Foo</option>
54
- <option value="ABC">Germany</option></select>
55
- </div>
56
- <div class="field">
57
- <label for="foo_six">Six</label><br />
58
- <input name="foo[six]" type="hidden" value="0" /><input data-validate="[{&quot;kind&quot;:&quot;acceptance&quot;,&quot;options&quot;:{&quot;allow_nil&quot;:true,&quot;accept&quot;:&quot;1&quot;},&quot;messages&quot;:{&quot;accepted&quot;:&quot;must be accepted&quot;}}]" id="foo_six" name="foo[six]" type="checkbox" value="1" />
59
- </div>
60
- <div class="field">
61
- <label for="foo_seven">Seven</label><br />
62
- <input data-validate="[{&quot;kind&quot;:&quot;confirmation&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;confirmation&quot;:&quot;doesn't match confirmation&quot;}}]" id="foo_seven" name="foo[seven]" size="30" type="text" />
63
- <input type="text" id="foo_seven_confirmation" name="foo[seven_confirmation]" />
64
- </div>
65
- <div class="field">
66
- <label for="foo_eight">Eight</label><br />
67
- <input data-validate="[{&quot;kind&quot;:&quot;confirmation&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;confirmation&quot;:&quot;doesn't match confirmation&quot;}}]" id="foo_eight" name="foo[eight]" size="30" type="password" />
68
- </div>
69
- <div class="field">
70
- <label for="foo_nine">Nine</label><br />
71
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_nine" name="foo[nine]"><option value=""></option>
72
- <option value="Hawaii">(GMT-10:00) Hawaii</option>
73
- <option value="Alaska">(GMT-09:00) Alaska</option>
74
- <option value="Pacific Time (US &amp; Canada)">(GMT-08:00) Pacific Time (US &amp; Canada)</option>
75
- <option value="Arizona">(GMT-07:00) Arizona</option>
76
- <option value="Mountain Time (US &amp; Canada)">(GMT-07:00) Mountain Time (US &amp; Canada)</option>
77
- <option value="Central Time (US &amp; Canada)">(GMT-06:00) Central Time (US &amp; Canada)</option>
78
- <option value="Eastern Time (US &amp; Canada)">(GMT-05:00) Eastern Time (US &amp; Canada)</option>
79
- <option value="Indiana (East)">(GMT-05:00) Indiana (East)</option><option value="" disabled="disabled">-------------</option>
80
- <option value="International Date Line West">(GMT-11:00) International Date Line West</option>
81
- <option value="Midway Island">(GMT-11:00) Midway Island</option>
82
- <option value="Samoa">(GMT-11:00) Samoa</option>
83
- <option value="Tijuana">(GMT-08:00) Tijuana</option>
84
- <option value="Chihuahua">(GMT-07:00) Chihuahua</option>
85
- <option value="Mazatlan">(GMT-07:00) Mazatlan</option>
86
- <option value="Central America">(GMT-06:00) Central America</option>
87
- <option value="Guadalajara">(GMT-06:00) Guadalajara</option>
88
- <option value="Mexico City">(GMT-06:00) Mexico City</option>
89
- <option value="Monterrey">(GMT-06:00) Monterrey</option>
90
- <option value="Saskatchewan">(GMT-06:00) Saskatchewan</option>
91
- <option value="Bogota">(GMT-05:00) Bogota</option>
92
- <option value="Lima">(GMT-05:00) Lima</option>
93
- <option value="Quito">(GMT-05:00) Quito</option>
94
- <option value="Caracas">(GMT-04:30) Caracas</option>
95
- <option value="Atlantic Time (Canada)">(GMT-04:00) Atlantic Time (Canada)</option>
96
- <option value="Georgetown">(GMT-04:00) Georgetown</option>
97
- <option value="La Paz">(GMT-04:00) La Paz</option>
98
- <option value="Santiago">(GMT-04:00) Santiago</option>
99
- <option value="Newfoundland">(GMT-03:30) Newfoundland</option>
100
- <option value="Brasilia">(GMT-03:00) Brasilia</option>
101
- <option value="Buenos Aires">(GMT-03:00) Buenos Aires</option>
102
- <option value="Greenland">(GMT-03:00) Greenland</option>
103
- <option value="Mid-Atlantic">(GMT-02:00) Mid-Atlantic</option>
104
- <option value="Azores">(GMT-01:00) Azores</option>
105
- <option value="Cape Verde Is.">(GMT-01:00) Cape Verde Is.</option>
106
- <option value="Casablanca">(GMT+00:00) Casablanca</option>
107
- <option value="Dublin">(GMT+00:00) Dublin</option>
108
- <option value="Edinburgh">(GMT+00:00) Edinburgh</option>
109
- <option value="Lisbon">(GMT+00:00) Lisbon</option>
110
- <option value="London">(GMT+00:00) London</option>
111
- <option value="Monrovia">(GMT+00:00) Monrovia</option>
112
- <option value="UTC">(GMT+00:00) UTC</option>
113
- <option value="Amsterdam">(GMT+01:00) Amsterdam</option>
114
- <option value="Belgrade">(GMT+01:00) Belgrade</option>
115
- <option value="Berlin">(GMT+01:00) Berlin</option>
116
- <option value="Bern">(GMT+01:00) Bern</option>
117
- <option value="Bratislava">(GMT+01:00) Bratislava</option>
118
- <option value="Brussels">(GMT+01:00) Brussels</option>
119
- <option value="Budapest">(GMT+01:00) Budapest</option>
120
- <option value="Copenhagen">(GMT+01:00) Copenhagen</option>
121
- <option value="Ljubljana">(GMT+01:00) Ljubljana</option>
122
- <option value="Madrid">(GMT+01:00) Madrid</option>
123
- <option value="Paris">(GMT+01:00) Paris</option>
124
- <option value="Prague">(GMT+01:00) Prague</option>
125
- <option value="Rome">(GMT+01:00) Rome</option>
126
- <option value="Sarajevo">(GMT+01:00) Sarajevo</option>
127
- <option value="Skopje">(GMT+01:00) Skopje</option>
128
- <option value="Stockholm">(GMT+01:00) Stockholm</option>
129
- <option value="Vienna">(GMT+01:00) Vienna</option>
130
- <option value="Warsaw">(GMT+01:00) Warsaw</option>
131
- <option value="West Central Africa">(GMT+01:00) West Central Africa</option>
132
- <option value="Zagreb">(GMT+01:00) Zagreb</option>
133
- <option value="Athens">(GMT+02:00) Athens</option>
134
- <option value="Bucharest">(GMT+02:00) Bucharest</option>
135
- <option value="Cairo">(GMT+02:00) Cairo</option>
136
- <option value="Harare">(GMT+02:00) Harare</option>
137
- <option value="Helsinki">(GMT+02:00) Helsinki</option>
138
- <option value="Istanbul">(GMT+02:00) Istanbul</option>
139
- <option value="Jerusalem">(GMT+02:00) Jerusalem</option>
140
- <option value="Pretoria">(GMT+02:00) Pretoria</option>
141
- <option value="Riga">(GMT+02:00) Riga</option>
142
- <option value="Sofia">(GMT+02:00) Sofia</option>
143
- <option value="Tallinn">(GMT+02:00) Tallinn</option>
144
- <option value="Vilnius">(GMT+02:00) Vilnius</option>
145
- <option value="Baghdad">(GMT+03:00) Baghdad</option>
146
- <option value="Kuwait">(GMT+03:00) Kuwait</option>
147
- <option value="Kyiv">(GMT+03:00) Kyiv</option>
148
- <option value="Minsk">(GMT+03:00) Minsk</option>
149
- <option value="Nairobi">(GMT+03:00) Nairobi</option>
150
- <option value="Riyadh">(GMT+03:00) Riyadh</option>
151
- <option value="Tehran">(GMT+03:30) Tehran</option>
152
- <option value="Abu Dhabi">(GMT+04:00) Abu Dhabi</option>
153
- <option value="Baku">(GMT+04:00) Baku</option>
154
- <option value="Moscow">(GMT+04:00) Moscow</option>
155
- <option value="Muscat">(GMT+04:00) Muscat</option>
156
- <option value="St. Petersburg">(GMT+04:00) St. Petersburg</option>
157
- <option value="Tbilisi">(GMT+04:00) Tbilisi</option>
158
- <option value="Volgograd">(GMT+04:00) Volgograd</option>
159
- <option value="Yerevan">(GMT+04:00) Yerevan</option>
160
- <option value="Kabul">(GMT+04:30) Kabul</option>
161
- <option value="Islamabad">(GMT+05:00) Islamabad</option>
162
- <option value="Karachi">(GMT+05:00) Karachi</option>
163
- <option value="Tashkent">(GMT+05:00) Tashkent</option>
164
- <option value="Chennai">(GMT+05:30) Chennai</option>
165
- <option value="Kolkata">(GMT+05:30) Kolkata</option>
166
- <option value="Mumbai">(GMT+05:30) Mumbai</option>
167
- <option value="New Delhi">(GMT+05:30) New Delhi</option>
168
- <option value="Sri Jayawardenepura">(GMT+05:30) Sri Jayawardenepura</option>
169
- <option value="Kathmandu">(GMT+05:45) Kathmandu</option>
170
- <option value="Almaty">(GMT+06:00) Almaty</option>
171
- <option value="Astana">(GMT+06:00) Astana</option>
172
- <option value="Dhaka">(GMT+06:00) Dhaka</option>
173
- <option value="Ekaterinburg">(GMT+06:00) Ekaterinburg</option>
174
- <option value="Rangoon">(GMT+06:30) Rangoon</option>
175
- <option value="Bangkok">(GMT+07:00) Bangkok</option>
176
- <option value="Hanoi">(GMT+07:00) Hanoi</option>
177
- <option value="Jakarta">(GMT+07:00) Jakarta</option>
178
- <option value="Novosibirsk">(GMT+07:00) Novosibirsk</option>
179
- <option value="Beijing">(GMT+08:00) Beijing</option>
180
- <option value="Chongqing">(GMT+08:00) Chongqing</option>
181
- <option value="Hong Kong">(GMT+08:00) Hong Kong</option>
182
- <option value="Krasnoyarsk">(GMT+08:00) Krasnoyarsk</option>
183
- <option value="Kuala Lumpur">(GMT+08:00) Kuala Lumpur</option>
184
- <option value="Perth">(GMT+08:00) Perth</option>
185
- <option value="Singapore">(GMT+08:00) Singapore</option>
186
- <option value="Taipei">(GMT+08:00) Taipei</option>
187
- <option value="Ulaan Bataar">(GMT+08:00) Ulaan Bataar</option>
188
- <option value="Urumqi">(GMT+08:00) Urumqi</option>
189
- <option value="Irkutsk">(GMT+09:00) Irkutsk</option>
190
- <option value="Osaka">(GMT+09:00) Osaka</option>
191
- <option value="Sapporo">(GMT+09:00) Sapporo</option>
192
- <option value="Seoul">(GMT+09:00) Seoul</option>
193
- <option value="Tokyo">(GMT+09:00) Tokyo</option>
194
- <option value="Adelaide">(GMT+09:30) Adelaide</option>
195
- <option value="Darwin">(GMT+09:30) Darwin</option>
196
- <option value="Brisbane">(GMT+10:00) Brisbane</option>
197
- <option value="Canberra">(GMT+10:00) Canberra</option>
198
- <option value="Guam">(GMT+10:00) Guam</option>
199
- <option value="Hobart">(GMT+10:00) Hobart</option>
200
- <option value="Melbourne">(GMT+10:00) Melbourne</option>
201
- <option value="Port Moresby">(GMT+10:00) Port Moresby</option>
202
- <option value="Sydney">(GMT+10:00) Sydney</option>
203
- <option value="Yakutsk">(GMT+10:00) Yakutsk</option>
204
- <option value="New Caledonia">(GMT+11:00) New Caledonia</option>
205
- <option value="Vladivostok">(GMT+11:00) Vladivostok</option>
206
- <option value="Auckland">(GMT+12:00) Auckland</option>
207
- <option value="Fiji">(GMT+12:00) Fiji</option>
208
- <option value="Kamchatka">(GMT+12:00) Kamchatka</option>
209
- <option value="Magadan">(GMT+12:00) Magadan</option>
210
- <option value="Marshall Is.">(GMT+12:00) Marshall Is.</option>
211
- <option value="Solomon Is.">(GMT+12:00) Solomon Is.</option>
212
- <option value="Wellington">(GMT+12:00) Wellington</option>
213
- <option value="Nuku'alofa">(GMT+13:00) Nuku'alofa</option></select>
214
- </div>
215
- <div class="field">
216
- <label for="foo_ten">Ten</label><br />
217
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_ten_4i" name="foo[ten(4i)]">
218
- <option value=""></option>
219
- <option value="00">00</option>
220
- <option value="01">01</option>
221
- <option value="02">02</option>
222
- <option value="03">03</option>
223
- <option value="04">04</option>
224
- <option value="05">05</option>
225
- <option value="06">06</option>
226
- <option value="07">07</option>
227
- <option value="08">08</option>
228
- <option value="09">09</option>
229
- <option value="10">10</option>
230
- <option value="11">11</option>
231
- <option value="12">12</option>
232
- <option value="13">13</option>
233
- <option value="14">14</option>
234
- <option value="15">15</option>
235
- <option value="16">16</option>
236
- <option value="17">17</option>
237
- <option value="18">18</option>
238
- <option value="19">19</option>
239
- <option value="20">20</option>
240
- <option value="21">21</option>
241
- <option value="22">22</option>
242
- <option value="23">23</option>
243
- </select>
244
- : <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_ten_5i" name="foo[ten(5i)]">
245
- <option value=""></option>
246
- <option value="00">00</option>
247
- <option value="01">01</option>
248
- <option value="02">02</option>
249
- <option value="03">03</option>
250
- <option value="04">04</option>
251
- <option value="05">05</option>
252
- <option value="06">06</option>
253
- <option value="07">07</option>
254
- <option value="08">08</option>
255
- <option value="09">09</option>
256
- <option value="10">10</option>
257
- <option value="11">11</option>
258
- <option value="12">12</option>
259
- <option value="13">13</option>
260
- <option value="14">14</option>
261
- <option value="15">15</option>
262
- <option value="16">16</option>
263
- <option value="17">17</option>
264
- <option value="18">18</option>
265
- <option value="19">19</option>
266
- <option value="20">20</option>
267
- <option value="21">21</option>
268
- <option value="22">22</option>
269
- <option value="23">23</option>
270
- <option value="24">24</option>
271
- <option value="25">25</option>
272
- <option value="26">26</option>
273
- <option value="27">27</option>
274
- <option value="28">28</option>
275
- <option value="29">29</option>
276
- <option value="30">30</option>
277
- <option value="31">31</option>
278
- <option value="32">32</option>
279
- <option value="33">33</option>
280
- <option value="34">34</option>
281
- <option value="35">35</option>
282
- <option value="36">36</option>
283
- <option value="37">37</option>
284
- <option value="38">38</option>
285
- <option value="39">39</option>
286
- <option value="40">40</option>
287
- <option value="41">41</option>
288
- <option value="42">42</option>
289
- <option value="43">43</option>
290
- <option value="44">44</option>
291
- <option value="45">45</option>
292
- <option value="46">46</option>
293
- <option value="47">47</option>
294
- <option value="48">48</option>
295
- <option value="49">49</option>
296
- <option value="50">50</option>
297
- <option value="51">51</option>
298
- <option value="52">52</option>
299
- <option value="53">53</option>
300
- <option value="54">54</option>
301
- <option value="55">55</option>
302
- <option value="56">56</option>
303
- <option value="57">57</option>
304
- <option value="58">58</option>
305
- <option value="59">59</option>
306
- </select>
307
-
308
- </div>
309
- <div class="field">
310
- <label for="foo_eleven">Eleven</label><br />
311
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_eleven_1i" name="foo[eleven(1i)]">
312
- <option value=""></option>
313
- <option value="2006">2006</option>
314
- <option value="2007">2007</option>
315
- <option value="2008">2008</option>
316
- <option value="2009">2009</option>
317
- <option value="2010">2010</option>
318
- <option value="2011">2011</option>
319
- <option value="2012">2012</option>
320
- <option value="2013">2013</option>
321
- <option value="2014">2014</option>
322
- <option value="2015">2015</option>
323
- <option value="2016">2016</option>
324
- </select>
325
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_eleven_2i" name="foo[eleven(2i)]">
326
- <option value=""></option>
327
- <option value="1">January</option>
328
- <option value="2">February</option>
329
- <option value="3">March</option>
330
- <option value="4">April</option>
331
- <option value="5">May</option>
332
- <option value="6">June</option>
333
- <option value="7">July</option>
334
- <option value="8">August</option>
335
- <option value="9">September</option>
336
- <option value="10">October</option>
337
- <option value="11">November</option>
338
- <option value="12">December</option>
339
- </select>
340
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_eleven_3i" name="foo[eleven(3i)]">
341
- <option value=""></option>
342
- <option value="1">1</option>
343
- <option value="2">2</option>
344
- <option value="3">3</option>
345
- <option value="4">4</option>
346
- <option value="5">5</option>
347
- <option value="6">6</option>
348
- <option value="7">7</option>
349
- <option value="8">8</option>
350
- <option value="9">9</option>
351
- <option value="10">10</option>
352
- <option value="11">11</option>
353
- <option value="12">12</option>
354
- <option value="13">13</option>
355
- <option value="14">14</option>
356
- <option value="15">15</option>
357
- <option value="16">16</option>
358
- <option value="17">17</option>
359
- <option value="18">18</option>
360
- <option value="19">19</option>
361
- <option value="20">20</option>
362
- <option value="21">21</option>
363
- <option value="22">22</option>
364
- <option value="23">23</option>
365
- <option value="24">24</option>
366
- <option value="25">25</option>
367
- <option value="26">26</option>
368
- <option value="27">27</option>
369
- <option value="28">28</option>
370
- <option value="29">29</option>
371
- <option value="30">30</option>
372
- <option value="31">31</option>
373
- </select>
374
- &mdash; <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_eleven_4i" name="foo[eleven(4i)]">
375
- <option value=""></option>
376
- <option value="00">00</option>
377
- <option value="01">01</option>
378
- <option value="02">02</option>
379
- <option value="03">03</option>
380
- <option value="04">04</option>
381
- <option value="05">05</option>
382
- <option value="06">06</option>
383
- <option value="07">07</option>
384
- <option value="08">08</option>
385
- <option value="09">09</option>
386
- <option value="10">10</option>
387
- <option value="11">11</option>
388
- <option value="12">12</option>
389
- <option value="13">13</option>
390
- <option value="14">14</option>
391
- <option value="15">15</option>
392
- <option value="16">16</option>
393
- <option value="17">17</option>
394
- <option value="18">18</option>
395
- <option value="19">19</option>
396
- <option value="20">20</option>
397
- <option value="21">21</option>
398
- <option value="22">22</option>
399
- <option value="23">23</option>
400
- </select>
401
- : <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_eleven_5i" name="foo[eleven(5i)]">
402
- <option value=""></option>
403
- <option value="00">00</option>
404
- <option value="01">01</option>
405
- <option value="02">02</option>
406
- <option value="03">03</option>
407
- <option value="04">04</option>
408
- <option value="05">05</option>
409
- <option value="06">06</option>
410
- <option value="07">07</option>
411
- <option value="08">08</option>
412
- <option value="09">09</option>
413
- <option value="10">10</option>
414
- <option value="11">11</option>
415
- <option value="12">12</option>
416
- <option value="13">13</option>
417
- <option value="14">14</option>
418
- <option value="15">15</option>
419
- <option value="16">16</option>
420
- <option value="17">17</option>
421
- <option value="18">18</option>
422
- <option value="19">19</option>
423
- <option value="20">20</option>
424
- <option value="21">21</option>
425
- <option value="22">22</option>
426
- <option value="23">23</option>
427
- <option value="24">24</option>
428
- <option value="25">25</option>
429
- <option value="26">26</option>
430
- <option value="27">27</option>
431
- <option value="28">28</option>
432
- <option value="29">29</option>
433
- <option value="30">30</option>
434
- <option value="31">31</option>
435
- <option value="32">32</option>
436
- <option value="33">33</option>
437
- <option value="34">34</option>
438
- <option value="35">35</option>
439
- <option value="36">36</option>
440
- <option value="37">37</option>
441
- <option value="38">38</option>
442
- <option value="39">39</option>
443
- <option value="40">40</option>
444
- <option value="41">41</option>
445
- <option value="42">42</option>
446
- <option value="43">43</option>
447
- <option value="44">44</option>
448
- <option value="45">45</option>
449
- <option value="46">46</option>
450
- <option value="47">47</option>
451
- <option value="48">48</option>
452
- <option value="49">49</option>
453
- <option value="50">50</option>
454
- <option value="51">51</option>
455
- <option value="52">52</option>
456
- <option value="53">53</option>
457
- <option value="54">54</option>
458
- <option value="55">55</option>
459
- <option value="56">56</option>
460
- <option value="57">57</option>
461
- <option value="58">58</option>
462
- <option value="59">59</option>
463
- </select>
464
-
465
- </div>
466
- <div class="field">
467
- <label for="foo_twelve">Twelve</label><br />
468
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_twelve_1i" name="foo[twelve(1i)]">
469
- <option value=""></option>
470
- <option value="2006">2006</option>
471
- <option value="2007">2007</option>
472
- <option value="2008">2008</option>
473
- <option value="2009">2009</option>
474
- <option value="2010">2010</option>
475
- <option value="2011">2011</option>
476
- <option value="2012">2012</option>
477
- <option value="2013">2013</option>
478
- <option value="2014">2014</option>
479
- <option value="2015">2015</option>
480
- <option value="2016">2016</option>
481
- </select>
482
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_twelve_2i" name="foo[twelve(2i)]">
483
- <option value=""></option>
484
- <option value="1">January</option>
485
- <option value="2">February</option>
486
- <option value="3">March</option>
487
- <option value="4">April</option>
488
- <option value="5">May</option>
489
- <option value="6">June</option>
490
- <option value="7">July</option>
491
- <option value="8">August</option>
492
- <option value="9">September</option>
493
- <option value="10">October</option>
494
- <option value="11">November</option>
495
- <option value="12">December</option>
496
- </select>
497
- <select data-validate="[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;activerecord errors messages blank&quot;}}]" id="foo_twelve_3i" name="foo[twelve(3i)]">
498
- <option value=""></option>
499
- <option value="1">1</option>
500
- <option value="2">2</option>
501
- <option value="3">3</option>
502
- <option value="4">4</option>
503
- <option value="5">5</option>
504
- <option value="6">6</option>
505
- <option value="7">7</option>
506
- <option value="8">8</option>
507
- <option value="9">9</option>
508
- <option value="10">10</option>
509
- <option value="11">11</option>
510
- <option value="12">12</option>
511
- <option value="13">13</option>
512
- <option value="14">14</option>
513
- <option value="15">15</option>
514
- <option value="16">16</option>
515
- <option value="17">17</option>
516
- <option value="18">18</option>
517
- <option value="19">19</option>
518
- <option value="20">20</option>
519
- <option value="21">21</option>
520
- <option value="22">22</option>
521
- <option value="23">23</option>
522
- <option value="24">24</option>
523
- <option value="25">25</option>
524
- <option value="26">26</option>
525
- <option value="27">27</option>
526
- <option value="28">28</option>
527
- <option value="29">29</option>
528
- <option value="30">30</option>
529
- <option value="31">31</option>
530
- </select>
531
-
532
- </div>
533
-
534
- <div class="actions">
535
- <input id="foo_submit" name="commit" type="submit" value="Create Foo" />
536
- </div>
537
- </form>
538
-