From 2a360f0920a5b0845e102701ae38b664ab5de720 Mon Sep 17 00:00:00 2001 From: Sneha-Goswami123 Date: Wed, 15 Apr 2026 11:04:03 +0530 Subject: [PATCH] Add empty state to locations index page --- .../templates/locations/locations_index_page.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bakerydemo/templates/locations/locations_index_page.html b/bakerydemo/templates/locations/locations_index_page.html index 57134dc43..fbeef31d7 100644 --- a/bakerydemo/templates/locations/locations_index_page.html +++ b/bakerydemo/templates/locations/locations_index_page.html @@ -7,9 +7,15 @@
- {% for location in locations %} - {% include "includes/card/picture-card.html" with page=location portrait=False %} - {% endfor %} + {% if locations %} + {% for location in locations %} + {% include "includes/card/picture-card.html" with page=location portrait=False %} + {% endfor %} + {% else %} +
+

No locations available right now.

+
+ {% endif %}
{% endblock content %}