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:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r7:c26a2fa9de8c - - 1 file changed: 11 inserted, 0 deleted

@@ -1,34 +1,45
1 <h1>Hello <%=h @user.full_name %></h1>
1 <h1>Hello <%=h @user.full_name %></h1>
2
2
3 <div class="usermenu">
3 <div class="usermenu">
4 <%= user_options %>
4 <%= user_options %>
5 </div>
5 </div>
6
6
7 <hr>
7 <hr>
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| %>
14 <div class="problist-each">
25 <div class="problist-each">
15 <div class="probname">
26 <div class="probname">
16 <%= "#{i+1}: #{p.full_name} (#{p.name})" %>
27 <%= "#{i+1}: #{p.full_name} (#{p.name})" %>
17 </div>
28 </div>
18 <div class="subinfo">
29 <div class="subinfo">
19 <%= format_submission(@prob_submissions[i][1],
30 <%= format_submission(@prob_submissions[i][1],
20 @prob_submissions[i][0]) %>
31 @prob_submissions[i][0]) %>
21 </div>
32 </div>
22 </div>
33 </div>
23 <% i = i+1 %>
34 <% i = i+1 %>
24 <% end %>
35 <% end %>
25 </div>
36 </div>
26
37
27 <br />
38 <br />
28 <hr />
39 <hr />
29 <br />
40 <br />
30
41
31 <div class="submitbox">
42 <div class="submitbox">
32 <% form_tag({:action => 'submit'}, :multipart => true) do %>
43 <% form_tag({:action => 'submit'}, :multipart => true) do %>
33 Problem: <%= select 'submission', 'problem_id',
44 Problem: <%= select 'submission', 'problem_id',
34 [['Specified in header','-1']] +
45 [['Specified in header','-1']] +
You need to be logged in to leave comments. Login now