Description:
update hint on test interface git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@99 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r47:8e86fa31d739 - - 1 file changed: 1 inserted, 1 deleted

@@ -17,57 +17,57
17 submissionSelect.options.length = 0;
17 submissionSelect.options.length = 0;
18 for(i=0; i<count; i++) {
18 for(i=0; i<count; i++) {
19 submissionSelect.options[i] = new Option(""+(i+1),""+(i+1),false,false);
19 submissionSelect.options[i] = new Option(""+(i+1),""+(i+1),false,false);
20 }
20 }
21 }
21 }
22 </script>
22 </script>
23
23
24 <% form_for :test_request, nil,
24 <% form_for :test_request, nil,
25 :url => { :action => 'submit'},
25 :url => { :action => 'submit'},
26 :html => { :multipart => true } do |f| %>
26 :html => { :multipart => true } do |f| %>
27 <table>
27 <table>
28 <tr>
28 <tr>
29 <td>Task:</td>
29 <td>Task:</td>
30 <td>
30 <td>
31 <%= select(:test_request,
31 <%= select(:test_request,
32 :problem_id,
32 :problem_id,
33 @problems.collect {|p| [p.name, p.id]}, {},
33 @problems.collect {|p| [p.name, p.id]}, {},
34 { :onclick => "updateSubmissionList();" }) %>
34 { :onclick => "updateSubmissionList();" }) %>
35 </td>
35 </td>
36 </tr>
36 </tr>
37 <tr>
37 <tr>
38 <td>Submission:</td>
38 <td>Submission:</td>
39 <td>
39 <td>
40 <%= select(:test_request,
40 <%= select(:test_request,
41 :submission_number,
41 :submission_number,
42 (1..@submissions[0].number).collect {|n| [n,n]}) %>
42 (1..@submissions[0].number).collect {|n| [n,n]}) %>
43 </td>
43 </td>
44 </tr>
44 </tr>
45 <tr>
45 <tr>
46 <td>Input data:</td>
46 <td>Input data:</td>
47 <td><%= f.file_field :input_file %></td>
47 <td><%= f.file_field :input_file %></td>
48 <tr>
48 <tr>
49 <td colspan="2">
49 <td colspan="2">
50 <%= submit_tag 'submit' %>
50 <%= submit_tag 'submit' %>
51 </td>
51 </td>
52 </tr>
52 </tr>
53 </table>
53 </table>
54 <% end %>
54 <% end %>
55
55
56 <h3>Previous requests</h3>
56 <h3>Previous requests</h3>
57
57
58 <table border="1">
58 <table border="1">
59 <tr>
59 <tr>
60 <th></td>
60 <th></td>
61 <th>problem</th>
61 <th>problem</th>
62 <th>#</th>
62 <th>#</th>
63 <th>status</th>
63 <th>status</th>
64 <th>running stat</th>
64 <th>running stat</th>
65 - <th>output</th>
65 + <th>output (first 2kb)</th>
66 <th>grading comment</th>
66 <th>grading comment</th>
67 <th>compiler message</th>
67 <th>compiler message</th>
68 </tr>
68 </tr>
69 <%= render :partial => 'test_request', :collection => @user.test_requests %>
69 <%= render :partial => 'test_request', :collection => @user.test_requests %>
70 </table>
70 </table>
71
71
72 <% end %>
72 <% end %>
73
73
You need to be logged in to leave comments. Login now