Skip to content

Commit 63f7cdc

Browse files
author
Ilter
committed
Merge pull request #259 from autolab/hotfix_assessment_category_edit
Add Category Editing back to assessments#edit
2 parents 16f7ed6 + 085c4cd commit 63f7cdc

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

app/views/assessments/_edit_basic.html.erb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22

33
<%= f.text_field :display_name, help_text: "Name that will be displayed on the course home page. E.g., 'Malloc Lab'" %>
44

5-
<%= #f.label :category
6-
%>
7-
<%=
8-
#f.collection_select :category, @course.assessment_categories, :id, :name, selected: @assessment.category.id
9-
%>
10-
<!--<td style="border:0px;width:200px;" class="smallText"> You can create a new category <%=
11-
#link_to "here", new_course_assessment_category_path
12-
%>.
13-
</td><br></br> -->
5+
<div class="form-group">
6+
<%= f.label :category_id %>
7+
<%= f.collection_select :category_id, @course.assessment_categories, :id, :name, {selected: @assessment.category.id}, {class: "form-control"} %>
8+
<p class="help-block">You can create a new category <%= link_to "here", new_course_assessment_category_path %>.</p>
9+
</div>
1410
<hr>
1511
<h4>Modules Used</h4>
1612
<%= f.check_box :has_autograde%>

0 commit comments

Comments
 (0)