From 01e3b96dc84ef4ba038599252deb290badcd98c0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 7 Apr 2013 13:46:38 +0100 Subject: [PATCH] Update templates for Retail/Online. --- .../templates/stores/store_online_list.html | 4 +- .../templates/stores/store_retail_list.html | 76 +++++++++++++++++++ app/stores/views/stores.py | 1 + 3 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 app/stores/templates/stores/store_retail_list.html diff --git a/app/stores/templates/stores/store_online_list.html b/app/stores/templates/stores/store_online_list.html index 9e3eb1e..80d996b 100644 --- a/app/stores/templates/stores/store_online_list.html +++ b/app/stores/templates/stores/store_online_list.html @@ -2,7 +2,7 @@ {% load staticfiles %} {% block title %} - Stores + Online Stores {% endblock %} {% block style %} @@ -28,7 +28,7 @@ {% block content %}
diff --git a/app/stores/templates/stores/store_retail_list.html b/app/stores/templates/stores/store_retail_list.html new file mode 100644 index 0000000..4a5121d --- /dev/null +++ b/app/stores/templates/stores/store_retail_list.html @@ -0,0 +1,76 @@ +{% extends "base.html" %} +{% load staticfiles %} + +{% block title %} + Retail Stores +{% endblock %} + +{% block style %} + +{% endblock %} + +{% block scripts %} + + + +{% endblock %} + +{% block content %} + + +
+
+
+
+
+ +
+
+ +
+ {% if store_list.count %} + + + + + + {% for store in store_list %} + + + + + + {% endfor %} + +
NameTown/CityCountry
{{ store }}{{ store.address.city }}{{ store.address.country }}
+ {% include "stores/paginator.html" %} + {% else %} + {% if search_query %} +

No results found for the search "{{ search_query }}".

+ {% endif %} + {% endif %} +
+
+
+ +
+
+
+{% endblock %} \ No newline at end of file diff --git a/app/stores/views/stores.py b/app/stores/views/stores.py index cd89435..79227c6 100644 --- a/app/stores/views/stores.py +++ b/app/stores/views/stores.py @@ -36,6 +36,7 @@ class OnlineStoreListView(StoreListView): class RetailStoreListView(StoreListView): + template_name_suffix = '_retail_list' def get_queryset(self): qs = super(RetailStoreListView, self).get_queryset()