def get(self, request, *args, **kwargs): organisation = get_user(request, params={"in_review": True})["organisations"][0] organisation_name = organisation["name"] organisation_status = organisation["status"]["key"] if organisation_status != "in_review": raise Http404 return success_page( request=request, title=f"You've successfully registered: {organisation_name}", secondary_title="We're currently processing your application.", description="", what_happens_next=[ "Export Control Joint Unit (ECJU) is processing your request for an export control account. " "We'll send you an email when we've made a final decision." ], links={}, back_link=conditional( request.GET.get("show_back_link", False), BackLink(generic.BACK, reverse_lazy("core:pick_organisation"))), animated=True, additional_context={"user_in_limbo": True}, )
def get(self, request, **kwargs): return success_page( request=request, title=OpenReturnsForm.Success.TITLE, secondary_title=OpenReturnsForm.Success.SECONDARY_TITLE, description=OpenReturnsForm.Success.DESCRIPTION, what_happens_next="", links={ OpenReturnsForm.Success.OPEN_LICENCE_RETURNS_LINK: reverse_lazy("compliance:open_licence_returns_list"), OpenReturnsForm.Success.HOME_LINK: reverse_lazy("core:home"), }, )
def application_success_page(request, application_reference_code): return success_page( request=request, title=ApplicationSuccessPage.TITLE, secondary_title=ApplicationSuccessPage.SECONDARY_TITLE + application_reference_code, description=ApplicationSuccessPage.DESCRIPTION, what_happens_next=ApplicationSuccessPage.WHAT_HAPPENS_NEXT, links={ ApplicationSuccessPage.VIEW_APPLICATIONS: reverse_lazy("applications:applications"), ApplicationSuccessPage.APPLY_AGAIN: reverse_lazy("apply_for_a_licence:start"), ApplicationSuccessPage.RETURN_TO_DASHBOARD: reverse_lazy("core:home"), }, )
def end_user_advisory_success_page(request, query_reference): return success_page( request=request, title="Advisory submitted", secondary_title="ECJU reference: " + query_reference, description="ECJU usually takes 2 working days to check an end user.", what_happens_next=[ "You'll receive an email from ECJU when the check is finished." ], links={ "View your end user advisories": reverse_lazy("end_users:end_users"), "Submit another end user advisory": reverse_lazy("end_users:apply"), "Return to your export control account dashboard": reverse_lazy("core:home"), }, )
def open_general_licence_submit_success_page(request, **kwargs): open_general_licence = get_open_general_licence(request, kwargs["pk"]) return success_page( request=request, title=OpenGeneralLicenceRegistration.TITLE, secondary_title=OpenGeneralLicenceRegistration.SECONDARY_TITLE.format( open_general_licence["case_type"]["reference"]["value"], open_general_licence["name"]), description=ApplicationSuccessPage.DESCRIPTION, what_happens_next=[], includes="includes/open-general-licence.html", additional_context={"licence": open_general_licence}, links={ OpenGeneralLicenceRegistration.Links.VIEW_OGLS_LINK: reverse_lazy("licences:licences") + "?licence_type=open_general_licences", OpenGeneralLicenceRegistration.Links.APPLY_AGAIN: reverse_lazy("apply_for_a_licence:start"), OpenGeneralLicenceRegistration.Links.RETURN_TO_DASHBOARD: reverse_lazy("core:home"), }, )