Description:
revert simple_form_for to form_tag
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r758:d23edd5adc06 - - 3 files changed: 7 inserted, 26 deleted
@@ -91,13 +91,12 | |||||
|
91 | coffee-script (2.4.1) |
|
91 | coffee-script (2.4.1) |
|
92 | coffee-script-source |
|
92 | coffee-script-source |
|
93 | execjs |
|
93 | execjs |
|
94 | coffee-script-source (1.12.2) |
|
94 | coffee-script-source (1.12.2) |
|
95 | concurrent-ruby (1.1.5) |
|
95 | concurrent-ruby (1.1.5) |
|
96 | crass (1.0.4) |
|
96 | crass (1.0.4) |
|
97 | - diff-lcs (1.3) |
|
||
|
98 | dynamic_form (1.1.4) |
|
97 | dynamic_form (1.1.4) |
|
99 | erubi (1.8.0) |
|
98 | erubi (1.8.0) |
|
100 | erubis (2.7.0) |
|
99 | erubis (2.7.0) |
|
101 | execjs (2.7.0) |
|
100 | execjs (2.7.0) |
|
102 | ffi (1.11.1) |
|
101 | ffi (1.11.1) |
|
103 | fuzzy-string-match (1.0.1) |
|
102 | fuzzy-string-match (1.0.1) |
@@ -208,29 +207,12 | |||||
|
208 | rb-fsevent (0.10.3) |
|
207 | rb-fsevent (0.10.3) |
|
209 | rb-inotify (0.10.0) |
|
208 | rb-inotify (0.10.0) |
|
210 | ffi (~> 1.0) |
|
209 | ffi (~> 1.0) |
|
211 | rdiscount (2.2.0.1) |
|
210 | rdiscount (2.2.0.1) |
|
212 | regexp_parser (1.5.1) |
|
211 | regexp_parser (1.5.1) |
|
213 | rouge (3.3.0) |
|
212 | rouge (3.3.0) |
|
214 | - rspec-core (3.8.2) |
|
||
|
215 | - rspec-support (~> 3.8.0) |
|
||
|
216 | - rspec-expectations (3.8.4) |
|
||
|
217 | - diff-lcs (>= 1.2.0, < 2.0) |
|
||
|
218 | - rspec-support (~> 3.8.0) |
|
||
|
219 | - rspec-mocks (3.8.1) |
|
||
|
220 | - diff-lcs (>= 1.2.0, < 2.0) |
|
||
|
221 | - rspec-support (~> 3.8.0) |
|
||
|
222 | - rspec-rails (3.8.2) |
|
||
|
223 | - actionpack (>= 3.0) |
|
||
|
224 | - activesupport (>= 3.0) |
|
||
|
225 | - railties (>= 3.0) |
|
||
|
226 | - rspec-core (~> 3.8.0) |
|
||
|
227 | - rspec-expectations (~> 3.8.0) |
|
||
|
228 | - rspec-mocks (~> 3.8.0) |
|
||
|
229 | - rspec-support (~> 3.8.0) |
|
||
|
230 | - rspec-support (3.8.2) |
|
||
|
231 | ruby-progressbar (1.10.0) |
|
213 | ruby-progressbar (1.10.0) |
|
232 | ruby_dep (1.5.0) |
|
214 | ruby_dep (1.5.0) |
|
233 | ruby_parser (3.13.1) |
|
215 | ruby_parser (3.13.1) |
|
234 | sexp_processor (~> 4.9) |
|
216 | sexp_processor (~> 4.9) |
|
235 | rubyzip (1.2.3) |
|
217 | rubyzip (1.2.3) |
|
236 | sass (3.7.4) |
|
218 | sass (3.7.4) |
@@ -335,13 +317,12 | |||||
|
335 | puma |
|
317 | puma |
|
336 | rails (~> 5.2) |
|
318 | rails (~> 5.2) |
|
337 | rails-controller-testing |
|
319 | rails-controller-testing |
|
338 | rails_bootstrap_sortable |
|
320 | rails_bootstrap_sortable |
|
339 | rdiscount |
|
321 | rdiscount |
|
340 | rouge |
|
322 | rouge |
|
341 | - rspec-rails |
|
||
|
342 | sassc-rails |
|
323 | sassc-rails |
|
343 | select2-rails |
|
324 | select2-rails |
|
344 | selenium-webdriver |
|
325 | selenium-webdriver |
|
345 | simple_form |
|
326 | simple_form |
|
346 | spring |
|
327 | spring |
|
347 | spring-watcher-listen (~> 2.0.0) |
|
328 | spring-watcher-listen (~> 2.0.0) |
@@ -5,13 +5,13 | |||||
|
5 |
|
5 | ||
|
6 | %p= link_to '[Back to problem list]', problems_path |
|
6 | %p= link_to '[Back to problem list]', problems_path |
|
7 |
|
7 | ||
|
8 | - if @problem and @problem.errors |
|
8 | - if @problem and @problem.errors |
|
9 | =error_messages_for 'problem' |
|
9 | =error_messages_for 'problem' |
|
10 |
|
10 | ||
|
11 |
- = |
|
11 | + = form_tag do_import_problems_path, :multipart => true do |f| |
|
12 |
|
12 | ||
|
13 | .submitbox |
|
13 | .submitbox |
|
14 | %table |
|
14 | %table |
|
15 | %tr |
|
15 | %tr |
|
16 | %td Name: |
|
16 | %td Name: |
|
17 | %td= text_field_tag 'name' |
|
17 | %td= text_field_tag 'name' |
@@ -264,17 +264,17 | |||||
|
264 | seed_roles |
|
264 | seed_roles |
|
265 | seed_root |
|
265 | seed_root |
|
266 | end |
|
266 | end |
|
267 |
|
267 | ||
|
268 | def seed_more_languages |
|
268 | def seed_more_languages |
|
269 | Language.delete_all |
|
269 | Language.delete_all |
|
270 | - Language.create( name: 'c', pretty_name: 'C', ext: 'c', common_ext: 'c' ) |
|
270 | + Language.find_or_create_by( name: 'c', pretty_name: 'C', ext: 'c', common_ext: 'c' ) |
|
271 | - Language.create( name: 'cpp', pretty_name: 'C++', ext: 'cpp', common_ext: 'cpp,cc' ) |
|
271 | + Language.find_or_create_by( name: 'cpp', pretty_name: 'C++', ext: 'cpp', common_ext: 'cpp,cc' ) |
|
272 | - Language.create( name: 'pas', pretty_name: 'Pascal', ext: 'pas', common_ext: 'pas' ) |
|
272 | + Language.find_or_create_by( name: 'pas', pretty_name: 'Pascal', ext: 'pas', common_ext: 'pas' ) |
|
273 | - Language.create( name: 'ruby', pretty_name: 'Ruby', ext: 'rb', common_ext: 'rb' ) |
|
273 | + Language.find_or_create_by( name: 'ruby', pretty_name: 'Ruby', ext: 'rb', common_ext: 'rb' ) |
|
274 | - Language.create( name: 'python', pretty_name: 'Python', ext: 'py', common_ext: 'py' ) |
|
274 | + Language.find_or_create_by( name: 'python', pretty_name: 'Python', ext: 'py', common_ext: 'py' ) |
|
275 | - Language.create( name: 'java', pretty_name: 'Java', ext: 'java', common_ext: 'java' ) |
|
275 | + Language.find_or_create_by( name: 'java', pretty_name: 'Java', ext: 'java', common_ext: 'java' ) |
|
276 | end |
|
276 | end |
|
277 |
|
277 | ||
|
278 | seed_config |
|
278 | seed_config |
|
279 | seed_users_and_roles |
|
279 | seed_users_and_roles |
|
280 | seed_more_languages |
|
280 | seed_more_languages |
You need to be logged in to leave comments.
Login now