Skip to content

Commit

Permalink
added guidance on score values
Browse files Browse the repository at this point in the history
  • Loading branch information
cellio committed Oct 19, 2023
1 parent 2c992d8 commit c41d27f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/search/_filters.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
<% if user_signed_in? && defined? @category %>
<%= label_tag :save_as_default, 'Is default for this category?' %>
<%= check_box_tag :save_as_default, @category.id, false, { class: 'filter-is-default form-checkbox-element' } %>
<% end %>
<% end %>
<div class="form-group-horizontal">
<div class="form-group">
<%= label_tag :min_score, 'Min Score', class: "form-element" %>
<%= label_tag :min_score, 'Min Score (8-1)', class: "form-element" %>
<%= number_field_tag :min_score, @active_filter[:min_score],
min: 0, max: 1, step: 0.01, class: 'form-element form--filter',
data: { name: 'min_score' } %>
</div>
<div class="form-group">
<%= label_tag :max_score, 'Max Score', class: "form-element" %>
<%= label_tag :max_score, 'Max Score (0-1)', class: "form-element" %>
<%= number_field_tag :max_score, @active_filter[:max_score],
min: 0, max: 1, step: 0.01, class: 'form-element form--filter',
data: { name: 'max_score' } %>
Expand All @@ -58,6 +58,9 @@
data: { name: 'status' } %>
</div>
</div>
<div>
<a href="/help/scoring">How scores are computed</a>
</div>
<div class="form-group-horizontal">
<div class="form-group">
<%= label_tag :include_tags, 'Include Tags', class: "form-element" %>
Expand Down

0 comments on commit c41d27f

Please sign in to comment.