Show More
Commit Description:
fixed form_tag/form_for, disabled attributes whitelist
Commit Description:
fixed form_tag/form_for, disabled attributes whitelist
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/manage.html.haml
| 44 lines
| 1.3 KiB
| text/x-haml
| HamlLexer
|
|
r201 | - content_for :head do | ||
= stylesheet_link_tag 'problems' | ||||
= javascript_include_tag :defaults | ||||
%h1 Manage problems | ||||
%p= link_to '[Back to problem list]', :action => 'list' | ||||
|
r321 | = form_tag :action=>'do_manage' do | ||
|
r201 | .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' | ||||
|
r279 | |||
|
r320 | - if GraderConfiguration.multicontests? | ||
|
r279 | %li | ||
Add to | ||||
= select("contest","id",Contest.all.collect {|c| [c.title, c.id]}) | ||||
= submit_tag 'Add', :name => 'add_to_contest' | ||||
|
r201 | %table | ||
%tr | ||||
%th/ | ||||
%th Name | ||||
%th Full name | ||||
%th Date added | ||||
|
r320 | - if GraderConfiguration.multicontests? | ||
|
r279 | %th Contests | ||
|
r201 | |||
- 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 | ||||
|
r320 | - if GraderConfiguration.multicontests? | ||
|
r279 | %td | ||
- problem.contests.each do |contest| | ||||
= "(#{contest.name} [#{link_to 'x', :action => 'remove_contest', :id => problem.id, :contest_id => contest.id }])" | ||||