added ticket page

This commit is contained in:
2026-01-09 10:58:23 +05:30
parent ffed18a31c
commit 54e6b28994
5 changed files with 9 additions and 2 deletions

View File

@@ -4,4 +4,5 @@ from . import views
urlpatterns = [ urlpatterns = [
path('contact/', views.ContactView.as_view(), name='contact_us_form'), path('contact/', views.ContactView.as_view(), name='contact_us_form'),
path('book-appointment/', views.AppointmentView.as_view(), name='book_appointment'), path('book-appointment/', views.AppointmentView.as_view(), name='book_appointment'),
path('ticket/', views.Ticket.as_view(), name='ticket'),
] ]

View File

@@ -8,7 +8,7 @@ from django.utils import timezone # Ensure this is imported
from at_django_boilerplate.accounts.models import CustomUser from at_django_boilerplate.accounts.models import CustomUser
from at_django_boilerplate.communications.models import FeedbackModel, AppointmentModel from at_django_boilerplate.communications.models import FeedbackModel, AppointmentModel
from at_django_boilerplate.backend_admin.models import SEOConfiguration from at_django_boilerplate.backend_admin.models import SEOConfiguration
from django.views.generic import TemplateView
class ContactView(View): class ContactView(View):
template_name = 'contact_us_form.html' template_name = 'contact_us_form.html'
@@ -188,3 +188,9 @@ Please confirm or follow up with the user.
# Redirect to same page to show success message and prevent resubmission # Redirect to same page to show success message and prevent resubmission
return redirect('book_appointment') return redirect('book_appointment')
class Ticket(TemplateView):
template_name = 'ticket.html'