Skip to content

Commit

Permalink
fix #382: case classification radio buttons (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong authored May 25, 2018
1 parent 45d2ffa commit 0718638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/cases/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= simple_form_for([@case]) do |f| %>
<div class="form-inputs col-xs-12">
<%= f.input :title, placeholder: "Case title", label: false %>
<%= f.input :classification, placeholder: "Case classification", label: false %>
<%= f.input :classification, as: :radio_buttons, collection: [['blocker', 0], ['bad', 2], ['neutral', 5], ['good', 8]], hint: "Choose your rating" %>
<%= f.input :score, placeholder: "Score", label: false %>
<%= f.association :topic, collection: Topic.order('title ASC'), hint: "Pick the topic where the case applies" %>
<%= f.input :description, as: :text , input_html: { rows: 3, class: "text-area" } %>
Expand Down

0 comments on commit 0718638

Please sign in to comment.