mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 18:25:58 +02:00
add urls and class for status update
This commit is contained in:
parent
e8b7bfb9c4
commit
3ae81b8926
2 changed files with 18 additions and 0 deletions
|
@ -52,6 +52,11 @@ urlpatterns = [
|
|||
views.ApplicationWizard.as_view(),
|
||||
name=views.ApplicationWizard.EDIT_URL_NAME,
|
||||
),
|
||||
path(
|
||||
"application/<id>",
|
||||
views.ApplicationStatus.as_view(),
|
||||
name="application-status"
|
||||
),
|
||||
path("health/", views.health),
|
||||
path("openid/", include("djangooidc.urls")),
|
||||
path("register/", include((application_urls, APPLICATION_NAMESPACE))),
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue