added ticket page
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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'),
|
||||||
]
|
]
|
||||||
@@ -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user