mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
modified the error message; updated the formatting of the code
This commit is contained in:
parent
b84fdedc40
commit
f45cee3eb4
3 changed files with 6 additions and 6 deletions
|
@ -26,9 +26,9 @@
|
|||
{% if not domain.domain_info %}
|
||||
<div class="usa-alert usa-alert--error margin-bottom-2">
|
||||
<div class="usa-alert__body">
|
||||
<h4 class="usa-alert__heading larger-font-sizing">Error!</h4>
|
||||
<h4 class="usa-alert__heading larger-font-sizing">Domain missing domain information</h4>
|
||||
<p class="usa-alert__text ">
|
||||
You are attempting to manage a domain, {{ domain.name }}, which does not have a Domain Information object. Please correct this in the admin.
|
||||
You are attempting to manage a domain, {{ domain.name }}, which does not have a domain information object. Please correct this in the admin by editing the domain, and adding domain information, as appropriate.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1293,8 +1293,8 @@ class TestDomainOverview(TestWithDomainPermissions, WebTest):
|
|||
# in the session to emulate user clicking Manage Domain
|
||||
# in the admin interface
|
||||
session = self.client.session
|
||||
session['analyst_action'] = 'foo'
|
||||
session['analyst_action_location'] = self.domain_no_information.id
|
||||
session["analyst_action"] = "foo"
|
||||
session["analyst_action_location"] = self.domain_no_information.id
|
||||
session.save()
|
||||
|
||||
detail_page = self.client.get(
|
||||
|
@ -1302,7 +1302,7 @@ class TestDomainOverview(TestWithDomainPermissions, WebTest):
|
|||
)
|
||||
|
||||
self.assertContains(detail_page, "noinformation.gov")
|
||||
self.assertContains(detail_page, "Error")
|
||||
self.assertContains(detail_page, "Domain missing domain information")
|
||||
|
||||
|
||||
class TestDomainManagers(TestDomainOverview):
|
||||
|
|
|
@ -99,7 +99,7 @@ class DomainPermission(PermissionsLoginMixin):
|
|||
requested_domain = None
|
||||
if DomainInformation.objects.filter(id=pk).exists():
|
||||
requested_domain = DomainInformation.objects.get(id=pk)
|
||||
|
||||
|
||||
# if no domain information or application exist, the user
|
||||
# should be able to manage the domain; however, if domain information
|
||||
# and domain application exist, and application is not in valid status,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue