🛠️

- add show price preference(store in cookies)
This commit is contained in:
2026-06-12 17:36:57 +08:00
parent 3f386e5e38
commit 9e9788ea22
13 changed files with 320 additions and 18 deletions
+7 -2
View File
@@ -30,7 +30,12 @@
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Price Range (USD)</label>
<label class="block text-sm font-medium text-gray-700 mb-1">
Price Range
{% if price_pref == 'sqft' %}
<span class="text-xs text-gray-400 font-normal">(per sqft)</span>
{% endif %}
</label>
<div class="flex gap-2">
<input type="number" name="min_price" value="{{ min_price|default('') }}"
placeholder="Min" min="0"
@@ -86,7 +91,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6">
{% from "components/property_card.html" import property_card %}
{% for prop in properties %}
{{ property_card(prop) }}
{{ property_card(prop, price_pref) }}
{% endfor %}
</div>