diff --git a/app/views/test/index.html.erb b/app/views/test/index.html.erb --- a/app/views/test/index.html.erb +++ b/app/views/test/index.html.erb @@ -30,61 +30,63 @@ } -
-<%= error_messages_for 'submitted_test_request' %> -<% form_for :test_request, nil, - :url => { :action => 'submit'}, - :html => { :multipart => true } do |f| %> - - - - - - - - - - - - - - - - - - - - - - -
Task: - <%= select(:test_request, - :problem_id, - @problems.collect {|p| [p.name, p.id]}, {}, - { :onclick => "updateSubmissionList();" }) %> -
Submission: - <%= select(:test_request, - :submission_number, - ((1..@submissions[0].number).collect {|n| [n,n]}).reverse) %> -
Input data: - <%= f.file_field :input_file %> - - (combined size should not exceed 2MB) -
- Additional file*: - - <%= f.file_field :additional_file %> - - - * This option works only for task max. - You can use this to submit questions.txt.
- The file shall be copied to the execution directory before your program runs. -
-
- <%= submit_tag 'submit' %> -
+<% if Configuration.show_submitbox_to?(@user) %> +
+ <%= error_messages_for 'submitted_test_request' %> + <% form_for :test_request, nil, + :url => { :action => 'submit'}, + :html => { :multipart => true } do |f| %> + + + + + + + + + + + + + + + + + + + + + + +
Task: + <%= select(:test_request, + :problem_id, + @problems.collect {|p| [p.name, p.id]}, {}, + { :onclick => "updateSubmissionList();" }) %> +
Submission: + <%= select(:test_request, + :submission_number, + ((1..@submissions[0].number).collect {|n| [n,n]}).reverse) %> +
Input data: + <%= f.file_field :input_file %> + + (combined size should not exceed 2MB) +
+ Additional file*: + + <%= f.file_field :additional_file %> + + + * This option works only for task max. + You can use this to submit questions.txt.
+ The file shall be copied to the execution directory before your program runs. +
+
+ <%= submit_tag 'submit' %> +
+ <% end %> +
<% end %> -

Previous requests