Description:
add another submission box
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@18 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r7:c26a2fa9de8c - - 1 file changed: 11 inserted, 0 deleted
@@ -8,6 +8,17 | |||||
|
8 |
|
8 | ||
|
9 | <p style="color: red"><%= flash[:notice] %></p> |
|
9 | <p style="color: red"><%= flash[:notice] %></p> |
|
10 |
|
10 | ||
|
|
11 | + <div class="submitbox"> | ||
|
|
12 | + <% form_tag({:action => 'submit'}, :multipart => true) do %> | ||
|
|
13 | + Problem: <%= select 'submission', 'problem_id', | ||
|
|
14 | + [['Specified in header','-1']] + | ||
|
|
15 | + @problems.collect {|p| [p.full_name, p.id]}, | ||
|
|
16 | + :selected => '-1' %> | ||
|
|
17 | + File: <%= file_field_tag 'file' %> | ||
|
|
18 | + <%= submit_tag 'Submit' %> | ||
|
|
19 | + <% end %> | ||
|
|
20 | + </div> | ||
|
|
21 | + | ||
|
11 | <div class="problist"> |
|
22 | <div class="problist"> |
|
12 | <% i = 0 %> |
|
23 | <% i = 0 %> |
|
13 | <% @problems.each do |p| %> |
|
24 | <% @problems.each do |p| %> |
You need to be logged in to leave comments.
Login now