<%= error_messages_for 'problem' %>


<%= text_field 'problem', 'name' %> Do not directly edit the problem name, unless you know what you are doing. If you want to change the name, use the name change button in the problem management menu instead.


<%= text_field 'problem', 'full_name' %>


<%= text_field 'problem', 'full_score' %>


<%= date_select 'problem', 'date_added' %>

<% # TODO: these should be put in model Problem, but I can't think of # nice default values for them. These values look fine only # in this case (of lazily adding new problems). @problem.available = true if @problem!=nil and @problem.available==nil @problem.test_allowed = true if @problem!=nil and @problem.test_allowed==nil @problem.output_only = false if @problem!=nil and @problem.output_only==nil %>

<%= check_box :problem, :available %> <%= check_box :problem, :test_allowed %> <%= check_box :problem, :output_only %>

<%= error_messages_for 'description' %>


<%= text_area :description, :body, :rows => 10, :cols => 80 %>

<%= select "description", "markdowned", [['True',true],['False',false]], {:selected => (@description) ? @description.markdowned : false } %>


<%= text_field 'problem', 'url' %>

Task PDF <%= file_field_tag 'file' %>