From 89e3735883c03239270d33a3dc841a43f789f17e Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 5 Mar 2024 09:58:59 -0600 Subject: gtd: added deal code --- app/gtd/templates/gtd/deal_code.html | 67 ++++++++++++++++++++++++++++++++++++ app/gtd/urls.py | 5 +++ app/gtd/views.py | 5 +++ 3 files changed, 77 insertions(+) create mode 100644 app/gtd/templates/gtd/deal_code.html (limited to 'app/gtd') diff --git a/app/gtd/templates/gtd/deal_code.html b/app/gtd/templates/gtd/deal_code.html new file mode 100644 index 0000000..1b174f2 --- /dev/null +++ b/app/gtd/templates/gtd/deal_code.html @@ -0,0 +1,67 @@ + + + + + +

+ + + + diff --git a/app/gtd/urls.py b/app/gtd/urls.py index 565ea6b..2d883c1 100644 --- a/app/gtd/urls.py +++ b/app/gtd/urls.py @@ -5,6 +5,11 @@ from . import views app_name = "gtd" urlpatterns = [ + path( + r'deal', + views.WiredGenerateDealCodeView.as_view(), + name="code" + ), path( r'todo', views.GTDNoteTODOView.as_view(), diff --git a/app/gtd/views.py b/app/gtd/views.py index 22b1190..cb3cefd 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -1,4 +1,5 @@ from django.views.generic import UpdateView, DetailView, ListView, CreateView, DeleteView, RedirectView +from django.views.generic.base import TemplateView from django.urls import reverse, reverse_lazy from django.db.models import Q @@ -291,6 +292,10 @@ class WiredPostUpdateView(UpdateView): return reverse('gtd:wiredpost-list') +class WiredGenerateDealCodeView(TemplateView): + template_name = "gtd/deal_code.html" + + class GTDNoteDeleteView(DeleteView): # specify the model you want to use model = GTDNote -- cgit v1.2.3-70-g09d2