Disable Add List button for non-staff
This commit is contained in:
parent
d9414f6de8
commit
4e8960c12f
1 changed files with 7 additions and 1 deletions
|
@ -21,7 +21,13 @@
|
|||
{% endfor %}
|
||||
|
||||
<div class="mt-3">
|
||||
<a href="{% url 'todo:add_list' %}" class="btn btn-primary">Create new todo list</a>
|
||||
|
||||
{% if user.is_staff %}
|
||||
<a href="{% url 'todo:add_list' %}" class="btn btn-primary">Create new todo list</a>
|
||||
{% else %}
|
||||
<a href="" class="btn btn-primary disabled">If you were staff, you could create a new list</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue