Find your ideal property effortlessly. Browse, filter, and explore with ease.
<%= link_to "Login", new_user_session_path, class: "btn btn-outline-primary btn-lg fw-semibold rounded-pill shadow-sm" %>
<%= form_with url: root_path, method: :get,
data: { controller: "property-filters", action: "change->property-filters#change" },
id: "filters-form" do %>
<%= label_tag :project_id, "Filter by Project", class: "form-label" %>
<%= select_tag :project_id,
options_from_collection_for_select(current_onboard_client.projects, :id, :name, params[:project_id]),
include_blank: "All Projects",
class: "form-select slim-project" %>
<%= label_tag :min_price_psm, "Min Price/m²", class: "form-label" %>
<%= number_field_tag :min_price_psm, params[:min_price_psm],
class: "form-control",
data: { action: "input->property-filters#input" } %>
<%= label_tag :max_price_psm, "Max Price/m²", class: "form-label" %>
<%= number_field_tag :max_price_psm, params[:max_price_psm],
class: "form-control",
data: { action: "input->property-filters#input" } %>
<%= label_tag :min_sale_value, "Min Sale Value", class: "form-label" %>
<%= number_field_tag :min_sale_value, params[:min_sale_value],
class: "form-control",
data: { action: "input->property-filters#input" } %>
<%= label_tag :max_sale_value, "Max Sale Value", class: "form-label" %>
<%= number_field_tag :max_sale_value, params[:max_sale_value],
class: "form-control",
data: { action: "input->property-filters#input" } %>
<%= render partial: "properties_list", locals: { properties: @properties } %>