<% content_for :head do %> <%= stylesheet_link_tag 'problems' %> <% end %>

Listing problems

<%= link_to '[New problem]', :action => 'new' %> <%= link_to '[Manage problems]', :action => 'manage' %> <%= link_to '[Import problems]', :action => 'import' %> <%= link_to '[Turn off all problems]', :action => 'turn_all_off' %> <%= link_to '[Turn on all problems]', :action => 'turn_all_on' %>

<%= form_tag :action => 'quick_create' do %> Quick New: <%= text_field 'problem', 'name' %> | <%= text_field 'problem', 'full_name' %> <%= submit_tag "Create" %> <% end %>
<% if GraderConfiguration.multicontests? %> <% end %> <% for problem in @problems %> "> <% @problem=problem %> <% if GraderConfiguration.multicontests? %> <% end %> <% end %>
Name Full name Full score Date added Avail? Test?Contests
<%= in_place_editor_field :problem, :name, {}, :rows=>1 %> <%= in_place_editor_field :problem, :full_name, {}, :rows=>1 %> <%= in_place_editor_field :problem, :full_score, {}, :rows=>1 %> <%= problem.date_added %> <%= problem.available %> <%= problem.test_allowed %> <%= problem.contests.collect { |c| c.name }.join(', ') %> <%= link_to '[Toggle]', {:action => 'toggle', :id => problem.id }, :remote => true %> <%= link_to '[Stat]', :action => 'stat', :id => problem.id %> <%= link_to '[Show]', :action => 'show', :id => problem %> <%= link_to '[Edit]', :action => 'edit', :id => problem %> <%= link_to '[Destroy]', { :action => 'destroy', :id => problem }, :confirm => 'Are you sure?', :method => :post %>

<%= link_to '[New problem]', :action => 'new' %>