mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 21:46:33 +02:00
Merge pull request #2893 from cisagov/ad/2828-domain-name-in-modal
#2828: domain request overflows when domain name is long - [AD]
This commit is contained in:
commit
5e7f246436
3 changed files with 9 additions and 3 deletions
|
@ -4,6 +4,11 @@
|
||||||
<div class="usa-modal__main">
|
<div class="usa-modal__main">
|
||||||
<h2 class="usa-modal__heading" id="modal-1-heading">
|
<h2 class="usa-modal__heading" id="modal-1-heading">
|
||||||
{{ modal_heading }}
|
{{ modal_heading }}
|
||||||
|
{%if domain_name_modal is not None %}
|
||||||
|
<span class="domain-name-wrap">
|
||||||
|
{{ domain_name_modal }}
|
||||||
|
</span>
|
||||||
|
{%endif%}
|
||||||
{% if heading_value is not None %}
|
{% if heading_value is not None %}
|
||||||
{# Add a breakpoint #}
|
{# Add a breakpoint #}
|
||||||
<div aria-hidden="true"></div>
|
<div aria-hidden="true"></div>
|
||||||
|
|
|
@ -521,7 +521,8 @@ class DomainRequestTests(TestWithUser, WebTest):
|
||||||
# And the existence of the modal's data parked and ready for the js init.
|
# And the existence of the modal's data parked and ready for the js init.
|
||||||
# The next assert also tests for the passed requested domain context from
|
# The next assert also tests for the passed requested domain context from
|
||||||
# the view > domain_request_form > modal
|
# the view > domain_request_form > modal
|
||||||
self.assertContains(review_page, "You are about to submit a domain request for city.gov")
|
self.assertContains(review_page, "You are about to submit a domain request for")
|
||||||
|
self.assertContains(review_page, "city.gov")
|
||||||
|
|
||||||
# final submission results in a redirect to the "finished" URL
|
# final submission results in a redirect to the "finished" URL
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
|
|
|
@ -457,8 +457,8 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
"visited": self.storage.get("step_history", []),
|
"visited": self.storage.get("step_history", []),
|
||||||
"is_federal": self.domain_request.is_federal(),
|
"is_federal": self.domain_request.is_federal(),
|
||||||
"modal_button": modal_button,
|
"modal_button": modal_button,
|
||||||
"modal_heading": "You are about to submit a domain request for "
|
"modal_heading": "You are about to submit a domain request for ",
|
||||||
+ str(self.domain_request.requested_domain),
|
"domain_name_modal": str(self.domain_request.requested_domain),
|
||||||
"modal_description": "Once you submit this request, you won’t be able to edit it until we review it.\
|
"modal_description": "Once you submit this request, you won’t be able to edit it until we review it.\
|
||||||
You’ll only be able to withdraw your request.",
|
You’ll only be able to withdraw your request.",
|
||||||
"review_form_is_complete": True,
|
"review_form_is_complete": True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue