🛠️

- 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
+2 -2
View File
@@ -1,4 +1,4 @@
{% macro property_card(prop) %}
{% macro property_card(prop, price_pref="total") %}
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
<a href="/properties/{{ prop.id }}" class="block">
<div class="relative h-52 bg-gray-200">
@@ -35,7 +35,7 @@
<div class="p-5">
<div class="flex items-center justify-between mb-2">
<span class="text-2xl font-bold text-primary">${{ "{:,}".format(prop.price) }}</span>
<span class="text-2xl font-bold text-primary">{{ prop.price|price_fmt(price_pref, prop.area_sqft) }}</span>
</div>
<h3 class="text-lg font-semibold text-gray-800 mb-1 truncate">