Merge branch 'main' into za/2596-view-only-domain-request-page

This commit is contained in:
zandercymatics 2024-09-19 12:33:06 -06:00
commit 69e73fa97e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
21 changed files with 346 additions and 69 deletions

View file

@ -1,7 +1,8 @@
@use "uswds-core" as *; @use "uswds-core" as *;
@use "cisa_colors" as *; @use "cisa_colors" as *;
/* Make "placeholder" links visually obvious */ // Used on: TODO links
// Used on: NONE
a[href$="todo"]::after { a[href$="todo"]::after {
background-color: yellow; background-color: yellow;
color: color(blue-80v); color: color(blue-80v);
@ -9,10 +10,14 @@ a[href$="todo"]::after {
font-style: italic; font-style: italic;
} }
// Used on: profile
// Note: Is this needed?
a.usa-link.usa-link--always-blue { a.usa-link.usa-link--always-blue {
color: #{$dhs-blue}; color: #{$dhs-blue};
} }
// Used on: breadcrumbs
// Note: This could potentially be simplified and use usa-button--with-icon
a.breadcrumb__back { a.breadcrumb__back {
display:flex; display:flex;
align-items: center; align-items: center;
@ -28,10 +33,18 @@ a.breadcrumb__back {
} }
} }
// Remove anchor buttons' underline
a.usa-button { a.usa-button {
text-decoration: none; text-decoration: none;
} }
// Unstyled anchor buttons
a.usa-button--unstyled:visited {
color: color('primary');
}
// Disabled anchor buttons
// NOTE: Not used
a.usa-button.disabled-link { a.usa-button.disabled-link {
background-color: #ccc !important; background-color: #ccc !important;
color: #454545 !important color: #454545 !important
@ -58,6 +71,8 @@ a.usa-button--unstyled.disabled-link:focus {
text-decoration: none !important; text-decoration: none !important;
} }
// Disabled buttons
// Used on: Domain managers, disabled logo on profile
.usa-button--unstyled.disabled-button, .usa-button--unstyled.disabled-button,
.usa-button--unstyled.disabled-button:hover, .usa-button--unstyled.disabled-button:hover,
.usa-button--unstyled.disabled-button:focus { .usa-button--unstyled.disabled-button:focus {
@ -66,6 +81,16 @@ a.usa-button--unstyled.disabled-link:focus {
text-decoration: none !important; text-decoration: none !important;
} }
// Unstyled variant for reverse out?
// Used on: NONE
.usa-button--unstyled--white,
.usa-button--unstyled--white:hover,
.usa-button--unstyled--white:focus,
.usa-button--unstyled--white:active {
color: color('white');
}
// Solid anchor buttons
a.usa-button:not(.usa-button--unstyled, .usa-button--outline) { a.usa-button:not(.usa-button--unstyled, .usa-button--outline) {
color: color('white'); color: color('white');
} }
@ -76,7 +101,8 @@ a.usa-button:not(.usa-button--unstyled, .usa-button--outline):focus,
a.usa-button:not(.usa-button--unstyled, .usa-button--outline):active { a.usa-button:not(.usa-button--unstyled, .usa-button--outline):active {
color: color('white'); color: color('white');
} }
// Outline anchor buttons
a.usa-button--outline, a.usa-button--outline,
a.usa-button--outline:visited { a.usa-button--outline:visited {
box-shadow: inset 0 0 0 2px color('primary'); box-shadow: inset 0 0 0 2px color('primary');
@ -94,10 +120,22 @@ a.usa-button--outline:active {
color: color('primary-darker'); color: color('primary-darker');
} }
// Used on: Domain request withdraw confirmation
a.withdraw { a.withdraw {
background-color: color('error'); background-color: color('error');
} }
a.withdraw:hover,
a.withdraw:focus {
background-color: color('error-dark');
}
a.withdraw:active {
background-color: color('error-darker');
}
// Used on: Domain request status
//NOTE: Revise to BEM convention usa-button--outline-secondary
a.withdraw_outline, a.withdraw_outline,
a.withdraw_outline:visited { a.withdraw_outline:visited {
box-shadow: inset 0 0 0 2px color('error'); box-shadow: inset 0 0 0 2px color('error');
@ -115,19 +153,8 @@ a.withdraw_outline:active {
color: color('error-darker'); color: color('error-darker');
} }
a.withdraw:hover,
a.withdraw:focus {
background-color: color('error-dark');
}
a.withdraw:active {
background-color: color('error-darker');
}
a.usa-button--unstyled:visited { // Used on: Domain request submit
color: color('primary');
}
.dotgov-button--green { .dotgov-button--green {
background-color: color('success-dark'); background-color: color('success-dark');
@ -140,15 +167,8 @@ a.usa-button--unstyled:visited {
} }
} }
.usa-button--unstyled--white, // Cancel button
.usa-button--unstyled--white:hover, // Used on: DNSSEC main page
.usa-button--unstyled--white:focus,
.usa-button--unstyled--white:active {
color: color('white');
}
// Cancel button used on the
// DNSSEC main page
// We want to center this button on mobile // We want to center this button on mobile
// and add some extra left margin on tablet+ // and add some extra left margin on tablet+
.usa-button--cancel { .usa-button--cancel {
@ -175,6 +195,8 @@ a.usa-button--unstyled:visited {
} }
} }
// Used on: Profile page, toggleable fields
// Note: Could potentially be cleaned up by using usa-button--with-icon
// We need to deviate from some default USWDS styles here // We need to deviate from some default USWDS styles here
// in this particular case, so we have to override this. // in this particular case, so we have to override this.
.usa-form .usa-button.readonly-edit-button { .usa-form .usa-button.readonly-edit-button {
@ -186,6 +208,7 @@ a.usa-button--unstyled:visited {
} }
} }
//Used on: Domains and Requests tables
.usa-button--filter { .usa-button--filter {
width: auto; width: auto;
// For mobile stacking // For mobile stacking
@ -201,6 +224,8 @@ a.usa-button--unstyled:visited {
} }
} }
// Buttons with nested icons
// Note: Can be simplified by adding usa-link--icon to anchors in tables
.dotgov-table a, .dotgov-table a,
.usa-link--icon, .usa-link--icon,
.usa-button--with-icon { .usa-button--with-icon {
@ -224,6 +249,9 @@ a .usa-icon,
width: 1.5em; width: 1.5em;
} }
// Red, for delete buttons
// Used on: All delete buttons
// Note: Can be simplified by adding text-secondary to delete anchors in tables
button.text-secondary, button.text-secondary,
button.text-secondary:hover, button.text-secondary:hover,
.dotgov-table a.text-secondary { .dotgov-table a.text-secondary {

View file

@ -85,7 +85,7 @@ legend.float-left-tablet + button.float-right-tablet {
.read-only-label { .read-only-label {
font-size: size('body', 'sm'); font-size: size('body', 'sm');
color: color('primary'); color: color('primary-dark');
margin-bottom: units(0.5); margin-bottom: units(0.5);
} }

View file

@ -0,0 +1,229 @@
# Generated by Django 4.2.10 on 2024-09-11 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registrar", "0127_remove_domaininformation_submitter_and_more"),
]
operations = [
migrations.AlterField(
model_name="domaininformation",
name="state_territory",
field=models.CharField(
blank=True,
choices=[
("AL", "Alabama (AL)"),
("AK", "Alaska (AK)"),
("AS", "American Samoa (AS)"),
("AZ", "Arizona (AZ)"),
("AR", "Arkansas (AR)"),
("CA", "California (CA)"),
("CO", "Colorado (CO)"),
("CT", "Connecticut (CT)"),
("DE", "Delaware (DE)"),
("DC", "District of Columbia (DC)"),
("FL", "Florida (FL)"),
("GA", "Georgia (GA)"),
("GU", "Guam (GU)"),
("HI", "Hawaii (HI)"),
("ID", "Idaho (ID)"),
("IL", "Illinois (IL)"),
("IN", "Indiana (IN)"),
("IA", "Iowa (IA)"),
("KS", "Kansas (KS)"),
("KY", "Kentucky (KY)"),
("LA", "Louisiana (LA)"),
("ME", "Maine (ME)"),
("MD", "Maryland (MD)"),
("MA", "Massachusetts (MA)"),
("MI", "Michigan (MI)"),
("MN", "Minnesota (MN)"),
("MS", "Mississippi (MS)"),
("MO", "Missouri (MO)"),
("MT", "Montana (MT)"),
("NE", "Nebraska (NE)"),
("NV", "Nevada (NV)"),
("NH", "New Hampshire (NH)"),
("NJ", "New Jersey (NJ)"),
("NM", "New Mexico (NM)"),
("NY", "New York (NY)"),
("NC", "North Carolina (NC)"),
("ND", "North Dakota (ND)"),
("MP", "Northern Mariana Islands (MP)"),
("OH", "Ohio (OH)"),
("OK", "Oklahoma (OK)"),
("OR", "Oregon (OR)"),
("PA", "Pennsylvania (PA)"),
("PR", "Puerto Rico (PR)"),
("RI", "Rhode Island (RI)"),
("SC", "South Carolina (SC)"),
("SD", "South Dakota (SD)"),
("TN", "Tennessee (TN)"),
("TX", "Texas (TX)"),
("UM", "United States Minor Outlying Islands (UM)"),
("UT", "Utah (UT)"),
("VT", "Vermont (VT)"),
("VI", "Virgin Islands (VI)"),
("VA", "Virginia (VA)"),
("WA", "Washington (WA)"),
("WV", "West Virginia (WV)"),
("WI", "Wisconsin (WI)"),
("WY", "Wyoming (WY)"),
("AA", "Armed Forces Americas (AA)"),
("AE", "Armed Forces Africa, Canada, Europe, Middle East (AE)"),
("AP", "Armed Forces Pacific (AP)"),
],
max_length=2,
null=True,
verbose_name="state, territory, or military post",
),
),
migrations.AlterField(
model_name="domainrequest",
name="state_territory",
field=models.CharField(
blank=True,
choices=[
("AL", "Alabama (AL)"),
("AK", "Alaska (AK)"),
("AS", "American Samoa (AS)"),
("AZ", "Arizona (AZ)"),
("AR", "Arkansas (AR)"),
("CA", "California (CA)"),
("CO", "Colorado (CO)"),
("CT", "Connecticut (CT)"),
("DE", "Delaware (DE)"),
("DC", "District of Columbia (DC)"),
("FL", "Florida (FL)"),
("GA", "Georgia (GA)"),
("GU", "Guam (GU)"),
("HI", "Hawaii (HI)"),
("ID", "Idaho (ID)"),
("IL", "Illinois (IL)"),
("IN", "Indiana (IN)"),
("IA", "Iowa (IA)"),
("KS", "Kansas (KS)"),
("KY", "Kentucky (KY)"),
("LA", "Louisiana (LA)"),
("ME", "Maine (ME)"),
("MD", "Maryland (MD)"),
("MA", "Massachusetts (MA)"),
("MI", "Michigan (MI)"),
("MN", "Minnesota (MN)"),
("MS", "Mississippi (MS)"),
("MO", "Missouri (MO)"),
("MT", "Montana (MT)"),
("NE", "Nebraska (NE)"),
("NV", "Nevada (NV)"),
("NH", "New Hampshire (NH)"),
("NJ", "New Jersey (NJ)"),
("NM", "New Mexico (NM)"),
("NY", "New York (NY)"),
("NC", "North Carolina (NC)"),
("ND", "North Dakota (ND)"),
("MP", "Northern Mariana Islands (MP)"),
("OH", "Ohio (OH)"),
("OK", "Oklahoma (OK)"),
("OR", "Oregon (OR)"),
("PA", "Pennsylvania (PA)"),
("PR", "Puerto Rico (PR)"),
("RI", "Rhode Island (RI)"),
("SC", "South Carolina (SC)"),
("SD", "South Dakota (SD)"),
("TN", "Tennessee (TN)"),
("TX", "Texas (TX)"),
("UM", "United States Minor Outlying Islands (UM)"),
("UT", "Utah (UT)"),
("VT", "Vermont (VT)"),
("VI", "Virgin Islands (VI)"),
("VA", "Virginia (VA)"),
("WA", "Washington (WA)"),
("WV", "West Virginia (WV)"),
("WI", "Wisconsin (WI)"),
("WY", "Wyoming (WY)"),
("AA", "Armed Forces Americas (AA)"),
("AE", "Armed Forces Africa, Canada, Europe, Middle East (AE)"),
("AP", "Armed Forces Pacific (AP)"),
],
max_length=2,
null=True,
verbose_name="state, territory, or military post",
),
),
migrations.AlterField(
model_name="portfolio",
name="state_territory",
field=models.CharField(
blank=True,
choices=[
("AL", "Alabama (AL)"),
("AK", "Alaska (AK)"),
("AS", "American Samoa (AS)"),
("AZ", "Arizona (AZ)"),
("AR", "Arkansas (AR)"),
("CA", "California (CA)"),
("CO", "Colorado (CO)"),
("CT", "Connecticut (CT)"),
("DE", "Delaware (DE)"),
("DC", "District of Columbia (DC)"),
("FL", "Florida (FL)"),
("GA", "Georgia (GA)"),
("GU", "Guam (GU)"),
("HI", "Hawaii (HI)"),
("ID", "Idaho (ID)"),
("IL", "Illinois (IL)"),
("IN", "Indiana (IN)"),
("IA", "Iowa (IA)"),
("KS", "Kansas (KS)"),
("KY", "Kentucky (KY)"),
("LA", "Louisiana (LA)"),
("ME", "Maine (ME)"),
("MD", "Maryland (MD)"),
("MA", "Massachusetts (MA)"),
("MI", "Michigan (MI)"),
("MN", "Minnesota (MN)"),
("MS", "Mississippi (MS)"),
("MO", "Missouri (MO)"),
("MT", "Montana (MT)"),
("NE", "Nebraska (NE)"),
("NV", "Nevada (NV)"),
("NH", "New Hampshire (NH)"),
("NJ", "New Jersey (NJ)"),
("NM", "New Mexico (NM)"),
("NY", "New York (NY)"),
("NC", "North Carolina (NC)"),
("ND", "North Dakota (ND)"),
("MP", "Northern Mariana Islands (MP)"),
("OH", "Ohio (OH)"),
("OK", "Oklahoma (OK)"),
("OR", "Oregon (OR)"),
("PA", "Pennsylvania (PA)"),
("PR", "Puerto Rico (PR)"),
("RI", "Rhode Island (RI)"),
("SC", "South Carolina (SC)"),
("SD", "South Dakota (SD)"),
("TN", "Tennessee (TN)"),
("TX", "Texas (TX)"),
("UM", "United States Minor Outlying Islands (UM)"),
("UT", "Utah (UT)"),
("VT", "Vermont (VT)"),
("VI", "Virgin Islands (VI)"),
("VA", "Virginia (VA)"),
("WA", "Washington (WA)"),
("WV", "West Virginia (WV)"),
("WI", "Wisconsin (WI)"),
("WY", "Wyoming (WY)"),
("AA", "Armed Forces Americas (AA)"),
("AE", "Armed Forces Africa, Canada, Europe, Middle East (AE)"),
("AP", "Armed Forces Pacific (AP)"),
],
max_length=2,
null=True,
verbose_name="state, territory, or military post",
),
),
]

View file

@ -159,7 +159,7 @@ class DomainInformation(TimeStampedModel):
choices=StateTerritoryChoices.choices, choices=StateTerritoryChoices.choices,
null=True, null=True,
blank=True, blank=True,
verbose_name="state / territory", verbose_name="state, territory, or military post",
) )
zipcode = models.CharField( zipcode = models.CharField(
max_length=10, max_length=10,

View file

@ -423,7 +423,7 @@ class DomainRequest(TimeStampedModel):
choices=StateTerritoryChoices.choices, choices=StateTerritoryChoices.choices,
null=True, null=True,
blank=True, blank=True,
verbose_name="state / territory", verbose_name="state, territory, or military post",
) )
zipcode = models.CharField( zipcode = models.CharField(
max_length=10, max_length=10,

View file

@ -89,7 +89,7 @@ class Portfolio(TimeStampedModel):
choices=StateTerritoryChoices.choices, choices=StateTerritoryChoices.choices,
null=True, null=True,
blank=True, blank=True,
verbose_name="state / territory", verbose_name="state, territory, or military post",
) )
zipcode = models.CharField( zipcode = models.CharField(

View file

@ -77,7 +77,7 @@
{% include "includes/summary_item.html" with title='Suborganization' value=domain.domain_info.sub_organization edit_link=url editable=is_editable|and:has_edit_suborganization_portfolio_permission %} {% include "includes/summary_item.html" with title='Suborganization' value=domain.domain_info.sub_organization edit_link=url editable=is_editable|and:has_edit_suborganization_portfolio_permission %}
{% else %} {% else %}
{% url 'domain-org-name-address' pk=domain.id as url %} {% url 'domain-org-name-address' pk=domain.id as url %}
{% include "includes/summary_item.html" with title='Organization name and mailing address' value=domain.domain_info address='true' edit_link=url editable=is_editable %} {% include "includes/summary_item.html" with title='Organization' value=domain.domain_info address='true' edit_link=url editable=is_editable %}
{% url 'domain-senior-official' pk=domain.id as url %} {% url 'domain-senior-official' pk=domain.id as url %}
{% include "includes/summary_item.html" with title='Senior official' value=domain.domain_info.senior_official contact='true' edit_link=url editable=is_editable %} {% include "includes/summary_item.html" with title='Senior official' value=domain.domain_info.senior_official contact='true' edit_link=url editable=is_editable %}

View file

@ -7,7 +7,7 @@
{# this is right after the messages block in the parent template #} {# this is right after the messages block in the parent template #}
{% include "includes/form_errors.html" with form=form %} {% include "includes/form_errors.html" with form=form %}
<h1>Organization name and mailing address </h1> <h1>Organization</h1>
<p>The name of your organization will be publicly listed as the domain registrant.</p> <p>The name of your organization will be publicly listed as the domain registrant.</p>

View file

@ -12,7 +12,7 @@
{% if not portfolio %} {% if not portfolio %}
{% with url_name="domain-org-name-address" %} {% with url_name="domain-org-name-address" %}
{% include "includes/domain_sidenav_item.html" with item_text="Organization name and mailing address" %} {% include "includes/domain_sidenav_item.html" with item_text="Organization" %}
{% endwith %} {% endwith %}
{% endif %} {% endif %}

View file

@ -15,7 +15,7 @@ State-recognized tribe
Election office: Election office:
{{ domain_request.is_election_board|yesno:"Yes,No,Incomplete" }} {{ domain_request.is_election_board|yesno:"Yes,No,Incomplete" }}
{% endif %} {% endif %}
Organization name and mailing address: Organization:
{% spaceless %}{{ domain_request.federal_agency }} {% spaceless %}{{ domain_request.federal_agency }}
{{ domain_request.organization_name }} {{ domain_request.organization_name }}
{{ domain_request.address_line1 }}{% if domain_request.address_line2 %} {{ domain_request.address_line1 }}{% if domain_request.address_line2 %}

View file

@ -16,15 +16,7 @@
{% if can_edit %} {% if can_edit %}
{% include "includes/required_fields.html" %} {% include "includes/required_fields.html" %}
{% else %} <form class="usa-form usa-form--large desktop:margin-top-4" method="post" novalidate id="form-container">
<p>
The senior official for your organization cant be updated here.
To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>.
</p>
{% endif %}
{% if can_edit %}
<form class="usa-form usa-form--large" method="post" novalidate id="form-container">
{% csrf_token %} {% csrf_token %}
{% input_with_errors form.first_name %} {% input_with_errors form.first_name %}
{% input_with_errors form.last_name %} {% input_with_errors form.last_name %}
@ -33,17 +25,26 @@
<button type="submit" class="usa-button">Save</button> <button type="submit" class="usa-button">Save</button>
</form> </form>
{% elif not form.full_name.value and not form.title.value and not form.email.value %} {% elif not form.full_name.value and not form.title.value and not form.email.value %}
<h4>No senior official was found.</h4> <p>
Your senior official is a person within your organization who can authorize domain requests.
We don't have information about your organization's senior official. To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>.
</p>
{% else %} {% else %}
{% if form.full_name.value is not None %} <p>
{% include "includes/input_read_only.html" with field=form.full_name %} The senior official for your organization cant be updated here.
{% endif %} To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>.
</p>
<div class="desktop:margin-top-4">
{% if form.full_name.value is not None %}
{% include "includes/input_read_only.html" with field=form.full_name %}
{% endif %}
{% if form.title.value is not None %} {% if form.title.value is not None %}
{% include "includes/input_read_only.html" with field=form.title %} {% include "includes/input_read_only.html" with field=form.title %}
{% endif %} {% endif %}
{% if form.email.value is not None %} {% if form.email.value is not None %}
{% include "includes/input_read_only.html" with field=form.email %} {% include "includes/input_read_only.html" with field=form.email %}
{% endif %} {% endif %}
</div>
{% endif %} {% endif %}

View file

@ -9,9 +9,6 @@
{# the entire logged in page goes here #} {# the entire logged in page goes here #}
<div class="tablet:grid-col-12"> <div class="tablet:grid-col-12">
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
{% block portfolio_content %}{% endblock %} {% block portfolio_content %}{% endblock %}

View file

@ -9,6 +9,10 @@
{% endblock %} {% endblock %}
{% block portfolio_content %} {% block portfolio_content %}
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
<div id="main-content"> <div id="main-content">
<h1 id="domains-header">Domains</h1> <h1 id="domains-header">Domains</h1>
{% include "includes/domains_table.html" with portfolio=portfolio user_domain_count=user_domain_count %} {% include "includes/domains_table.html" with portfolio=portfolio user_domain_count=user_domain_count %}

View file

@ -5,6 +5,12 @@
{% block title %} Domains | {% endblock %} {% block title %} Domains | {% endblock %}
{% block portfolio_content %} {% block portfolio_content %}
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
<div id="main-content"> <div id="main-content">
<h1 id="domains-header">Domains</h1> <h1 id="domains-header">Domains</h1>
<section class="section-outlined"> <section class="section-outlined">

View file

@ -1,7 +1,7 @@
{% extends 'portfolio_base.html' %} {% extends 'portfolio_base.html' %}
{% load static field_helpers%} {% load static field_helpers%}
{% block title %}Organization mailing address | {{ portfolio.name }}{% endblock %} {% block title %}Organization name and mailing address | {{ portfolio.name }}{% endblock %}
{% load static %} {% load static %}
@ -19,21 +19,25 @@
<div class="tablet:grid-col-9" id="main-content"> <div class="tablet:grid-col-9" id="main-content">
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
<h1>Organization</h1> <h1>Organization</h1>
<p>The name of your federal agency will be publicly listed as the domain registrant.</p> <p>The name of your organization will be publicly listed as the domain registrant.</p>
{% if has_edit_org_portfolio_permission %} {% if has_edit_org_portfolio_permission %}
<p> <p>
The federal agency for your organization cant be updated here. Your organization name cant be updated here.
To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>. To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>.
</p> </p>
{% include "includes/form_errors.html" with form=form %} {% include "includes/form_errors.html" with form=form %}
{% include "includes/required_fields.html" %} {% include "includes/required_fields.html" %}
<form class="usa-form usa-form--large" method="post" novalidate> <form class="usa-form usa-form--large desktop:margin-top-4" method="post" novalidate>
{% csrf_token %} {% csrf_token %}
<h4 class="read-only-label">Federal agency</h4> <h4 class="read-only-label">Organization name</h4>
<p class="read-only-value"> <p class="read-only-value">
{{ portfolio.federal_agency }} {{ portfolio.federal_agency }}
</p> </p>
@ -49,7 +53,7 @@
</button> </button>
</form> </form>
{% else %} {% else %}
<h4 class="read-only-label">Federal agency</h4> <h4 class="read-only-label">Organization name</h4>
<p class="read-only-value"> <p class="read-only-value">
{{ portfolio.federal_agency }} {{ portfolio.federal_agency }}
</p> </p>

View file

@ -9,6 +9,10 @@
{% endblock %} {% endblock %}
{% block portfolio_content %} {% block portfolio_content %}
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
<div id="main-content"> <div id="main-content">
<h1 id="domain-requests-header">Domain requests</h1> <h1 id="domain-requests-header">Domain requests</h1>
<div class="grid-row grid-gap"> <div class="grid-row grid-gap">

View file

@ -6,6 +6,10 @@
{% load static %} {% load static %}
{% block portfolio_content %} {% block portfolio_content %}
{% block messages %}
{% include "includes/form_messages.html" %}
{% endblock %}
<div class="grid-row grid-gap"> <div class="grid-row grid-gap">
<div class="tablet:grid-col-3"> <div class="tablet:grid-col-3">
<p class="font-body-md margin-top-0 margin-bottom-2 <p class="font-body-md margin-top-0 margin-bottom-2

View file

@ -1306,7 +1306,9 @@ class TestDomainOrganization(TestDomainOverview):
"""Can load domain's org name and mailing address page.""" """Can load domain's org name and mailing address page."""
page = self.client.get(reverse("domain-org-name-address", kwargs={"pk": self.domain.id})) page = self.client.get(reverse("domain-org-name-address", kwargs={"pk": self.domain.id}))
# once on the sidebar, once in the page title, once as H1 # once on the sidebar, once in the page title, once as H1
self.assertContains(page, "Organization name and mailing address", count=4) self.assertContains(page, "/org-name-address")
self.assertContains(page, "Organization name and mailing address")
self.assertContains(page, "Organization</h1>")
@less_console_noise_decorator @less_console_noise_decorator
def test_domain_org_name_address_content(self): def test_domain_org_name_address_content(self):
@ -1615,7 +1617,7 @@ class TestDomainSuborganization(TestDomainOverview):
# Test for the title change # Test for the title change
self.assertContains(page, "Suborganization") self.assertContains(page, "Suborganization")
self.assertNotContains(page, "Organization name") self.assertNotContains(page, "Organization")
# Test for the good value # Test for the good value
self.assertContains(page, "Ice Cream") self.assertContains(page, "Ice Cream")

View file

@ -200,7 +200,7 @@ class TestPortfolio(WebTest):
# Assert the response is a 200 # Assert the response is a 200
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
# The label for Federal agency will always be a h4 # The label for Federal agency will always be a h4
self.assertContains(response, '<h4 class="read-only-label">Federal agency</h4>') self.assertContains(response, '<h4 class="read-only-label">Organization name</h4>')
# The read only label for city will be a h4 # The read only label for city will be a h4
self.assertContains(response, '<h4 class="read-only-label">City</h4>') self.assertContains(response, '<h4 class="read-only-label">City</h4>')
self.assertNotContains(response, 'for="id_city"') self.assertNotContains(response, 'for="id_city"')
@ -225,10 +225,10 @@ class TestPortfolio(WebTest):
# Assert the response is a 200 # Assert the response is a 200
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
# The label for Federal agency will always be a h4 # The label for Federal agency will always be a h4
self.assertContains(response, '<h4 class="read-only-label">Federal agency</h4>') self.assertContains(response, '<h4 class="read-only-label">Organization name</h4>')
# The read only label for city will be a h4 # The read only label for city will be a h4
self.assertNotContains(response, '<h4 class="read-only-label">City</h4>') self.assertNotContains(response, '<h4 class="read-only-label">City</h4>')
self.assertNotContains(response, '<p class="read-only-value">Los Angeles</p>>') self.assertNotContains(response, '<p class="read-only-value">Los Angeles</p>')
self.assertContains(response, 'for="id_city"') self.assertContains(response, 'for="id_city"')
@less_console_noise_decorator @less_console_noise_decorator
@ -342,9 +342,7 @@ class TestPortfolio(WebTest):
user=self.user, portfolio=self.portfolio, additional_permissions=portfolio_additional_permissions user=self.user, portfolio=self.portfolio, additional_permissions=portfolio_additional_permissions
) )
page = self.app.get(reverse("organization")) page = self.app.get(reverse("organization"))
self.assertContains( self.assertContains(page, "The name of your organization will be publicly listed as the domain registrant.")
page, "The name of your federal agency will be publicly listed as the domain registrant."
)
@less_console_noise_decorator @less_console_noise_decorator
def test_domain_org_name_address_content(self): def test_domain_org_name_address_content(self):

View file

@ -204,7 +204,7 @@ class DomainView(DomainBaseView):
class DomainOrgNameAddressView(DomainFormBaseView): class DomainOrgNameAddressView(DomainFormBaseView):
"""Organization name and mailing address view""" """Organization view"""
model = Domain model = Domain
template_name = "domain_org_name_address.html" template_name = "domain_org_name_address.html"

View file

@ -83,7 +83,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
Step.TRIBAL_GOVERNMENT: _("Tribal government"), Step.TRIBAL_GOVERNMENT: _("Tribal government"),
Step.ORGANIZATION_FEDERAL: _("Federal government branch"), Step.ORGANIZATION_FEDERAL: _("Federal government branch"),
Step.ORGANIZATION_ELECTION: _("Election office"), Step.ORGANIZATION_ELECTION: _("Election office"),
Step.ORGANIZATION_CONTACT: _("Organization name and mailing address"), Step.ORGANIZATION_CONTACT: _("Organization"),
Step.ABOUT_YOUR_ORGANIZATION: _("About your organization"), Step.ABOUT_YOUR_ORGANIZATION: _("About your organization"),
Step.SENIOR_OFFICIAL: _("Senior official"), Step.SENIOR_OFFICIAL: _("Senior official"),
Step.CURRENT_SITES: _("Current websites"), Step.CURRENT_SITES: _("Current websites"),