From 085c4cd61f9202438207ae9515d603adb511867e Mon Sep 17 00:00:00 2001 From: Daniel Bucci Date: Fri, 6 Feb 2015 23:26:19 -0500 Subject: [PATCH] Add Category Editing back to assessments#edit --- app/views/assessments/_edit_basic.html.erb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/views/assessments/_edit_basic.html.erb b/app/views/assessments/_edit_basic.html.erb index 4d080e540..bf6fc8e71 100755 --- a/app/views/assessments/_edit_basic.html.erb +++ b/app/views/assessments/_edit_basic.html.erb @@ -2,15 +2,11 @@ <%= f.text_field :display_name, help_text: "Name that will be displayed on the course home page. E.g., 'Malloc Lab'" %> -<%= #f.label :category -%> -<%= -#f.collection_select :category, @course.assessment_categories, :id, :name, selected: @assessment.category.id -%> - +
+ <%= f.label :category_id %> + <%= f.collection_select :category_id, @course.assessment_categories, :id, :name, {selected: @assessment.category.id}, {class: "form-control"} %> +

You can create a new category <%= link_to "here", new_course_assessment_category_path %>.

+

Modules Used

<%= f.check_box :has_autograde%>