Show More
Commit Description:
+task description...
Commit Description:
+task description git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@43 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/main/list.rhtml | 50 lines | 1.2 KiB | text/html+ruby | RhtmlLexer |
<h1>Hello <%=h @user.full_name %></h1>
(<%= Time.new %>)
<div class="submitbox">
<% 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 %>
</div>
<hr/>
<p style="color: red"><%= flash[:notice] %></p>
<div class="problist">
<% i = 0 %>
<% @problems.each do |p| %>
<div class="problist-each">
<div class="probname">
<%= "#{i+1}: #{p.full_name} (#{p.name})" %>
<%= link_to '[task description]', p.url if p.url!=nil %>
</div>
<div class="subinfo">
<%= format_submission(@prob_submissions[i][1],
@prob_submissions[i][0]) %>
</div>
</div>
<% i = i+1 %>
<% end %>
</div>
<br />
<hr />
<br />
<div class="submitbox">
<% 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 %>
</div>