From 4e8960c12fa091c34e07dd000c05103ad1b88890 Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Sat, 7 Apr 2018 10:26:21 -0700 Subject: [PATCH] Disable Add List button for non-staff --- todo/templates/todo/list_lists.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/todo/templates/todo/list_lists.html b/todo/templates/todo/list_lists.html index a6908c6..a523b6c 100644 --- a/todo/templates/todo/list_lists.html +++ b/todo/templates/todo/list_lists.html @@ -21,7 +21,13 @@ {% endfor %}
- Create new todo list + + {% if user.is_staff %} + Create new todo list + {% else %} + If you were staff, you could create a new list + {% endif %} +
{% endblock %} \ No newline at end of file