Skip to content

Commit

Permalink
Merge pull request #259 from autolab/hotfix_assessment_category_edit
Browse files Browse the repository at this point in the history
Add Category Editing back to assessments#edit
  • Loading branch information
Ilter committed Feb 7, 2015
2 parents 16f7ed6 + 085c4cd commit 63f7cdc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions app/views/assessments/_edit_basic.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
%>
<!--<td style="border:0px;width:200px;" class="smallText"> You can create a new category <%=
#link_to "here", new_course_assessment_category_path
%>.
</td><br></br> -->
<div class="form-group">
<%= f.label :category_id %>
<%= f.collection_select :category_id, @course.assessment_categories, :id, :name, {selected: @assessment.category.id}, {class: "form-control"} %>
<p class="help-block">You can create a new category <%= link_to "here", new_course_assessment_category_path %>.</p>
</div>
<hr>
<h4>Modules Used</h4>
<%= f.check_box :has_autograde%>
Expand Down

0 comments on commit 63f7cdc

Please sign in to comment.