Show More
Commit Description:
fixed form_tag/form_for, disabled attributes whitelist
Commit Description:
fixed form_tag/form_for, disabled attributes whitelist
File last commit:
Show/Diff file:
Action:
app/views/problems/manage.html.haml | 44 lines | 1.3 KiB | text/x-haml | HamlLexer |
- 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 GraderConfiguration.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 GraderConfiguration.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 GraderConfiguration.multicontests?
%td
- problem.contests.each do |contest|
= "(#{contest.name} [#{link_to 'x', :action => 'remove_contest', :id => problem.id, :contest_id => contest.id }])"