diff --git a/Dockerfile b/Dockerfile index 5c3f78d..a97f523 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10-slim-bullseye -ENV VERSION_NUMBER 0.1.0-40-g5ad0e52 +ENV VERSION_NUMBER 0.1.0-41-gf2b08cd ENV PROD 1 RUN useradd --create-home --uid 1000 timetracker diff --git a/src/web/tracker/templates/add_purchase.html b/src/web/tracker/templates/add_purchase.html deleted file mode 100644 index 51e61c8..0000000 --- a/src/web/tracker/templates/add_purchase.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends 'base.html' %} - -{% block title %}Add New Purchase{% endblock title %} - -{% block content %} -
-{% endblock content %} \ No newline at end of file diff --git a/src/web/tracker/templates/add_session.html b/src/web/tracker/templates/add_session.html deleted file mode 100644 index 9992b9d..0000000 --- a/src/web/tracker/templates/add_session.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends 'base.html' %} - -{% block title %}Add New Session{% endblock title %} - -{% block content %} - -{% endblock content %} \ No newline at end of file diff --git a/src/web/tracker/views.py b/src/web/tracker/views.py index c0219da..5f21a75 100644 --- a/src/web/tracker/views.py +++ b/src/web/tracker/views.py @@ -27,8 +27,9 @@ def add_session(request): form.save() return redirect("list_sessions") + context["title"] = "Add New Session" context["form"] = form - return render(request, "add_session.html", context) + return render(request, "add.html", context) def update_session(request, session_id=None):