# HG changeset patch # User jittat # Date 2008-01-17 15:09:37 # Node ID c26a2fa9de8ca1014c0928931ade401f028c9af2 # Parent 1828434e55cd47303ddfb56ff412872995712dcc add another submission box git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@18 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/views/main/list.rhtml b/app/views/main/list.rhtml --- a/app/views/main/list.rhtml +++ b/app/views/main/list.rhtml @@ -8,6 +8,17 @@

<%= flash[:notice] %>

+
+<% form_tag({:action => 'submit'}, :multipart => true) do %> +Problem: <%= select 'submission', 'problem_id', + [['Specified in header','-1']] + + @problems.collect {|p| [p.full_name, p.id]}, + :selected => '-1' %> +File: <%= file_field_tag 'file' %> +<%= submit_tag 'Submit' %> +<% end %> +
+
<% i = 0 %> <% @problems.each do |p| %>