From 7de4dbf5c43f956cff7c75560b859b8bab8d1359 Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Fri, 31 May 2019 09:27:44 +1200 Subject: [PATCH] Hide create order button when a user is not logged in --- app/templates/location.html | 4 +++- app/templates/locations.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/location.html b/app/templates/location.html index 8935a20..3448e98 100644 --- a/app/templates/location.html +++ b/app/templates/location.html @@ -10,7 +10,9 @@ : {{ location.address }}
: {{ location.telephone }}
: {{ location.website }}
- Create order + {% if not current_user.is_anonymous() %} + Create order + {% endif %}
diff --git a/app/templates/locations.html b/app/templates/locations.html index 1103047..7dbc072 100644 --- a/app/templates/locations.html +++ b/app/templates/locations.html @@ -18,7 +18,9 @@ {{ loc.address }} - Create order + {% if not current_user.is_anonymous() %} + Create order + {% endif %} {%- endfor %}