diff --git a/src/functional_tests/test_my_lists.py b/src/functional_tests/test_my_lists.py index a122a34..554e0e0 100644 --- a/src/functional_tests/test_my_lists.py +++ b/src/functional_tests/test_my_lists.py @@ -39,8 +39,6 @@ class MyListsTest(FunctionalTest): ) ) - return # TODO: resume here after templates refactor - self.wait_for( lambda: self.browser.find_element(By.LINK_TEXT, "Reticulate splines") ) diff --git a/src/templates/apps/dashboard/_partials/_form.html b/src/templates/apps/dashboard/_partials/_form.html new file mode 100644 index 0000000..6de5867 --- /dev/null +++ b/src/templates/apps/dashboard/_partials/_form.html @@ -0,0 +1,17 @@ +
\ No newline at end of file diff --git a/src/templates/apps/dashboard/_partials/_scripts.html b/src/templates/apps/dashboard/_partials/_scripts.html new file mode 100644 index 0000000..76ac717 --- /dev/null +++ b/src/templates/apps/dashboard/_partials/_scripts.html @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/templates/apps/dashboard/home.html b/src/templates/apps/dashboard/home.html index 67e9937..d9ea19f 100644 --- a/src/templates/apps/dashboard/home.html +++ b/src/templates/apps/dashboard/home.html @@ -3,4 +3,11 @@ {% 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 %} +{% block extra_header %} + {% url "new_list" as form_action %} + {% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %} +{% endblock extra_header %} + +{% block scripts %} + {% include "apps/dashboard/_partials/_scripts.html" %} +{% endblock scripts %} diff --git a/src/templates/apps/dashboard/list.html b/src/templates/apps/dashboard/list.html index ec9340b..e583f5b 100644 --- a/src/templates/apps/dashboard/list.html +++ b/src/templates/apps/dashboard/list.html @@ -3,13 +3,24 @@ {% 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 %} -| {{ forloop.counter }}. {{ item.text }} |
| {{ forloop.counter }}. {{ item.text }} |