Description:
fix link back to problems in problems path
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r589:9e1cc9dd0e9a - - 2 files changed: 2 inserted, 2 deleted
@@ -1,18 +1,18 | |||||
|
1 | - content_for :head do |
|
1 | - content_for :head do |
|
2 | = stylesheet_link_tag 'problems' |
|
2 | = stylesheet_link_tag 'problems' |
|
3 |
|
3 | ||
|
4 | %h1 Import problems: successful |
|
4 | %h1 Import problems: successful |
|
5 |
|
5 | ||
|
6 | %p |
|
6 | %p |
|
7 | %b Problem: |
|
7 | %b Problem: |
|
8 | = "#{@problem.full_name} (#{@problem.name})" |
|
8 | = "#{@problem.full_name} (#{@problem.name})" |
|
9 | %br/ |
|
9 | %br/ |
|
10 | = "Note that the full score has been set to #{@problem.full_score}." |
|
10 | = "Note that the full score has been set to #{@problem.full_score}." |
|
11 |
|
11 | ||
|
12 | %p |
|
12 | %p |
|
13 |
- = link_to '[Back to problem list]', |
|
13 | + = link_to '[Back to problem list]', problems_path |
|
14 | = link_to '[Import other problems]', :action => 'import' |
|
14 | = link_to '[Import other problems]', :action => 'import' |
|
15 |
|
15 | ||
|
16 | %h3 Import log |
|
16 | %h3 Import log |
|
17 | %pre.import-log |
|
17 | %pre.import-log |
|
18 | = @log |
|
18 | = @log |
@@ -1,30 +1,30 | |||||
|
1 | - content_for :head do |
|
1 | - content_for :head do |
|
2 | = stylesheet_link_tag 'problems' |
|
2 | = stylesheet_link_tag 'problems' |
|
3 |
|
3 | ||
|
4 | %h1 Import problems |
|
4 | %h1 Import problems |
|
5 |
|
5 | ||
|
6 |
- %p= link_to '[Back to problem list]', |
|
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 | = form_tag({:action => 'do_import'}, :multipart => true) do |
|
11 | = form_tag({:action => 'do_import'}, :multipart => true) do |
|
12 | .submitbox |
|
12 | .submitbox |
|
13 | %table |
|
13 | %table |
|
14 | %tr |
|
14 | %tr |
|
15 | %td Name: |
|
15 | %td Name: |
|
16 | %td= text_field_tag 'name' |
|
16 | %td= text_field_tag 'name' |
|
17 | %tr |
|
17 | %tr |
|
18 | %td Full name: |
|
18 | %td Full name: |
|
19 | %td |
|
19 | %td |
|
20 | = text_field_tag 'full_name' |
|
20 | = text_field_tag 'full_name' |
|
21 | %span{:class => 'help'} Leave blank to use the same value as the name above. |
|
21 | %span{:class => 'help'} Leave blank to use the same value as the name above. |
|
22 | %tr |
|
22 | %tr |
|
23 | %td Testdata file: |
|
23 | %td Testdata file: |
|
24 | %td= file_field_tag 'file' |
|
24 | %td= file_field_tag 'file' |
|
25 | %tr |
|
25 | %tr |
|
26 | %td |
|
26 | %td |
|
27 | %td |
|
27 | %td |
|
28 | %span{:class => 'help'} |
|
28 | %span{:class => 'help'} |
|
29 | In .zip, .tgz, tar.gz, .tar format. |
|
29 | In .zip, .tgz, tar.gz, .tar format. |
|
30 | It should includes inputs (e.g., 1.in, 2a.in, 2b.in) |
|
30 | It should includes inputs (e.g., 1.in, 2a.in, 2b.in) |
You need to be logged in to leave comments.
Login now