From bedfbb7f312ed92403394140fbdfe3d81c03ff01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 5 Jan 2023 22:09:21 +0100 Subject: [PATCH] Remove cruft --- Dockerfile | 2 +- src/web/tracker/templates/add_purchase.html | 13 ------------- src/web/tracker/templates/add_session.html | 13 ------------- src/web/tracker/views.py | 3 ++- 4 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 src/web/tracker/templates/add_purchase.html delete mode 100644 src/web/tracker/templates/add_session.html 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 %} -
- {% csrf_token %} - - {{ form.as_p }} - - -
-{% 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 %} -
- {% csrf_token %} - - {{ form.as_p }} - - -
-{% 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):