diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index 90ef2c958..c24dce606 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -3,7 +3,7 @@ import logging from django import forms -from django.shortcuts import redirect +from django.shortcuts import redirect, render from django.contrib.auth.mixins import LoginRequiredMixin @@ -144,5 +144,7 @@ class ApplicationWizard(LoginRequiredMixin, NamedUrlSessionWizardView): application = self.forms_to_object(form_dict) application.submit() # change the status to submitted application.save() - logger.debug("Application object saved:", application.id) - return redirect("home") + logger.debug("Application object saved: %s", application.id) + return render( + self.request, "application_done.html", {"application_id": application.id} + ) diff --git a/src/registrar/templates/application_done.html b/src/registrar/templates/application_done.html new file mode 100644 index 000000000..6ffe62765 --- /dev/null +++ b/src/registrar/templates/application_done.html @@ -0,0 +1,37 @@ +{% extends 'base.html' %} + +{% block title %}Thank you for your domain request{% endblock %} + +{% block content %} +

Thank you!

+ +

+Thank you for your domain request. We'll email a copy of your request to you, +your authorizing official, and any contacts you added.

+ +

Next steps in this process

+ + + +

Option to enter domain name server information

+ +

Before your domain can be used we'll need information about your +domain name servers. If you have this information you can enter it now. +If you don't have it, that's okay. You can enter it later on the +manage your domains page. +

+{% endblock %} diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index 92b6df4df..d3ccd3aee 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -113,7 +113,8 @@ class FormTests(TestWithUser, WebTest): result = page.form.submit() # final submission results in a redirect self.assertEquals(result.status_code, 302) + self.assertEquals(result["Location"], "/register/finished/") page = result.follow() - self.assertContains(page, "registrar") + self.assertContains(page, "Thank you for your domain request") # TODO: when we have a page that lists applications, visit it and # make sure that the new one exists