- content_for :head do = stylesheet_link_tag 'problems' = javascript_include_tag :defaults %h1 Manage problems %p= link_to '[Back to problem list]', :action => 'list' - form_tag :action=>'do_manage' do .submitbox What do you want to do? %br/ %ul %li Change date added to = select_date Date.current, :prefix => 'date_added'     = submit_tag 'Change', :name => 'change_date_added' - if Configuration.multicontests? %li Add to = select("contest","id",Contest.all.collect {|c| [c.title, c.id]}) = submit_tag 'Add', :name => 'add_to_contest' %table %tr %th/ %th Name %th Full name %th Date added - if Configuration.multicontests? %th Contests - for problem in @problems %tr{:id => "row-prob-#{problem.id}", :name=> "prob-#{problem.id}"} %td= check_box_tag "prob-#{problem.id}" %td= problem.name %td= problem.full_name %td= problem.date_added - if Configuration.multicontests? %td - problem.contests.each do |contest| = "(#{contest.name} [#{link_to 'x', :action => 'remove_contest', :id => problem.id, :contest_id => contest.id }])"