16 changed files with 20 additions and 166 deletions
@ -1,30 +0,0 @@
|
||||
<%= form_with html: { method: :get }, url: filters_update_owned_by_lettings_logs_path do |f| %> |
||||
<%= render partial: "filters/radio_filter", locals: { |
||||
f:, |
||||
options: { |
||||
"all": { label: "Any owning organisation" }, |
||||
"specific_org": { |
||||
label: "Specific owning organisation", |
||||
conditional_filter: { |
||||
type: "select", |
||||
label: "Owning Organisation", |
||||
category: "owning_organisation", |
||||
options: owning_organisation_filter_options(current_user), |
||||
}, |
||||
}, |
||||
}, |
||||
label: "Owned by", |
||||
category: "owning_organisation_select", |
||||
size: "l", |
||||
} %> |
||||
|
||||
<% if request.params["search"].present? %> |
||||
<%= f.hidden_field :search, value: request.params["search"] %> |
||||
<% end %> |
||||
<%= f.hidden_field :codes_only, value: request.params["codes_only"] %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Save changes" %> |
||||
<%= govuk_button_link_to "Cancel", csv_download_lettings_logs_path(search: request.params["search"], codes_only: request.params["codes_only"]), secondary: true %> |
||||
</div> |
||||
<% end %> |
||||
@ -1,20 +0,0 @@
|
||||
<%= form_with html: { method: :get }, url: filters_update_status_lettings_logs_path do |f| %> |
||||
<%= render partial: "filters/checkbox_filter", |
||||
locals: { |
||||
f:, |
||||
options: status_filters, |
||||
label: "Status", |
||||
category: "status", |
||||
size: "l", |
||||
} %> |
||||
|
||||
<% if request.params["search"].present? %> |
||||
<%= f.hidden_field :search, value: request.params["search"] %> |
||||
<% end %> |
||||
<%= f.hidden_field :codes_only, value: request.params["codes_only"] %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Save changes" %> |
||||
<%= govuk_button_link_to "Cancel", csv_download_lettings_logs_path(search: request.params["search"], codes_only: request.params["codes_only"]), secondary: true %> |
||||
</div> |
||||
<% end %> |
||||
@ -1,32 +0,0 @@
|
||||
<%= form_with html: { method: :get }, url: filters_update_assigned_to_sales_logs_path do |f| %> |
||||
<%= render partial: "filters/radio_filter", |
||||
locals: { |
||||
f:, |
||||
options: { |
||||
"all": { label: "Any user" }, |
||||
"you": { label: "You" }, |
||||
"specific_user": { |
||||
label: "Specific user", |
||||
conditional_filter: { |
||||
type: "select", |
||||
label: "User", |
||||
category: "user", |
||||
options: assigned_to_filter_options(current_user), |
||||
}, |
||||
}, |
||||
}, |
||||
label: "Assigned to", |
||||
category: "assigned_to", |
||||
size: "l", |
||||
} %> |
||||
|
||||
<% if request.params["search"].present? %> |
||||
<%= f.hidden_field :search, value: request.params["search"] %> |
||||
<% end %> |
||||
<%= f.hidden_field :codes_only, value: request.params["codes_only"] %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Save changes" %> |
||||
<%= govuk_button_link_to "Cancel", csv_download_sales_logs_path(search: request.params["search"], codes_only: request.params["codes_only"]), secondary: true %> |
||||
</div> |
||||
<% end %> |
||||
@ -1,30 +0,0 @@
|
||||
<%= form_with html: { method: :get }, url: filters_update_manaed_by_sales_logs_path do |f| %> |
||||
<%= render partial: "filters/radio_filter", locals: { |
||||
f:, |
||||
options: { |
||||
"all": { label: "Any managing organisation" }, |
||||
"specific_org": { |
||||
label: "Specific managing organisation", |
||||
conditional_filter: { |
||||
type: "select", |
||||
label: "Reported by", |
||||
category: "managing_organisation", |
||||
options: managing_organisation_filter_options(current_user), |
||||
}, |
||||
}, |
||||
}, |
||||
label: "Reported by", |
||||
category: "managing_organisation_select", |
||||
size: "l", |
||||
} %> |
||||
|
||||
<% if request.params["search"].present? %> |
||||
<%= f.hidden_field :search, value: request.params["search"] %> |
||||
<% end %> |
||||
<%= f.hidden_field :codes_only, value: request.params["codes_only"] %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Save changes" %> |
||||
<%= govuk_button_link_to "Cancel", csv_download_sales_logs_path(search: request.params["search"], codes_only: request.params["codes_only"]), secondary: true %> |
||||
</div> |
||||
<% end %> |
||||
@ -1,36 +0,0 @@
|
||||
<%= form_with html: { method: :get }, url: filters_update_years_sales_logs_path do |f| %> <% if params["error"].present? %> |
||||
<div class="govuk-error-summary" data-module="govuk-error-summary"> |
||||
<div role="alert"> |
||||
<h2 class="govuk-error-summary__title"> |
||||
There is a problem |
||||
</h2> |
||||
<div class="govuk-error-summary__body"> |
||||
<ul class="govuk-list govuk-error-summary__list"> |
||||
<li> |
||||
<a href="#"><%= params["error"] %></a> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
|
||||
<%= render partial: "filters/radio_filter", |
||||
locals: { |
||||
f:, |
||||
options: collection_year_radio_options, |
||||
label: "Which financial year do you want to download data for?", |
||||
category: "years", |
||||
size: "l", |
||||
} %> |
||||
|
||||
<% if request.params["search"].present? %> |
||||
<%= f.hidden_field :search, value: request.params["search"] %> |
||||
<% end %> |
||||
<%= f.hidden_field :codes_only, value: request.params["codes_only"] %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Save changes" %> |
||||
<%= govuk_button_link_to "Cancel", sales_logs_path, secondary: true %> |
||||
</div> |
||||
<% end %> |
||||
Loading…
Reference in new issue