|
1 | 1 | <div class="form-login">
|
2 | 2 | <div class="row row-form">
|
3 |
| - <%= simple_form_for([@case]) do |f| %> |
| 3 | + <%= simple_form_for([case_obj]) do |f| %> |
4 | 4 | <div class="form-inputs col-xs-12">
|
5 | 5 | <%= f.input :title, placeholder: "Case title", label: 'Title' %>
|
6 | 6 | <%= f.input :classification, as: :radio_buttons, collection: [['blocker', 'blocker'], ['bad', 'bad'], ['neutral', 'neutral'], ['good', 'good']] %>
|
7 |
| - <%= f.input :score, placeholder: 50, input_html: { min: 0, max: 100, value: @case.score || 50 }, label: 'Weight', hint: "Range: 0..100. Higher weights make good points extra good, and bad/blocker points extra bad. Higher weight points have more impact on a service's rating, and are also displayed more prominently in the review summaries on <a href=\"https://tosdr.org\">ToS;DR</a>.".html_safe %> |
8 |
| - <%= f.association :topic, collection: Topic.order('title ASC'), hint: "Pick the topic where the case applies" %> |
| 7 | + <%= f.input :score, placeholder: 50, input_html: { min: 0, max: 100, value: case_obj.score || 50 }, label: 'Weight', hint: "Range: 0..100. Higher weights make good points extra good, and bad/blocker points extra bad. Higher weight points have more impact on a service's rating, and are also displayed more prominently in the review summaries on <a href=\"https://tosdr.org\">ToS;DR</a>.".html_safe %> |
| 8 | + <%= f.association :topic, collection: topics, hint: "Pick the topic where the case applies" %> |
9 | 9 | <%= f.input :description, as: :text , input_html: { rows: 3, class: "text-area" } %>
|
10 | 10 | <%= f.input :docbot_regex, label: 'DocBot Regex', hint: "(Optional) Regex for use in the DocBot Server. Insert nothing if you do not know what this is." %>
|
11 | 11 | <%= f.input :privacy_related, label: "This case is related to privacy, meaning it will affect <a href=\"https://spreadprivacy.com/privacy-simplified/\">DuckDuckGo's Privacy Grade</a>.".html_safe, checked_value: true, unchecked_value: false %>
|
|
0 commit comments