21 changed files with 425 additions and 76 deletions
@ -1,8 +1,18 @@
|
||||
<%= f.govuk_radio_buttons_fieldset category.to_sym, legend: { text: label, size: "s" }, small: true, form_group: { classes: "app-filter__group" } do %> |
||||
<% options.map do |key, option| %> |
||||
<%= f.govuk_radio_button category, key.to_s, |
||||
label: { text: option }, |
||||
label: { text: option[:label] }, |
||||
checked: filter_selected?(category, key), |
||||
size: "s" %> |
||||
size: "s" do %> |
||||
<% if option[:conditional_filter] %> |
||||
<%= render partial: "filters/#{option[:conditional_filter][:type]}_filter", locals: { |
||||
f:, |
||||
collection: option[:conditional_filter][:options], |
||||
category: option[:conditional_filter][:category], |
||||
label: option[:conditional_filter][:label], |
||||
secondary: true, |
||||
} %> |
||||
<% end %> |
||||
<% end %> |
||||
<% end %> |
||||
<% end %> |
||||
|
@ -0,0 +1,7 @@
|
||||
<%= f.govuk_collection_select category.to_sym, |
||||
collection, |
||||
:id, |
||||
:name, |
||||
label: { hidden: secondary }, |
||||
options: { disabled: [""], selected: selected_option(category) }, |
||||
"data-controller": "accessible-autocomplete" %> |
@ -0,0 +1,5 @@
|
||||
class AddStartedAt < ActiveRecord::Migration[7.0] |
||||
def change |
||||
add_column :logs_exports, :started_at, :datetime |
||||
end |
||||
end |
Loading…
Reference in new issue