From 3ae81b8926ccd9d44b708d7768c01c5e0804eb36 Mon Sep 17 00:00:00 2001 From: Jon Roberts Date: Mon, 27 Mar 2023 10:09:21 -0600 Subject: [PATCH] add urls and class for status update --- src/registrar/config/urls.py | 5 +++++ src/registrar/views/application.py | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/registrar/config/urls.py b/src/registrar/config/urls.py index 0d0ec89f5..d8c621cb6 100644 --- a/src/registrar/config/urls.py +++ b/src/registrar/config/urls.py @@ -52,6 +52,11 @@ urlpatterns = [ views.ApplicationWizard.as_view(), name=views.ApplicationWizard.EDIT_URL_NAME, ), + path( + "application/", + views.ApplicationStatus.as_view(), + name="application-status" + ), path("health/", views.health), path("openid/", include("djangooidc.urls")), path("register/", include((application_urls, APPLICATION_NAMESPACE))), diff --git a/src/registrar/views/application.py b/src/registrar/views/application.py index ca25d8ea3..e2c1a84ed 100644 --- a/src/registrar/views/application.py +++ b/src/registrar/views/application.py @@ -7,6 +7,8 @@ from django.urls import resolve, reverse from django.utils.translation import gettext_lazy as _ from django.views.generic import TemplateView from django.contrib import messages +from django.utils.safestring import mark_safe +from django.views.generic import DetailView from registrar.forms import application_wizard as forms from registrar.models import DomainApplication @@ -462,6 +464,17 @@ class Review(ApplicationWizard): # # TODO: errors to let users know why this isn't working # return self.goto(self.steps.current) +class ApplicationStatus(DetailView): + template_name = "application_status.html" + forms = [] # type: ignore + + def get_context_data(self): + context = super().get_context_data() + context["application"] = self.application + return context + + def goto_next_step(self): + return self.done() class Finished(ApplicationWizard): template_name = "application_done.html"