{% extends 'todo/base.html' %} {% block title %}Todo list{% endblock %} {% block sidebar %} {% if user %}

Manage tasks

Create task

Show: All, Not finished, Finished

{% else %}

For create, edit or delete todo's you need login.

This is list of your own tasks. Login to site and create your own records. After this logout and see this message and empty list. If you have different accounts - login by each of this accounts and see that all records available only for your account.

{% endif %} {% endblock %} {% block content %}

{{ user|default:"guest"|capfirst }} todo list

{% for todo in todos %}
{{ todo.title }} {{ todo.description|default:"" }} {% if todo.manager or user.is_admin %}

Edit Delete

{% endif %}
{% endfor %}
{% endblock %}