|
|
|
|
@ -55,7 +55,7 @@
|
|
|
|
|
type: "select", |
|
|
|
|
label: "User", |
|
|
|
|
category: "user", |
|
|
|
|
options: assigned_to_filter_options(@current_user), |
|
|
|
|
options: assigned_to_filter_options(current_user), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
@ -63,7 +63,7 @@
|
|
|
|
|
category: "assigned_to", |
|
|
|
|
} %> |
|
|
|
|
|
|
|
|
|
<% if @current_user.support? || @current_user.organisation.stock_owners.count > 1 && request.path == "/lettings-logs" %> |
|
|
|
|
<% if current_user.support? || current_user.organisation.stock_owners.count > 1 && request.path == "/lettings-logs" %> |
|
|
|
|
<%= render partial: "filters/radio_filter", locals: { |
|
|
|
|
f:, |
|
|
|
|
options: { |
|
|
|
|
@ -74,7 +74,7 @@
|
|
|
|
|
type: "select", |
|
|
|
|
label: "Owning Organisation", |
|
|
|
|
category: "owning_organisation", |
|
|
|
|
options: owning_organisation_filter_options(@current_user), |
|
|
|
|
options: owning_organisation_filter_options(current_user), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
@ -83,7 +83,7 @@
|
|
|
|
|
} %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<% if (@current_user.support? || @current_user.organisation.managing_agents.count > 1) && request.path == "/lettings-logs" %> |
|
|
|
|
<% if (current_user.support? || current_user.organisation.managing_agents.count > 1) && request.path == "/lettings-logs" %> |
|
|
|
|
<%= render partial: "filters/radio_filter", locals: { |
|
|
|
|
f:, |
|
|
|
|
options: { |
|
|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
type: "select", |
|
|
|
|
label: "Managed by", |
|
|
|
|
category: "managing_organisation", |
|
|
|
|
options: managing_organisation_filter_options(@current_user), |
|
|
|
|
options: managing_organisation_filter_options(current_user), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
|