diff --git a/.gitignore b/.gitignore index f0a2ba0..e881bdf 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ db.sqlite3 db.sqlite3-journal container.db.sqlite3 media -static +src/static # If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ # in your Git repository. Update and uncomment the following line accordingly. diff --git a/src/apps/dashboard/static/apps/scripts/dashboard.js b/src/apps/dashboard/static/apps/scripts/dashboard.js new file mode 100644 index 0000000..8635fd1 --- /dev/null +++ b/src/apps/dashboard/static/apps/scripts/dashboard.js @@ -0,0 +1,9 @@ +console.log("apps/scripts/dashboard.js loading"); +const initialize = () => { + console.log("initialize called!"); + const textInput = document.querySelector("id_text"); + textInput.oninput = () => { + const errorMsg = document.querySelector(".invalid-feedback"); + errorMsg.style.display = "none"; + }; +}; \ No newline at end of file diff --git a/src/templates/apps/dashboard/home.html b/src/templates/apps/dashboard/home.html deleted file mode 100644 index 67e9937..0000000 --- a/src/templates/apps/dashboard/home.html +++ /dev/null @@ -1,6 +0,0 @@ -{% 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 deleted file mode 100644 index ec9340b..0000000 --- a/src/templates/apps/dashboard/list.html +++ /dev/null @@ -1,15 +0,0 @@ -{% 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 %} -
| {{ forloop.counter }}. {{ item.text }} |