diff --git a/src/templates/apps/dashboard/home.html b/src/templates/apps/dashboard/home.html new file mode 100644 index 0000000..67e9937 --- /dev/null +++ b/src/templates/apps/dashboard/home.html @@ -0,0 +1,6 @@ +{% extends "core/base.html" %} + +{% block title_text %}Start a new to-do list{% endblock title_text %} +{% block header_text %}Start a new to-do list{% endblock header_text %} + +{% block form_action %}{% url "new_list" %}{% endblock form_action %} diff --git a/src/templates/apps/dashboard/list.html b/src/templates/apps/dashboard/list.html new file mode 100644 index 0000000..ec9340b --- /dev/null +++ b/src/templates/apps/dashboard/list.html @@ -0,0 +1,15 @@ +{% extends "core/base.html" %} + +{% block title_text %}Your to-do list{% endblock title_text %} +{% block header_text %}Your to-do list{% endblock header_text %} + +{% block form_action %}{% url "view_list" list.id %}{% endblock form_action %} + +{% block table %} + + {% for item in list.item_set.all %} + + {% endfor %} +
{{ forloop.counter }}. {{ item.text }}
+{% endblock table %} +