Browse Source
* add year filter * update text and filter order * fix typo * extract partials * add tests with 2 filters * Allow OR filters within scope categories and AND filters across them * Rubocop * Remove some of the N+1 query madness by preloading required organisations * Refactor scopes * Fix new specs * unticked checkboxes by deault * fix test Co-authored-by: baarkerlounger <db@slothlife.xyz> Co-authored-by: baarkerlounger <5101747+baarkerlounger@users.noreply.github.com>pull/468/head
kosiakkatrina
3 years ago
committed by
GitHub
8 changed files with 172 additions and 53 deletions
@ -0,0 +1,10 @@
|
||||
<%= f.govuk_check_boxes_fieldset category.to_sym, legend: { text: label, size: "s"} do %> |
||||
<div class="govuk-checkboxes govuk-checkboxes--small" data-module="govuk-checkboxes"> |
||||
<% options.map do |key, option| %> |
||||
<%= f.govuk_check_box category, "#{key}", |
||||
label: { text: option }, |
||||
checked: filter_selected?(category, key), |
||||
size: "s" %> |
||||
<% end %> |
||||
</div> |
||||
<% end %> |
Loading…
Reference in new issue