diff --git a/src/registrar/templates/403.html b/src/registrar/templates/403.html
index 660e5d34c..ef910a191 100644
--- a/src/registrar/templates/403.html
+++ b/src/registrar/templates/403.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Forbidden | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/404.html b/src/registrar/templates/404.html
index cf6983c60..024c2803b 100644
--- a/src/registrar/templates/404.html
+++ b/src/registrar/templates/404.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Page not found | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html
index dfbd90142..95c17e069 100644
--- a/src/registrar/templates/500.html
+++ b/src/registrar/templates/500.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Server error | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html
index e5bd1b0b9..b14dab2fa 100644
--- a/src/registrar/templates/base.html
+++ b/src/registrar/templates/base.html
@@ -78,7 +78,7 @@
-
+
diff --git a/src/registrar/templates/django/admin/domain_request_change_form.html b/src/registrar/templates/django/admin/domain_request_change_form.html
index 0396326d9..afdd9e6c2 100644
--- a/src/registrar/templates/django/admin/domain_request_change_form.html
+++ b/src/registrar/templates/django/admin/domain_request_change_form.html
@@ -8,6 +8,8 @@
{# Store the current object id so we can access it easier #}
+ {% url 'get-action-needed-email-for-user-json' as url %}
+
{% for fieldset in adminform %}
{% comment %}
TODO: this will eventually need to be changed to something like this
diff --git a/src/registrar/templates/django/admin/includes/contact_detail_list.html b/src/registrar/templates/django/admin/includes/contact_detail_list.html
index 7cc72e8e1..0a28a6532 100644
--- a/src/registrar/templates/django/admin/includes/contact_detail_list.html
+++ b/src/registrar/templates/django/admin/includes/contact_detail_list.html
@@ -39,7 +39,7 @@
None
{% endif %}
- {% else %}
+ {% elif not hide_no_contact_info_message %}
No additional contact information found.
{% endif %}
diff --git a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
index e22bcb571..6b755724e 100644
--- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
+++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
@@ -66,24 +66,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
No changelog to display.
{% endif %}
- {% elif field.field.name == "action_needed_reason_email" %}
-
-
-
-
- No email will be sent.
-
-
-
{% elif field.field.name == "other_contacts" %}
{% if all_contacts.count > 2 %}
@@ -137,7 +119,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endfor %}
{% endwith %}
- {% elif field.field.name == "display_admins" %}
+ {% elif field.field.name == "domain_managers" or field.field.name == "invited_domain_managers" %}
{{ field.contents|safe }}
{% elif field.field.name == "display_members" %}
@@ -155,131 +137,102 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% block field_other %}
{% if field.field.name == "action_needed_reason_email" %}
-
-
- -
+
+
+ –
-
-
-
-
- Auto-generated email that will be sent to the creator
-
-
- Email sent to the creator
+
+ {{ field.field }}
+
+
+
Edit email
+
+
+
+
+ Are you sure you want to edit this email?
+
+
+
+ The creator of this request already received an email for this status/reason:
+
+
+ - Status: Action needed
+ - Reason: {{ original_object.get_action_needed_reason_display }}
+
+
+ If you edit this email's text, the system will send another email to
+ the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
- Edit email
-
-
-
-
-
- Are you sure you want to edit this email?
-
-
-
- The creator of this request already received an email for this status/reason:
-
-
- - Status: Action needed
- - Reason: {{ original_object.get_action_needed_reason_display }}
-
-
- If you edit this email's text, the system will send another email to
- the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
+
+
+ -
+
+
+ -
+
+
+
-
-
-
-
- {{ field.field }}
-
-
+
-
- {% if not action_needed_email_sent %}
- This email will be sent to the creator of this request after saving
+
+ {% if original_object.action_needed_reason_email %}
+
{% else %}
- This email has been sent to the creator of this request
+
{% endif %}
-
-
+
{% else %}
{{ field.field }}
{% endif %}
{% endblock field_other %}
{% block after_help_text %}
- {% if field.field.name == "action_needed_reason_email" %}
- {% comment %}
- Store the action needed reason emails in a json-based dictionary.
- This allows us to change the action_needed_reason_email field dynamically, depending on value.
- The alternative to this is an API endpoint.
-
- Given that we have a limited number of emails, doing it this way makes sense.
- {% endcomment %}
- {% if action_needed_reason_emails %}
-
- {% endif %}
- {% elif field.field.name == "creator" %}
+ {% if field.field.name == "creator" %}
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.creator no_title_top_padding=field.is_readonly user_verification_type=original_object.creator.get_verification_type_display%}
@@ -335,13 +288,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endif %}
{% endwith %}
- {% elif field.field.name == "display_members" and field.contents %}
-
- Details
-
- {{ field.contents|safe }}
-
-
{% elif field.field.name == "state_territory" and original_object|model_name_lowercase != 'portfolio' %}
diff --git a/src/registrar/templates/django/admin/includes/details_button.html b/src/registrar/templates/django/admin/includes/details_button.html
new file mode 100644
index 000000000..73748f170
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/details_button.html
@@ -0,0 +1,9 @@
+
+{% comment %} This view provides a detail button that can be used to show/hide content {% endcomment %}
+
+ Details
+
+ {% block detail_content %}
+ {% endblock detail_content%}
+
+
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
new file mode 100644
index 000000000..4ea9225da
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
@@ -0,0 +1,48 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+
+
+
+ {% for admin in admins %}
+ {% url 'admin:registrar_userportfoliopermission_change' admin.pk as url %}
+
+ {{ admin.user.get_formatted_name}}
+ {{ admin.user.title }}
+
+ {% if admin.user.email %}
+ {{ admin.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ admin.user.phone }}
+
+ {% if admin.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
new file mode 100644
index 000000000..46303efce
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
@@ -0,0 +1,26 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Status
+
+
+
+ {% for domain_request in domain_requests %}
+ {% url 'admin:registrar_domainrequest_change' domain_request.pk as url %}
+
+ {{ domain_request }}
+ {% if domain_request.get_status_display %}
+ {{ domain_request.get_status_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
new file mode 100644
index 000000000..56621b769
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
@@ -0,0 +1,30 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ State
+
+
+
+ {% for domain_info in domains %}
+ {% if domain_info.domain %}
+ {% with domain=domain_info.domain %}
+ {% url 'admin:registrar_domain_change' domain.pk as url %}
+
+ {{ domain }}
+ {% if domain and domain.get_state_display %}
+ {{ domain.get_state_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endwith %}
+ {% endif %}
+ {% endfor %}
+
+
+{% endblock detail_content%}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
new file mode 100644
index 000000000..87b56cb60
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
@@ -0,0 +1,61 @@
+{% extends "django/admin/includes/detail_table_fieldset.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block field_readonly %}
+ {% if field.field.name == "display_admins" or field.field.name == "display_members" %}
+ {{ field.contents|safe }}
+ {% elif field.field.name == "roles" %}
+
+ {% if get_readable_roles %}
+ {{ get_readable_roles }}
+ {% else %}
+ No roles found.
+ {% endif %}
+
+ {% elif field.field.name == "additional_permissions" %}
+
+ {% if display_permissions %}
+ {{ display_permissions }}
+ {% else %}
+ No additional permissions found.
+ {% endif %}
+
+ {% elif field.field.name == "senior_official" %}
+ {% if original_object.senior_official %}
+ {{ field.contents }}
+ {% else %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
+ {% endif %}
+ {% else %}
+ {{ field.contents }}
+ {% endif %}
+{% endblock field_readonly%}
+
+{% block after_help_text %}
+ {% if field.field.name == "senior_official" %}
+
+
+ {% include "django/admin/includes/contact_detail_list.html" with user=original_object.senior_official no_title_top_padding=field.is_readonly hide_no_contact_info_message=True %}
+
+ {% elif field.field.name == "display_admins" %}
+ {% if admins|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_admins_table.html" with admins=admins %}
+ {% endif %}
+ {% elif field.field.name == "display_members" %}
+ {% if members|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_members_table.html" with members=members %}
+ {% endif %}
+ {% elif field.field.name == "domains" %}
+ {% if domains|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domains_table.html" with domains=domains %}
+ {% endif %}
+ {% elif field.field.name == "domain_requests" %}
+ {% if domain_requests|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domain_requests_table.html" with domain_requests=domain_requests %}
+ {% endif %}
+ {% endif %}
+{% endblock after_help_text %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
new file mode 100644
index 000000000..136fe3a5a
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
@@ -0,0 +1,55 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+ Roles
+
+
+
+ {% for member in members %}
+ {% url 'admin:registrar_userportfoliopermission_change' member.pk as url %}
+
+ {{ member.user.get_formatted_name}}
+ {{ member.user.title }}
+
+ {% if member.user.email %}
+ {{ member.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ member.user.phone }}
+
+ {% for role in member.user|portfolio_role_summary:original %}
+ {{ role }}
+ {% endfor %}
+
+
+ {% if member.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock %}
diff --git a/src/registrar/templates/django/admin/portfolio_change_form.html b/src/registrar/templates/django/admin/portfolio_change_form.html
index 8dae8a080..8de6cd5eb 100644
--- a/src/registrar/templates/django/admin/portfolio_change_form.html
+++ b/src/registrar/templates/django/admin/portfolio_change_form.html
@@ -8,19 +8,14 @@
{% url 'get-federal-and-portfolio-types-from-federal-agency-json' as url %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
{{ block.super }}
{% endblock content %}
{% block field_sets %}
{% for fieldset in adminform %}
- {% comment %}
- This is a placeholder for now.
-
- Disclaimer:
- When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
- detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
- {% endcomment %}
- {% include "django/admin/includes/detail_table_fieldset.html" with original_object=original %}
+ {% include "django/admin/includes/portfolio/portfolio_fieldset.html" with original_object=original %}
{% endfor %}
{% endblock %}
diff --git a/src/registrar/templates/django/admin/suborg_change_form.html b/src/registrar/templates/django/admin/suborg_change_form.html
index 005d67aec..25fe5700d 100644
--- a/src/registrar/templates/django/admin/suborg_change_form.html
+++ b/src/registrar/templates/django/admin/suborg_change_form.html
@@ -8,27 +8,35 @@
Domain requests
- {% for domain_request in domain_requests %}
- -
-
- {{ domain_request.requested_domain }}
-
- ({{ domain_request.status }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain_request in domain_requests %}
+ -
+
+ {{ domain_request.requested_domain }}
+
+ ({{ domain_request.status }})
+
+ {% endfor %}
+ {% else %}
+ - No domain requests.
+ {% endif %}
Domains
- {% for domain in domains %}
- -
-
- {{ domain.name }}
-
- ({{ domain.state }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain in domains %}
+ -
+
+ {{ domain.name }}
+
+ ({{ domain.state }})
+
+ {% endfor %}
+ {% else %}
+ - No domains.
+ {% endif %}
diff --git a/src/registrar/templates/django/admin/user_change_form.html b/src/registrar/templates/django/admin/user_change_form.html
index 736f12ba4..c0ddd8caf 100644
--- a/src/registrar/templates/django/admin/user_change_form.html
+++ b/src/registrar/templates/django/admin/user_change_form.html
@@ -17,26 +17,6 @@
{% endblock %}
{% block after_related_objects %}
- {% if portfolios %}
-
- Portfolio information
-
-
- Portfolios
-
- {% for portfolio in portfolios %}
- -
-
- {{ portfolio }}
-
-
- {% endfor %}
-
-
-
-
- {% endif %}
-
Associated requests and domains
diff --git a/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
new file mode 100644
index 000000000..1249a486c
--- /dev/null
+++ b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
@@ -0,0 +1,16 @@
+{% extends 'django/admin/email_clipboard_change_form.html' %}
+{% load custom_filters %}
+{% load i18n static %}
+
+{% block field_sets %}
+ {% for fieldset in adminform %}
+ {% comment %}
+ This is a placeholder for now.
+
+ Disclaimer:
+ When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
+ detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
+ {% endcomment %}
+ {% include "django/admin/includes/user_portfolio_permission_fieldset.html" with original_object=original %}
+ {% endfor %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/registrar/templates/domain_base.html b/src/registrar/templates/domain_base.html
index b99b12740..9f7e8d2e6 100644
--- a/src/registrar/templates/domain_base.html
+++ b/src/registrar/templates/domain_base.html
@@ -9,7 +9,7 @@
Domain name: {{ domain.name }}
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html
index 4b6ca6e77..dca68f6ef 100644
--- a/src/registrar/templates/domain_detail.html
+++ b/src/registrar/templates/domain_detail.html
@@ -5,7 +5,7 @@
{% block domain_content %}
{{ block.super }}
- {{ domain.name }}
+ {{ domain.name }}
-
- {% if step == Step.ORGANIZATION_TYPE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.generic_org_type is not None %}
- {% with title=form_titles|get_item:step value=domain_request.get_generic_org_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.TRIBAL_GOVERNMENT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.tribe_name|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% if domain_request.federally_recognized_tribe %}Federally-recognized tribe
{% endif %}
- {% if domain_request.state_recognized_tribe %}State-recognized tribe
{% endif %}
- {% endif %}
-
-
- {% if step == Step.ORGANIZATION_FEDERAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.get_federal_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_ELECTION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.organization_name %}
- {% with title=form_titles|get_item:step value=domain_request %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url address='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.ABOUT_YOUR_ORGANIZATION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.about_your_organization|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.SENIOR_OFFICIAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.senior_official is not None %}
- {% with title=form_titles|get_item:step value=domain_request.senior_official %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.CURRENT_SITES %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.current_websites.all %}
- {% with title=form_titles|get_item:step value=domain_request.current_websites.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value='None' %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.DOTGOV_DOMAIN %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete"|safe%}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
-
- {% if domain_request.alternative_domains.all %}
- Alternative domains
-
- {% for site in domain_request.alternative_domains.all %}
- - {{ site.website }}
- {% endfor %}
-
- {% endif %}
- {% endif %}
-
- {% if step == Step.PURPOSE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.purpose|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.YOUR_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.creator is not None %}
- {% with title=form_titles|get_item:step value=domain_request.creator %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.OTHER_CONTACTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.other_contacts.all %}
- {% with title=form_titles|get_item:step value=domain_request.other_contacts.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value=domain_request.no_other_contacts_rationale|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
-
- {% if step == Step.ADDITIONAL_DETAILS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step %}
- {% if domain_request.has_additional_details %}
- {% include "includes/summary_item.html" with title="Additional Details" value=" " heading_level=heading_level editable=True edit_link=domain_request_url %}
- CISA Regional Representative
-
- {% if domain_request.cisa_representative_first_name %}
- - {{domain_request.cisa_representative_first_name}} {{domain_request.cisa_representative_last_name}}
- {% if domain_request.cisa_representative_email %}
- - {{domain_request.cisa_representative_email}}
- {% endif %}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if domain_request.anything_else %}
- {{domain_request.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% else %}
- {% include "includes/summary_item.html" with title="Additional Details" value="Incomplete"|safe heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endif %}
- {% endwith %}
- {% endif %}
-
-
- {% if step == Step.REQUIREMENTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_policy_acknowledged|yesno:"I agree.,I do not agree.,I do not agree." %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
-
-
-
- {% endfor %}
+ {% include "includes/request_review_steps.html" with is_editable=True %}
{% endblock %}
diff --git a/src/registrar/templates/domain_request_status.html b/src/registrar/templates/domain_request_status.html
index 460f6ae29..d332ce54e 100644
--- a/src/registrar/templates/domain_request_status.html
+++ b/src/registrar/templates/domain_request_status.html
@@ -1,206 +1,10 @@
{% extends 'base.html' %}
-
{% load custom_filters %}
-
-{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
{% load static url_helpers %}
+{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
+
+
{% block content %}
-
-
- {% if portfolio %}
- {% url 'domain-requests' as url %}
- {% else %}
- {% url 'home' as url %}
- {% endif %}
-
-
- Domain request for {{ DomainRequest.requested_domain.name }}
-
-
-
-
- Status:
-
- {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
-
-
-
-
-
- {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
- {% comment %}
- These are intentionally seperated this way.
- There is some code repetition, but it gives us more flexibility rather than a dense reduction.
- Leave it this way until we've solidified our requirements.
- {% endcomment %}
- {% if DomainRequest.status == statuses.STARTED %}
- {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
-
- {% comment %}
- A newly created domain request will not have a value for last_status update.
- This is because the status never really updated.
- However, if this somehow goes back to started we can default to displaying that new date.
- {% endcomment %}
- Started on: {{last_status_update|default:first_started_date}}
-
- {% endwith %}
- {% elif DomainRequest.status == statuses.SUBMITTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.REJECTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Rejected on: {{last_status_update}}
-
- {% elif DomainRequest.status == statuses.WITHDRAWN %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Withdrawn on: {{last_status_update}}
-
- {% else %}
- {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% endif %}
-
- {% if DomainRequest.status != 'rejected' %}
- {% include "includes/domain_request.html" %}
-
- {% endif %}
- {% endwith %}
-
-
-
- Summary of your domain request
- {% with heading_level='h3' %}
- {% with org_type=DomainRequest.get_generic_org_type_display %}
- {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
- {% endwith %}
-
- {% if DomainRequest.tribe_name %}
- {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
-
- {% if DomainRequest.federally_recognized_tribe %}
- Federally-recognized tribe
- {% endif %}
-
- {% if DomainRequest.state_recognized_tribe %}
- State-recognized tribe
- {% endif %}
-
- {% endif %}
-
- {% if DomainRequest.get_federal_type_display %}
- {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.is_election_board %}
- {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
- {% endwith %}
- {% endif %}
-
- {% if DomainRequest.organization_name %}
- {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.about_your_organization %}
- {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.senior_official %}
- {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.current_websites.all %}
- {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.requested_domain %}
- {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.alternative_domains.all %}
- {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.purpose %}
- {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.creator %}
- {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
- {% endif %}
- {% if DomainRequest.other_contacts.all %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
- {% else %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
- {% endif %}
-
- {# We always show this field even if None #}
- {% if DomainRequest %}
- CISA Regional Representative
-
- {% if DomainRequest.cisa_representative_first_name %}
- {{ DomainRequest.get_formatted_cisa_rep_name }}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if DomainRequest.anything_else %}
- {{DomainRequest.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% endif %}
- {% endwith %}
-
-
-
+ {% include "includes/request_status_manage.html" %}
{% endblock %}
diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html
index 63924bc1d..65c52ec9e 100644
--- a/src/registrar/templates/home.html
+++ b/src/registrar/templates/home.html
@@ -5,7 +5,7 @@
{% block title %} Home | {% endblock %}
{% block content %}
-
+
{% if user.is_authenticated %}
{# the entire logged in page goes here #}
diff --git a/src/registrar/templates/includes/domain_request.html b/src/registrar/templates/includes/domain_request_awaiting_review.html
similarity index 57%
rename from src/registrar/templates/includes/domain_request.html
rename to src/registrar/templates/includes/domain_request_awaiting_review.html
index 0e377f35c..cc9b31ccb 100644
--- a/src/registrar/templates/includes/domain_request.html
+++ b/src/registrar/templates/includes/domain_request_awaiting_review.html
@@ -5,8 +5,10 @@
We received your .gov domain request. Our next step is to review your request. This usually takes 30 business days. We’ll email you if we have questions and when we complete our review. Contact us with any questions.
-
- Need to make changes?
-
+{% if show_withdraw_text %}
+
+ Need to make changes?
+
-If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+ If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+{% endif %}
diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html
new file mode 100644
index 000000000..2a254df4b
--- /dev/null
+++ b/src/registrar/templates/includes/domain_request_status_manage.html
@@ -0,0 +1,236 @@
+{% load custom_filters %}
+{% load static url_helpers %}
+
+
+ {% block breadcrumb %}
+ {% if portfolio %}
+ {% url 'domain-requests' as url %}
+ {% else %}
+ {% url 'home' as url %}
+ {% endif %}
+
+ {% endblock breadcrumb %}
+
+ {% block header %}
+ {% if not DomainRequest.requested_domain and DomainRequest.status == DomainRequest.DomainRequestStatus.STARTED %}
+ New domain request
+ {% else %}
+ Domain request for {{ DomainRequest.requested_domain.name }}
+ {% endif %}
+ {% endblock header %}
+
+ {% block status_summary %}
+
+
+
+
+ Status:
+
+ {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
+
+
+
+
+ {% endblock status_summary %}
+
+ {% block status_metadata %}
+
+ {% if portfolio %}
+ {% if DomainRequest.creator %}
+
+ Created by: {{DomainRequest.creator.email|default:DomainRequest.creator.get_formatted_name }}
+
+ {% else %}
+
+ No creator found: this is an error, please email help@get.gov.
+
+ {% endif %}
+ {% endif %}
+
+ {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
+ {% comment %}
+ These are intentionally seperated this way.
+ There is some code repetition, but it gives us more flexibility rather than a dense reduction.
+ Leave it this way until we've solidified our requirements.
+ {% endcomment %}
+ {% if DomainRequest.status == statuses.STARTED %}
+ {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
+
+ {% comment %}
+ A newly created domain request will not have a value for last_status update.
+ This is because the status never really updated.
+ However, if this somehow goes back to started we can default to displaying that new date.
+ {% endcomment %}
+ Started on: {{last_status_update|default:first_started_date}}
+
+ {% endwith %}
+ {% elif DomainRequest.status == statuses.SUBMITTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.REJECTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Rejected on: {{last_status_update}}
+
+ {% elif DomainRequest.status == statuses.WITHDRAWN %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Withdrawn on: {{last_status_update}}
+
+ {% else %}
+ {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock status_metadata %}
+
+ {% block status_blurb %}
+ {% if DomainRequest.is_awaiting_review %}
+ {% include "includes/domain_request_awaiting_review.html" with show_withdraw_text=DomainRequest.is_withdrawable %}
+ {% endif %}
+ {% endblock status_blurb %}
+
+ {% block modify_request %}
+ {% if DomainRequest.is_withdrawable %}
+
+ {% endif %}
+ {% endblock modify_request %}
+
+
+
+ {% block request_summary_header %}
+ Summary of your domain request
+ {% endblock request_summary_header%}
+
+ {% block request_summary %}
+ {% with heading_level='h3' %}
+ {% with org_type=DomainRequest.get_generic_org_type_display %}
+ {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
+ {% endwith %}
+
+ {% if DomainRequest.tribe_name %}
+ {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
+
+ {% if DomainRequest.federally_recognized_tribe %}
+ Federally-recognized tribe
+ {% endif %}
+
+ {% if DomainRequest.state_recognized_tribe %}
+ State-recognized tribe
+ {% endif %}
+
+ {% endif %}
+
+ {% if DomainRequest.get_federal_type_display %}
+ {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.is_election_board %}
+ {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
+ {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
+ {% endwith %}
+ {% endif %}
+
+ {% if DomainRequest.organization_name %}
+ {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.about_your_organization %}
+ {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.senior_official %}
+ {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.current_websites.all %}
+ {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.requested_domain %}
+ {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.alternative_domains.all %}
+ {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.purpose %}
+ {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.creator %}
+ {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.other_contacts.all %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
+ {% else %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
+ {% endif %}
+
+ {# We always show this field even if None #}
+ {% if DomainRequest %}
+ CISA Regional Representative
+
+ {% if DomainRequest.cisa_representative_first_name %}
+ {{ DomainRequest.get_formatted_cisa_rep_name }}
+ {% else %}
+ No
+ {% endif %}
+
+ Anything else
+
+ {% if DomainRequest.anything_else %}
+ {{DomainRequest.anything_else}}
+ {% else %}
+ No
+ {% endif %}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock request_summary%}
+
+
\ No newline at end of file
diff --git a/src/registrar/templates/includes/domains_table.html b/src/registrar/templates/includes/domains_table.html
index 76ead3a2c..11d3ac945 100644
--- a/src/registrar/templates/includes/domains_table.html
+++ b/src/registrar/templates/includes/domains_table.html
@@ -13,7 +13,7 @@
{% endif %}
-
+
diff --git a/src/registrar/templates/404.html b/src/registrar/templates/404.html
index cf6983c60..024c2803b 100644
--- a/src/registrar/templates/404.html
+++ b/src/registrar/templates/404.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Page not found | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html
index dfbd90142..95c17e069 100644
--- a/src/registrar/templates/500.html
+++ b/src/registrar/templates/500.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Server error | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html
index e5bd1b0b9..b14dab2fa 100644
--- a/src/registrar/templates/base.html
+++ b/src/registrar/templates/base.html
@@ -78,7 +78,7 @@
-
+
diff --git a/src/registrar/templates/django/admin/domain_request_change_form.html b/src/registrar/templates/django/admin/domain_request_change_form.html
index 0396326d9..afdd9e6c2 100644
--- a/src/registrar/templates/django/admin/domain_request_change_form.html
+++ b/src/registrar/templates/django/admin/domain_request_change_form.html
@@ -8,6 +8,8 @@
{# Store the current object id so we can access it easier #}
+ {% url 'get-action-needed-email-for-user-json' as url %}
+
{% for fieldset in adminform %}
{% comment %}
TODO: this will eventually need to be changed to something like this
diff --git a/src/registrar/templates/django/admin/includes/contact_detail_list.html b/src/registrar/templates/django/admin/includes/contact_detail_list.html
index 7cc72e8e1..0a28a6532 100644
--- a/src/registrar/templates/django/admin/includes/contact_detail_list.html
+++ b/src/registrar/templates/django/admin/includes/contact_detail_list.html
@@ -39,7 +39,7 @@
None
{% endif %}
- {% else %}
+ {% elif not hide_no_contact_info_message %}
No additional contact information found.
{% endif %}
diff --git a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
index e22bcb571..6b755724e 100644
--- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
+++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
@@ -66,24 +66,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
No changelog to display.
{% endif %}
- {% elif field.field.name == "action_needed_reason_email" %}
-
-
-
-
- No email will be sent.
-
-
-
{% elif field.field.name == "other_contacts" %}
{% if all_contacts.count > 2 %}
@@ -137,7 +119,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endfor %}
{% endwith %}
- {% elif field.field.name == "display_admins" %}
+ {% elif field.field.name == "domain_managers" or field.field.name == "invited_domain_managers" %}
{{ field.contents|safe }}
{% elif field.field.name == "display_members" %}
@@ -155,131 +137,102 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% block field_other %}
{% if field.field.name == "action_needed_reason_email" %}
-
-
- -
+
+
+ –
-
-
-
-
- Auto-generated email that will be sent to the creator
-
-
- Email sent to the creator
+
+ {{ field.field }}
+
+
+
Edit email
+
+
+
+
+ Are you sure you want to edit this email?
+
+
+
+ The creator of this request already received an email for this status/reason:
+
+
+ - Status: Action needed
+ - Reason: {{ original_object.get_action_needed_reason_display }}
+
+
+ If you edit this email's text, the system will send another email to
+ the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
- Edit email
-
-
-
-
-
- Are you sure you want to edit this email?
-
-
-
- The creator of this request already received an email for this status/reason:
-
-
- - Status: Action needed
- - Reason: {{ original_object.get_action_needed_reason_display }}
-
-
- If you edit this email's text, the system will send another email to
- the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
+
+
+ -
+
+
+ -
+
+
+
-
-
-
-
- {{ field.field }}
-
-
+
-
- {% if not action_needed_email_sent %}
- This email will be sent to the creator of this request after saving
+
+ {% if original_object.action_needed_reason_email %}
+
{% else %}
- This email has been sent to the creator of this request
+
{% endif %}
-
-
+
{% else %}
{{ field.field }}
{% endif %}
{% endblock field_other %}
{% block after_help_text %}
- {% if field.field.name == "action_needed_reason_email" %}
- {% comment %}
- Store the action needed reason emails in a json-based dictionary.
- This allows us to change the action_needed_reason_email field dynamically, depending on value.
- The alternative to this is an API endpoint.
-
- Given that we have a limited number of emails, doing it this way makes sense.
- {% endcomment %}
- {% if action_needed_reason_emails %}
-
- {% endif %}
- {% elif field.field.name == "creator" %}
+ {% if field.field.name == "creator" %}
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.creator no_title_top_padding=field.is_readonly user_verification_type=original_object.creator.get_verification_type_display%}
@@ -335,13 +288,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endif %}
{% endwith %}
- {% elif field.field.name == "display_members" and field.contents %}
-
- Details
-
- {{ field.contents|safe }}
-
-
{% elif field.field.name == "state_territory" and original_object|model_name_lowercase != 'portfolio' %}
diff --git a/src/registrar/templates/django/admin/includes/details_button.html b/src/registrar/templates/django/admin/includes/details_button.html
new file mode 100644
index 000000000..73748f170
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/details_button.html
@@ -0,0 +1,9 @@
+
+{% comment %} This view provides a detail button that can be used to show/hide content {% endcomment %}
+
+ Details
+
+ {% block detail_content %}
+ {% endblock detail_content%}
+
+
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
new file mode 100644
index 000000000..4ea9225da
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
@@ -0,0 +1,48 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+
+
+
+ {% for admin in admins %}
+ {% url 'admin:registrar_userportfoliopermission_change' admin.pk as url %}
+
+ {{ admin.user.get_formatted_name}}
+ {{ admin.user.title }}
+
+ {% if admin.user.email %}
+ {{ admin.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ admin.user.phone }}
+
+ {% if admin.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
new file mode 100644
index 000000000..46303efce
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
@@ -0,0 +1,26 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Status
+
+
+
+ {% for domain_request in domain_requests %}
+ {% url 'admin:registrar_domainrequest_change' domain_request.pk as url %}
+
+ {{ domain_request }}
+ {% if domain_request.get_status_display %}
+ {{ domain_request.get_status_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
new file mode 100644
index 000000000..56621b769
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
@@ -0,0 +1,30 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ State
+
+
+
+ {% for domain_info in domains %}
+ {% if domain_info.domain %}
+ {% with domain=domain_info.domain %}
+ {% url 'admin:registrar_domain_change' domain.pk as url %}
+
+ {{ domain }}
+ {% if domain and domain.get_state_display %}
+ {{ domain.get_state_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endwith %}
+ {% endif %}
+ {% endfor %}
+
+
+{% endblock detail_content%}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
new file mode 100644
index 000000000..87b56cb60
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
@@ -0,0 +1,61 @@
+{% extends "django/admin/includes/detail_table_fieldset.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block field_readonly %}
+ {% if field.field.name == "display_admins" or field.field.name == "display_members" %}
+ {{ field.contents|safe }}
+ {% elif field.field.name == "roles" %}
+
+ {% if get_readable_roles %}
+ {{ get_readable_roles }}
+ {% else %}
+ No roles found.
+ {% endif %}
+
+ {% elif field.field.name == "additional_permissions" %}
+
+ {% if display_permissions %}
+ {{ display_permissions }}
+ {% else %}
+ No additional permissions found.
+ {% endif %}
+
+ {% elif field.field.name == "senior_official" %}
+ {% if original_object.senior_official %}
+ {{ field.contents }}
+ {% else %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
+ {% endif %}
+ {% else %}
+ {{ field.contents }}
+ {% endif %}
+{% endblock field_readonly%}
+
+{% block after_help_text %}
+ {% if field.field.name == "senior_official" %}
+
+
+ {% include "django/admin/includes/contact_detail_list.html" with user=original_object.senior_official no_title_top_padding=field.is_readonly hide_no_contact_info_message=True %}
+
+ {% elif field.field.name == "display_admins" %}
+ {% if admins|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_admins_table.html" with admins=admins %}
+ {% endif %}
+ {% elif field.field.name == "display_members" %}
+ {% if members|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_members_table.html" with members=members %}
+ {% endif %}
+ {% elif field.field.name == "domains" %}
+ {% if domains|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domains_table.html" with domains=domains %}
+ {% endif %}
+ {% elif field.field.name == "domain_requests" %}
+ {% if domain_requests|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domain_requests_table.html" with domain_requests=domain_requests %}
+ {% endif %}
+ {% endif %}
+{% endblock after_help_text %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
new file mode 100644
index 000000000..136fe3a5a
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
@@ -0,0 +1,55 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+ Roles
+
+
+
+ {% for member in members %}
+ {% url 'admin:registrar_userportfoliopermission_change' member.pk as url %}
+
+ {{ member.user.get_formatted_name}}
+ {{ member.user.title }}
+
+ {% if member.user.email %}
+ {{ member.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ member.user.phone }}
+
+ {% for role in member.user|portfolio_role_summary:original %}
+ {{ role }}
+ {% endfor %}
+
+
+ {% if member.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock %}
diff --git a/src/registrar/templates/django/admin/portfolio_change_form.html b/src/registrar/templates/django/admin/portfolio_change_form.html
index 8dae8a080..8de6cd5eb 100644
--- a/src/registrar/templates/django/admin/portfolio_change_form.html
+++ b/src/registrar/templates/django/admin/portfolio_change_form.html
@@ -8,19 +8,14 @@
{% url 'get-federal-and-portfolio-types-from-federal-agency-json' as url %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
{{ block.super }}
{% endblock content %}
{% block field_sets %}
{% for fieldset in adminform %}
- {% comment %}
- This is a placeholder for now.
-
- Disclaimer:
- When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
- detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
- {% endcomment %}
- {% include "django/admin/includes/detail_table_fieldset.html" with original_object=original %}
+ {% include "django/admin/includes/portfolio/portfolio_fieldset.html" with original_object=original %}
{% endfor %}
{% endblock %}
diff --git a/src/registrar/templates/django/admin/suborg_change_form.html b/src/registrar/templates/django/admin/suborg_change_form.html
index 005d67aec..25fe5700d 100644
--- a/src/registrar/templates/django/admin/suborg_change_form.html
+++ b/src/registrar/templates/django/admin/suborg_change_form.html
@@ -8,27 +8,35 @@
Domain requests
- {% for domain_request in domain_requests %}
- -
-
- {{ domain_request.requested_domain }}
-
- ({{ domain_request.status }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain_request in domain_requests %}
+ -
+
+ {{ domain_request.requested_domain }}
+
+ ({{ domain_request.status }})
+
+ {% endfor %}
+ {% else %}
+ - No domain requests.
+ {% endif %}
Domains
- {% for domain in domains %}
- -
-
- {{ domain.name }}
-
- ({{ domain.state }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain in domains %}
+ -
+
+ {{ domain.name }}
+
+ ({{ domain.state }})
+
+ {% endfor %}
+ {% else %}
+ - No domains.
+ {% endif %}
diff --git a/src/registrar/templates/django/admin/user_change_form.html b/src/registrar/templates/django/admin/user_change_form.html
index 736f12ba4..c0ddd8caf 100644
--- a/src/registrar/templates/django/admin/user_change_form.html
+++ b/src/registrar/templates/django/admin/user_change_form.html
@@ -17,26 +17,6 @@
{% endblock %}
{% block after_related_objects %}
- {% if portfolios %}
-
- Portfolio information
-
-
- Portfolios
-
- {% for portfolio in portfolios %}
- -
-
- {{ portfolio }}
-
-
- {% endfor %}
-
-
-
-
- {% endif %}
-
Associated requests and domains
diff --git a/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
new file mode 100644
index 000000000..1249a486c
--- /dev/null
+++ b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
@@ -0,0 +1,16 @@
+{% extends 'django/admin/email_clipboard_change_form.html' %}
+{% load custom_filters %}
+{% load i18n static %}
+
+{% block field_sets %}
+ {% for fieldset in adminform %}
+ {% comment %}
+ This is a placeholder for now.
+
+ Disclaimer:
+ When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
+ detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
+ {% endcomment %}
+ {% include "django/admin/includes/user_portfolio_permission_fieldset.html" with original_object=original %}
+ {% endfor %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/registrar/templates/domain_base.html b/src/registrar/templates/domain_base.html
index b99b12740..9f7e8d2e6 100644
--- a/src/registrar/templates/domain_base.html
+++ b/src/registrar/templates/domain_base.html
@@ -9,7 +9,7 @@
Domain name: {{ domain.name }}
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html
index 4b6ca6e77..dca68f6ef 100644
--- a/src/registrar/templates/domain_detail.html
+++ b/src/registrar/templates/domain_detail.html
@@ -5,7 +5,7 @@
{% block domain_content %}
{{ block.super }}
- {{ domain.name }}
+ {{ domain.name }}
-
- {% if step == Step.ORGANIZATION_TYPE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.generic_org_type is not None %}
- {% with title=form_titles|get_item:step value=domain_request.get_generic_org_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.TRIBAL_GOVERNMENT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.tribe_name|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% if domain_request.federally_recognized_tribe %}Federally-recognized tribe
{% endif %}
- {% if domain_request.state_recognized_tribe %}State-recognized tribe
{% endif %}
- {% endif %}
-
-
- {% if step == Step.ORGANIZATION_FEDERAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.get_federal_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_ELECTION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.organization_name %}
- {% with title=form_titles|get_item:step value=domain_request %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url address='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.ABOUT_YOUR_ORGANIZATION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.about_your_organization|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.SENIOR_OFFICIAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.senior_official is not None %}
- {% with title=form_titles|get_item:step value=domain_request.senior_official %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.CURRENT_SITES %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.current_websites.all %}
- {% with title=form_titles|get_item:step value=domain_request.current_websites.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value='None' %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.DOTGOV_DOMAIN %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete"|safe%}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
-
- {% if domain_request.alternative_domains.all %}
- Alternative domains
-
- {% for site in domain_request.alternative_domains.all %}
- - {{ site.website }}
- {% endfor %}
-
- {% endif %}
- {% endif %}
-
- {% if step == Step.PURPOSE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.purpose|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.YOUR_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.creator is not None %}
- {% with title=form_titles|get_item:step value=domain_request.creator %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.OTHER_CONTACTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.other_contacts.all %}
- {% with title=form_titles|get_item:step value=domain_request.other_contacts.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value=domain_request.no_other_contacts_rationale|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
-
- {% if step == Step.ADDITIONAL_DETAILS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step %}
- {% if domain_request.has_additional_details %}
- {% include "includes/summary_item.html" with title="Additional Details" value=" " heading_level=heading_level editable=True edit_link=domain_request_url %}
- CISA Regional Representative
-
- {% if domain_request.cisa_representative_first_name %}
- - {{domain_request.cisa_representative_first_name}} {{domain_request.cisa_representative_last_name}}
- {% if domain_request.cisa_representative_email %}
- - {{domain_request.cisa_representative_email}}
- {% endif %}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if domain_request.anything_else %}
- {{domain_request.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% else %}
- {% include "includes/summary_item.html" with title="Additional Details" value="Incomplete"|safe heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endif %}
- {% endwith %}
- {% endif %}
-
-
- {% if step == Step.REQUIREMENTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_policy_acknowledged|yesno:"I agree.,I do not agree.,I do not agree." %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
-
-
-
- {% endfor %}
+ {% include "includes/request_review_steps.html" with is_editable=True %}
{% endblock %}
diff --git a/src/registrar/templates/domain_request_status.html b/src/registrar/templates/domain_request_status.html
index 460f6ae29..d332ce54e 100644
--- a/src/registrar/templates/domain_request_status.html
+++ b/src/registrar/templates/domain_request_status.html
@@ -1,206 +1,10 @@
{% extends 'base.html' %}
-
{% load custom_filters %}
-
-{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
{% load static url_helpers %}
+{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
+
+
{% block content %}
-
-
- {% if portfolio %}
- {% url 'domain-requests' as url %}
- {% else %}
- {% url 'home' as url %}
- {% endif %}
-
-
- Domain request for {{ DomainRequest.requested_domain.name }}
-
-
-
-
- Status:
-
- {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
-
-
-
-
-
- {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
- {% comment %}
- These are intentionally seperated this way.
- There is some code repetition, but it gives us more flexibility rather than a dense reduction.
- Leave it this way until we've solidified our requirements.
- {% endcomment %}
- {% if DomainRequest.status == statuses.STARTED %}
- {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
-
- {% comment %}
- A newly created domain request will not have a value for last_status update.
- This is because the status never really updated.
- However, if this somehow goes back to started we can default to displaying that new date.
- {% endcomment %}
- Started on: {{last_status_update|default:first_started_date}}
-
- {% endwith %}
- {% elif DomainRequest.status == statuses.SUBMITTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.REJECTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Rejected on: {{last_status_update}}
-
- {% elif DomainRequest.status == statuses.WITHDRAWN %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Withdrawn on: {{last_status_update}}
-
- {% else %}
- {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% endif %}
-
- {% if DomainRequest.status != 'rejected' %}
- {% include "includes/domain_request.html" %}
-
- {% endif %}
- {% endwith %}
-
-
-
- Summary of your domain request
- {% with heading_level='h3' %}
- {% with org_type=DomainRequest.get_generic_org_type_display %}
- {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
- {% endwith %}
-
- {% if DomainRequest.tribe_name %}
- {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
-
- {% if DomainRequest.federally_recognized_tribe %}
- Federally-recognized tribe
- {% endif %}
-
- {% if DomainRequest.state_recognized_tribe %}
- State-recognized tribe
- {% endif %}
-
- {% endif %}
-
- {% if DomainRequest.get_federal_type_display %}
- {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.is_election_board %}
- {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
- {% endwith %}
- {% endif %}
-
- {% if DomainRequest.organization_name %}
- {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.about_your_organization %}
- {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.senior_official %}
- {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.current_websites.all %}
- {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.requested_domain %}
- {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.alternative_domains.all %}
- {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.purpose %}
- {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.creator %}
- {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
- {% endif %}
- {% if DomainRequest.other_contacts.all %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
- {% else %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
- {% endif %}
-
- {# We always show this field even if None #}
- {% if DomainRequest %}
- CISA Regional Representative
-
- {% if DomainRequest.cisa_representative_first_name %}
- {{ DomainRequest.get_formatted_cisa_rep_name }}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if DomainRequest.anything_else %}
- {{DomainRequest.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% endif %}
- {% endwith %}
-
-
-
+ {% include "includes/request_status_manage.html" %}
{% endblock %}
diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html
index 63924bc1d..65c52ec9e 100644
--- a/src/registrar/templates/home.html
+++ b/src/registrar/templates/home.html
@@ -5,7 +5,7 @@
{% block title %} Home | {% endblock %}
{% block content %}
-
+
{% if user.is_authenticated %}
{# the entire logged in page goes here #}
diff --git a/src/registrar/templates/includes/domain_request.html b/src/registrar/templates/includes/domain_request_awaiting_review.html
similarity index 57%
rename from src/registrar/templates/includes/domain_request.html
rename to src/registrar/templates/includes/domain_request_awaiting_review.html
index 0e377f35c..cc9b31ccb 100644
--- a/src/registrar/templates/includes/domain_request.html
+++ b/src/registrar/templates/includes/domain_request_awaiting_review.html
@@ -5,8 +5,10 @@
We received your .gov domain request. Our next step is to review your request. This usually takes 30 business days. We’ll email you if we have questions and when we complete our review. Contact us with any questions.
-
- Need to make changes?
-
+{% if show_withdraw_text %}
+
+ Need to make changes?
+
-If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+ If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+{% endif %}
diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html
new file mode 100644
index 000000000..2a254df4b
--- /dev/null
+++ b/src/registrar/templates/includes/domain_request_status_manage.html
@@ -0,0 +1,236 @@
+{% load custom_filters %}
+{% load static url_helpers %}
+
+
+ {% block breadcrumb %}
+ {% if portfolio %}
+ {% url 'domain-requests' as url %}
+ {% else %}
+ {% url 'home' as url %}
+ {% endif %}
+
+ {% endblock breadcrumb %}
+
+ {% block header %}
+ {% if not DomainRequest.requested_domain and DomainRequest.status == DomainRequest.DomainRequestStatus.STARTED %}
+ New domain request
+ {% else %}
+ Domain request for {{ DomainRequest.requested_domain.name }}
+ {% endif %}
+ {% endblock header %}
+
+ {% block status_summary %}
+
+
+
+
+ Status:
+
+ {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
+
+
+
+
+ {% endblock status_summary %}
+
+ {% block status_metadata %}
+
+ {% if portfolio %}
+ {% if DomainRequest.creator %}
+
+ Created by: {{DomainRequest.creator.email|default:DomainRequest.creator.get_formatted_name }}
+
+ {% else %}
+
+ No creator found: this is an error, please email help@get.gov.
+
+ {% endif %}
+ {% endif %}
+
+ {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
+ {% comment %}
+ These are intentionally seperated this way.
+ There is some code repetition, but it gives us more flexibility rather than a dense reduction.
+ Leave it this way until we've solidified our requirements.
+ {% endcomment %}
+ {% if DomainRequest.status == statuses.STARTED %}
+ {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
+
+ {% comment %}
+ A newly created domain request will not have a value for last_status update.
+ This is because the status never really updated.
+ However, if this somehow goes back to started we can default to displaying that new date.
+ {% endcomment %}
+ Started on: {{last_status_update|default:first_started_date}}
+
+ {% endwith %}
+ {% elif DomainRequest.status == statuses.SUBMITTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.REJECTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Rejected on: {{last_status_update}}
+
+ {% elif DomainRequest.status == statuses.WITHDRAWN %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Withdrawn on: {{last_status_update}}
+
+ {% else %}
+ {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock status_metadata %}
+
+ {% block status_blurb %}
+ {% if DomainRequest.is_awaiting_review %}
+ {% include "includes/domain_request_awaiting_review.html" with show_withdraw_text=DomainRequest.is_withdrawable %}
+ {% endif %}
+ {% endblock status_blurb %}
+
+ {% block modify_request %}
+ {% if DomainRequest.is_withdrawable %}
+
+ {% endif %}
+ {% endblock modify_request %}
+
+
+
+ {% block request_summary_header %}
+ Summary of your domain request
+ {% endblock request_summary_header%}
+
+ {% block request_summary %}
+ {% with heading_level='h3' %}
+ {% with org_type=DomainRequest.get_generic_org_type_display %}
+ {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
+ {% endwith %}
+
+ {% if DomainRequest.tribe_name %}
+ {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
+
+ {% if DomainRequest.federally_recognized_tribe %}
+ Federally-recognized tribe
+ {% endif %}
+
+ {% if DomainRequest.state_recognized_tribe %}
+ State-recognized tribe
+ {% endif %}
+
+ {% endif %}
+
+ {% if DomainRequest.get_federal_type_display %}
+ {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.is_election_board %}
+ {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
+ {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
+ {% endwith %}
+ {% endif %}
+
+ {% if DomainRequest.organization_name %}
+ {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.about_your_organization %}
+ {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.senior_official %}
+ {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.current_websites.all %}
+ {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.requested_domain %}
+ {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.alternative_domains.all %}
+ {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.purpose %}
+ {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.creator %}
+ {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.other_contacts.all %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
+ {% else %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
+ {% endif %}
+
+ {# We always show this field even if None #}
+ {% if DomainRequest %}
+ CISA Regional Representative
+
+ {% if DomainRequest.cisa_representative_first_name %}
+ {{ DomainRequest.get_formatted_cisa_rep_name }}
+ {% else %}
+ No
+ {% endif %}
+
+ Anything else
+
+ {% if DomainRequest.anything_else %}
+ {{DomainRequest.anything_else}}
+ {% else %}
+ No
+ {% endif %}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock request_summary%}
+
+
\ No newline at end of file
diff --git a/src/registrar/templates/includes/domains_table.html b/src/registrar/templates/includes/domains_table.html
index 76ead3a2c..11d3ac945 100644
--- a/src/registrar/templates/includes/domains_table.html
+++ b/src/registrar/templates/includes/domains_table.html
@@ -13,7 +13,7 @@
{% endif %}
-
+
diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html
index dfbd90142..95c17e069 100644
--- a/src/registrar/templates/500.html
+++ b/src/registrar/templates/500.html
@@ -5,7 +5,7 @@
{% block title %}{% translate "Server error | " %}{% endblock %}
{% block content %}
-
+
diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html
index e5bd1b0b9..b14dab2fa 100644
--- a/src/registrar/templates/base.html
+++ b/src/registrar/templates/base.html
@@ -78,7 +78,7 @@
-
+
diff --git a/src/registrar/templates/django/admin/domain_request_change_form.html b/src/registrar/templates/django/admin/domain_request_change_form.html
index 0396326d9..afdd9e6c2 100644
--- a/src/registrar/templates/django/admin/domain_request_change_form.html
+++ b/src/registrar/templates/django/admin/domain_request_change_form.html
@@ -8,6 +8,8 @@
{# Store the current object id so we can access it easier #}
+ {% url 'get-action-needed-email-for-user-json' as url %}
+
{% for fieldset in adminform %}
{% comment %}
TODO: this will eventually need to be changed to something like this
diff --git a/src/registrar/templates/django/admin/includes/contact_detail_list.html b/src/registrar/templates/django/admin/includes/contact_detail_list.html
index 7cc72e8e1..0a28a6532 100644
--- a/src/registrar/templates/django/admin/includes/contact_detail_list.html
+++ b/src/registrar/templates/django/admin/includes/contact_detail_list.html
@@ -39,7 +39,7 @@
None
{% endif %}
- {% else %}
+ {% elif not hide_no_contact_info_message %}
No additional contact information found.
{% endif %}
diff --git a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
index e22bcb571..6b755724e 100644
--- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
+++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
@@ -66,24 +66,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
No changelog to display.
{% endif %}
- {% elif field.field.name == "action_needed_reason_email" %}
-
-
-
-
- No email will be sent.
-
-
-
{% elif field.field.name == "other_contacts" %}
{% if all_contacts.count > 2 %}
@@ -137,7 +119,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endfor %}
{% endwith %}
- {% elif field.field.name == "display_admins" %}
+ {% elif field.field.name == "domain_managers" or field.field.name == "invited_domain_managers" %}
{{ field.contents|safe }}
{% elif field.field.name == "display_members" %}
@@ -155,131 +137,102 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% block field_other %}
{% if field.field.name == "action_needed_reason_email" %}
-
-
- -
+
+
+ –
-
-
-
-
- Auto-generated email that will be sent to the creator
-
-
- Email sent to the creator
+
+ {{ field.field }}
+
+
+
Edit email
+
+
+
+
+ Are you sure you want to edit this email?
+
+
+
+ The creator of this request already received an email for this status/reason:
+
+
+ - Status: Action needed
+ - Reason: {{ original_object.get_action_needed_reason_display }}
+
+
+ If you edit this email's text, the system will send another email to
+ the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
- Edit email
-
-
-
-
-
- Are you sure you want to edit this email?
-
-
-
- The creator of this request already received an email for this status/reason:
-
-
- - Status: Action needed
- - Reason: {{ original_object.get_action_needed_reason_display }}
-
-
- If you edit this email's text, the system will send another email to
- the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
+
+
+ -
+
+
+ -
+
+
+
-
-
-
-
- {{ field.field }}
-
-
+
-
- {% if not action_needed_email_sent %}
- This email will be sent to the creator of this request after saving
+
+ {% if original_object.action_needed_reason_email %}
+
{% else %}
- This email has been sent to the creator of this request
+
{% endif %}
-
-
+
{% else %}
{{ field.field }}
{% endif %}
{% endblock field_other %}
{% block after_help_text %}
- {% if field.field.name == "action_needed_reason_email" %}
- {% comment %}
- Store the action needed reason emails in a json-based dictionary.
- This allows us to change the action_needed_reason_email field dynamically, depending on value.
- The alternative to this is an API endpoint.
-
- Given that we have a limited number of emails, doing it this way makes sense.
- {% endcomment %}
- {% if action_needed_reason_emails %}
-
- {% endif %}
- {% elif field.field.name == "creator" %}
+ {% if field.field.name == "creator" %}
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.creator no_title_top_padding=field.is_readonly user_verification_type=original_object.creator.get_verification_type_display%}
@@ -335,13 +288,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endif %}
{% endwith %}
- {% elif field.field.name == "display_members" and field.contents %}
-
- Details
-
- {{ field.contents|safe }}
-
-
{% elif field.field.name == "state_territory" and original_object|model_name_lowercase != 'portfolio' %}
diff --git a/src/registrar/templates/django/admin/includes/details_button.html b/src/registrar/templates/django/admin/includes/details_button.html
new file mode 100644
index 000000000..73748f170
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/details_button.html
@@ -0,0 +1,9 @@
+
+{% comment %} This view provides a detail button that can be used to show/hide content {% endcomment %}
+
+ Details
+
+ {% block detail_content %}
+ {% endblock detail_content%}
+
+
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
new file mode 100644
index 000000000..4ea9225da
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
@@ -0,0 +1,48 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+
+
+
+ {% for admin in admins %}
+ {% url 'admin:registrar_userportfoliopermission_change' admin.pk as url %}
+
+ {{ admin.user.get_formatted_name}}
+ {{ admin.user.title }}
+
+ {% if admin.user.email %}
+ {{ admin.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ admin.user.phone }}
+
+ {% if admin.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
new file mode 100644
index 000000000..46303efce
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
@@ -0,0 +1,26 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Status
+
+
+
+ {% for domain_request in domain_requests %}
+ {% url 'admin:registrar_domainrequest_change' domain_request.pk as url %}
+
+ {{ domain_request }}
+ {% if domain_request.get_status_display %}
+ {{ domain_request.get_status_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
new file mode 100644
index 000000000..56621b769
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
@@ -0,0 +1,30 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ State
+
+
+
+ {% for domain_info in domains %}
+ {% if domain_info.domain %}
+ {% with domain=domain_info.domain %}
+ {% url 'admin:registrar_domain_change' domain.pk as url %}
+
+ {{ domain }}
+ {% if domain and domain.get_state_display %}
+ {{ domain.get_state_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endwith %}
+ {% endif %}
+ {% endfor %}
+
+
+{% endblock detail_content%}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
new file mode 100644
index 000000000..87b56cb60
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
@@ -0,0 +1,61 @@
+{% extends "django/admin/includes/detail_table_fieldset.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block field_readonly %}
+ {% if field.field.name == "display_admins" or field.field.name == "display_members" %}
+ {{ field.contents|safe }}
+ {% elif field.field.name == "roles" %}
+
+ {% if get_readable_roles %}
+ {{ get_readable_roles }}
+ {% else %}
+ No roles found.
+ {% endif %}
+
+ {% elif field.field.name == "additional_permissions" %}
+
+ {% if display_permissions %}
+ {{ display_permissions }}
+ {% else %}
+ No additional permissions found.
+ {% endif %}
+
+ {% elif field.field.name == "senior_official" %}
+ {% if original_object.senior_official %}
+ {{ field.contents }}
+ {% else %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
+ {% endif %}
+ {% else %}
+ {{ field.contents }}
+ {% endif %}
+{% endblock field_readonly%}
+
+{% block after_help_text %}
+ {% if field.field.name == "senior_official" %}
+
+
+ {% include "django/admin/includes/contact_detail_list.html" with user=original_object.senior_official no_title_top_padding=field.is_readonly hide_no_contact_info_message=True %}
+
+ {% elif field.field.name == "display_admins" %}
+ {% if admins|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_admins_table.html" with admins=admins %}
+ {% endif %}
+ {% elif field.field.name == "display_members" %}
+ {% if members|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_members_table.html" with members=members %}
+ {% endif %}
+ {% elif field.field.name == "domains" %}
+ {% if domains|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domains_table.html" with domains=domains %}
+ {% endif %}
+ {% elif field.field.name == "domain_requests" %}
+ {% if domain_requests|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domain_requests_table.html" with domain_requests=domain_requests %}
+ {% endif %}
+ {% endif %}
+{% endblock after_help_text %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
new file mode 100644
index 000000000..136fe3a5a
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
@@ -0,0 +1,55 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+ Roles
+
+
+
+ {% for member in members %}
+ {% url 'admin:registrar_userportfoliopermission_change' member.pk as url %}
+
+ {{ member.user.get_formatted_name}}
+ {{ member.user.title }}
+
+ {% if member.user.email %}
+ {{ member.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ member.user.phone }}
+
+ {% for role in member.user|portfolio_role_summary:original %}
+ {{ role }}
+ {% endfor %}
+
+
+ {% if member.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock %}
diff --git a/src/registrar/templates/django/admin/portfolio_change_form.html b/src/registrar/templates/django/admin/portfolio_change_form.html
index 8dae8a080..8de6cd5eb 100644
--- a/src/registrar/templates/django/admin/portfolio_change_form.html
+++ b/src/registrar/templates/django/admin/portfolio_change_form.html
@@ -8,19 +8,14 @@
{% url 'get-federal-and-portfolio-types-from-federal-agency-json' as url %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
{{ block.super }}
{% endblock content %}
{% block field_sets %}
{% for fieldset in adminform %}
- {% comment %}
- This is a placeholder for now.
-
- Disclaimer:
- When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
- detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
- {% endcomment %}
- {% include "django/admin/includes/detail_table_fieldset.html" with original_object=original %}
+ {% include "django/admin/includes/portfolio/portfolio_fieldset.html" with original_object=original %}
{% endfor %}
{% endblock %}
diff --git a/src/registrar/templates/django/admin/suborg_change_form.html b/src/registrar/templates/django/admin/suborg_change_form.html
index 005d67aec..25fe5700d 100644
--- a/src/registrar/templates/django/admin/suborg_change_form.html
+++ b/src/registrar/templates/django/admin/suborg_change_form.html
@@ -8,27 +8,35 @@
Domain requests
- {% for domain_request in domain_requests %}
- -
-
- {{ domain_request.requested_domain }}
-
- ({{ domain_request.status }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain_request in domain_requests %}
+ -
+
+ {{ domain_request.requested_domain }}
+
+ ({{ domain_request.status }})
+
+ {% endfor %}
+ {% else %}
+ - No domain requests.
+ {% endif %}
Domains
- {% for domain in domains %}
- -
-
- {{ domain.name }}
-
- ({{ domain.state }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain in domains %}
+ -
+
+ {{ domain.name }}
+
+ ({{ domain.state }})
+
+ {% endfor %}
+ {% else %}
+ - No domains.
+ {% endif %}
diff --git a/src/registrar/templates/django/admin/user_change_form.html b/src/registrar/templates/django/admin/user_change_form.html
index 736f12ba4..c0ddd8caf 100644
--- a/src/registrar/templates/django/admin/user_change_form.html
+++ b/src/registrar/templates/django/admin/user_change_form.html
@@ -17,26 +17,6 @@
{% endblock %}
{% block after_related_objects %}
- {% if portfolios %}
-
- Portfolio information
-
-
- Portfolios
-
- {% for portfolio in portfolios %}
- -
-
- {{ portfolio }}
-
-
- {% endfor %}
-
-
-
-
- {% endif %}
-
Associated requests and domains
diff --git a/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
new file mode 100644
index 000000000..1249a486c
--- /dev/null
+++ b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
@@ -0,0 +1,16 @@
+{% extends 'django/admin/email_clipboard_change_form.html' %}
+{% load custom_filters %}
+{% load i18n static %}
+
+{% block field_sets %}
+ {% for fieldset in adminform %}
+ {% comment %}
+ This is a placeholder for now.
+
+ Disclaimer:
+ When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
+ detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
+ {% endcomment %}
+ {% include "django/admin/includes/user_portfolio_permission_fieldset.html" with original_object=original %}
+ {% endfor %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/registrar/templates/domain_base.html b/src/registrar/templates/domain_base.html
index b99b12740..9f7e8d2e6 100644
--- a/src/registrar/templates/domain_base.html
+++ b/src/registrar/templates/domain_base.html
@@ -9,7 +9,7 @@
Domain name: {{ domain.name }}
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html
index 4b6ca6e77..dca68f6ef 100644
--- a/src/registrar/templates/domain_detail.html
+++ b/src/registrar/templates/domain_detail.html
@@ -5,7 +5,7 @@
{% block domain_content %}
{{ block.super }}
- {{ domain.name }}
+ {{ domain.name }}
-
- {% if step == Step.ORGANIZATION_TYPE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.generic_org_type is not None %}
- {% with title=form_titles|get_item:step value=domain_request.get_generic_org_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.TRIBAL_GOVERNMENT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.tribe_name|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% if domain_request.federally_recognized_tribe %}Federally-recognized tribe
{% endif %}
- {% if domain_request.state_recognized_tribe %}State-recognized tribe
{% endif %}
- {% endif %}
-
-
- {% if step == Step.ORGANIZATION_FEDERAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.get_federal_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_ELECTION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.organization_name %}
- {% with title=form_titles|get_item:step value=domain_request %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url address='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.ABOUT_YOUR_ORGANIZATION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.about_your_organization|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.SENIOR_OFFICIAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.senior_official is not None %}
- {% with title=form_titles|get_item:step value=domain_request.senior_official %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.CURRENT_SITES %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.current_websites.all %}
- {% with title=form_titles|get_item:step value=domain_request.current_websites.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value='None' %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.DOTGOV_DOMAIN %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete"|safe%}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
-
- {% if domain_request.alternative_domains.all %}
- Alternative domains
-
- {% for site in domain_request.alternative_domains.all %}
- - {{ site.website }}
- {% endfor %}
-
- {% endif %}
- {% endif %}
-
- {% if step == Step.PURPOSE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.purpose|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.YOUR_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.creator is not None %}
- {% with title=form_titles|get_item:step value=domain_request.creator %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.OTHER_CONTACTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.other_contacts.all %}
- {% with title=form_titles|get_item:step value=domain_request.other_contacts.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value=domain_request.no_other_contacts_rationale|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
-
- {% if step == Step.ADDITIONAL_DETAILS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step %}
- {% if domain_request.has_additional_details %}
- {% include "includes/summary_item.html" with title="Additional Details" value=" " heading_level=heading_level editable=True edit_link=domain_request_url %}
- CISA Regional Representative
-
- {% if domain_request.cisa_representative_first_name %}
- - {{domain_request.cisa_representative_first_name}} {{domain_request.cisa_representative_last_name}}
- {% if domain_request.cisa_representative_email %}
- - {{domain_request.cisa_representative_email}}
- {% endif %}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if domain_request.anything_else %}
- {{domain_request.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% else %}
- {% include "includes/summary_item.html" with title="Additional Details" value="Incomplete"|safe heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endif %}
- {% endwith %}
- {% endif %}
-
-
- {% if step == Step.REQUIREMENTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_policy_acknowledged|yesno:"I agree.,I do not agree.,I do not agree." %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
-
-
-
- {% endfor %}
+ {% include "includes/request_review_steps.html" with is_editable=True %}
{% endblock %}
diff --git a/src/registrar/templates/domain_request_status.html b/src/registrar/templates/domain_request_status.html
index 460f6ae29..d332ce54e 100644
--- a/src/registrar/templates/domain_request_status.html
+++ b/src/registrar/templates/domain_request_status.html
@@ -1,206 +1,10 @@
{% extends 'base.html' %}
-
{% load custom_filters %}
-
-{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
{% load static url_helpers %}
+{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
+
+
{% block content %}
-
-
- {% if portfolio %}
- {% url 'domain-requests' as url %}
- {% else %}
- {% url 'home' as url %}
- {% endif %}
-
-
- Domain request for {{ DomainRequest.requested_domain.name }}
-
-
-
-
- Status:
-
- {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
-
-
-
-
-
- {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
- {% comment %}
- These are intentionally seperated this way.
- There is some code repetition, but it gives us more flexibility rather than a dense reduction.
- Leave it this way until we've solidified our requirements.
- {% endcomment %}
- {% if DomainRequest.status == statuses.STARTED %}
- {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
-
- {% comment %}
- A newly created domain request will not have a value for last_status update.
- This is because the status never really updated.
- However, if this somehow goes back to started we can default to displaying that new date.
- {% endcomment %}
- Started on: {{last_status_update|default:first_started_date}}
-
- {% endwith %}
- {% elif DomainRequest.status == statuses.SUBMITTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.REJECTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Rejected on: {{last_status_update}}
-
- {% elif DomainRequest.status == statuses.WITHDRAWN %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Withdrawn on: {{last_status_update}}
-
- {% else %}
- {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% endif %}
-
- {% if DomainRequest.status != 'rejected' %}
- {% include "includes/domain_request.html" %}
-
- {% endif %}
- {% endwith %}
-
-
-
- Summary of your domain request
- {% with heading_level='h3' %}
- {% with org_type=DomainRequest.get_generic_org_type_display %}
- {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
- {% endwith %}
-
- {% if DomainRequest.tribe_name %}
- {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
-
- {% if DomainRequest.federally_recognized_tribe %}
- Federally-recognized tribe
- {% endif %}
-
- {% if DomainRequest.state_recognized_tribe %}
- State-recognized tribe
- {% endif %}
-
- {% endif %}
-
- {% if DomainRequest.get_federal_type_display %}
- {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.is_election_board %}
- {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
- {% endwith %}
- {% endif %}
-
- {% if DomainRequest.organization_name %}
- {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.about_your_organization %}
- {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.senior_official %}
- {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.current_websites.all %}
- {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.requested_domain %}
- {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.alternative_domains.all %}
- {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.purpose %}
- {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.creator %}
- {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
- {% endif %}
- {% if DomainRequest.other_contacts.all %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
- {% else %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
- {% endif %}
-
- {# We always show this field even if None #}
- {% if DomainRequest %}
- CISA Regional Representative
-
- {% if DomainRequest.cisa_representative_first_name %}
- {{ DomainRequest.get_formatted_cisa_rep_name }}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if DomainRequest.anything_else %}
- {{DomainRequest.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% endif %}
- {% endwith %}
-
-
-
+ {% include "includes/request_status_manage.html" %}
{% endblock %}
diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html
index 63924bc1d..65c52ec9e 100644
--- a/src/registrar/templates/home.html
+++ b/src/registrar/templates/home.html
@@ -5,7 +5,7 @@
{% block title %} Home | {% endblock %}
{% block content %}
-
+
{% if user.is_authenticated %}
{# the entire logged in page goes here #}
diff --git a/src/registrar/templates/includes/domain_request.html b/src/registrar/templates/includes/domain_request_awaiting_review.html
similarity index 57%
rename from src/registrar/templates/includes/domain_request.html
rename to src/registrar/templates/includes/domain_request_awaiting_review.html
index 0e377f35c..cc9b31ccb 100644
--- a/src/registrar/templates/includes/domain_request.html
+++ b/src/registrar/templates/includes/domain_request_awaiting_review.html
@@ -5,8 +5,10 @@
We received your .gov domain request. Our next step is to review your request. This usually takes 30 business days. We’ll email you if we have questions and when we complete our review. Contact us with any questions.
-
- Need to make changes?
-
+{% if show_withdraw_text %}
+
+ Need to make changes?
+
-If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+ If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+{% endif %}
diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html
new file mode 100644
index 000000000..2a254df4b
--- /dev/null
+++ b/src/registrar/templates/includes/domain_request_status_manage.html
@@ -0,0 +1,236 @@
+{% load custom_filters %}
+{% load static url_helpers %}
+
+
+ {% block breadcrumb %}
+ {% if portfolio %}
+ {% url 'domain-requests' as url %}
+ {% else %}
+ {% url 'home' as url %}
+ {% endif %}
+
+ {% endblock breadcrumb %}
+
+ {% block header %}
+ {% if not DomainRequest.requested_domain and DomainRequest.status == DomainRequest.DomainRequestStatus.STARTED %}
+ New domain request
+ {% else %}
+ Domain request for {{ DomainRequest.requested_domain.name }}
+ {% endif %}
+ {% endblock header %}
+
+ {% block status_summary %}
+
+
+
+
+ Status:
+
+ {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
+
+
+
+
+ {% endblock status_summary %}
+
+ {% block status_metadata %}
+
+ {% if portfolio %}
+ {% if DomainRequest.creator %}
+
+ Created by: {{DomainRequest.creator.email|default:DomainRequest.creator.get_formatted_name }}
+
+ {% else %}
+
+ No creator found: this is an error, please email help@get.gov.
+
+ {% endif %}
+ {% endif %}
+
+ {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
+ {% comment %}
+ These are intentionally seperated this way.
+ There is some code repetition, but it gives us more flexibility rather than a dense reduction.
+ Leave it this way until we've solidified our requirements.
+ {% endcomment %}
+ {% if DomainRequest.status == statuses.STARTED %}
+ {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
+
+ {% comment %}
+ A newly created domain request will not have a value for last_status update.
+ This is because the status never really updated.
+ However, if this somehow goes back to started we can default to displaying that new date.
+ {% endcomment %}
+ Started on: {{last_status_update|default:first_started_date}}
+
+ {% endwith %}
+ {% elif DomainRequest.status == statuses.SUBMITTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.REJECTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Rejected on: {{last_status_update}}
+
+ {% elif DomainRequest.status == statuses.WITHDRAWN %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Withdrawn on: {{last_status_update}}
+
+ {% else %}
+ {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock status_metadata %}
+
+ {% block status_blurb %}
+ {% if DomainRequest.is_awaiting_review %}
+ {% include "includes/domain_request_awaiting_review.html" with show_withdraw_text=DomainRequest.is_withdrawable %}
+ {% endif %}
+ {% endblock status_blurb %}
+
+ {% block modify_request %}
+ {% if DomainRequest.is_withdrawable %}
+
+ {% endif %}
+ {% endblock modify_request %}
+
+
+
+ {% block request_summary_header %}
+ Summary of your domain request
+ {% endblock request_summary_header%}
+
+ {% block request_summary %}
+ {% with heading_level='h3' %}
+ {% with org_type=DomainRequest.get_generic_org_type_display %}
+ {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
+ {% endwith %}
+
+ {% if DomainRequest.tribe_name %}
+ {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
+
+ {% if DomainRequest.federally_recognized_tribe %}
+ Federally-recognized tribe
+ {% endif %}
+
+ {% if DomainRequest.state_recognized_tribe %}
+ State-recognized tribe
+ {% endif %}
+
+ {% endif %}
+
+ {% if DomainRequest.get_federal_type_display %}
+ {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.is_election_board %}
+ {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
+ {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
+ {% endwith %}
+ {% endif %}
+
+ {% if DomainRequest.organization_name %}
+ {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.about_your_organization %}
+ {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.senior_official %}
+ {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.current_websites.all %}
+ {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.requested_domain %}
+ {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.alternative_domains.all %}
+ {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.purpose %}
+ {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.creator %}
+ {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.other_contacts.all %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
+ {% else %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
+ {% endif %}
+
+ {# We always show this field even if None #}
+ {% if DomainRequest %}
+ CISA Regional Representative
+
+ {% if DomainRequest.cisa_representative_first_name %}
+ {{ DomainRequest.get_formatted_cisa_rep_name }}
+ {% else %}
+ No
+ {% endif %}
+
+ Anything else
+
+ {% if DomainRequest.anything_else %}
+ {{DomainRequest.anything_else}}
+ {% else %}
+ No
+ {% endif %}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock request_summary%}
+
+
\ No newline at end of file
diff --git a/src/registrar/templates/includes/domains_table.html b/src/registrar/templates/includes/domains_table.html
index 76ead3a2c..11d3ac945 100644
--- a/src/registrar/templates/includes/domains_table.html
+++ b/src/registrar/templates/includes/domains_table.html
@@ -13,7 +13,7 @@
{% endif %}
-
+
diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html
index e5bd1b0b9..b14dab2fa 100644
--- a/src/registrar/templates/base.html
+++ b/src/registrar/templates/base.html
@@ -78,7 +78,7 @@
-
+
diff --git a/src/registrar/templates/django/admin/domain_request_change_form.html b/src/registrar/templates/django/admin/domain_request_change_form.html
index 0396326d9..afdd9e6c2 100644
--- a/src/registrar/templates/django/admin/domain_request_change_form.html
+++ b/src/registrar/templates/django/admin/domain_request_change_form.html
@@ -8,6 +8,8 @@
{# Store the current object id so we can access it easier #}
+ {% url 'get-action-needed-email-for-user-json' as url %}
+
{% for fieldset in adminform %}
{% comment %}
TODO: this will eventually need to be changed to something like this
diff --git a/src/registrar/templates/django/admin/includes/contact_detail_list.html b/src/registrar/templates/django/admin/includes/contact_detail_list.html
index 7cc72e8e1..0a28a6532 100644
--- a/src/registrar/templates/django/admin/includes/contact_detail_list.html
+++ b/src/registrar/templates/django/admin/includes/contact_detail_list.html
@@ -39,7 +39,7 @@
None
{% endif %}
- {% else %}
+ {% elif not hide_no_contact_info_message %}
No additional contact information found.
{% endif %}
diff --git a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
index e22bcb571..6b755724e 100644
--- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
+++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
@@ -66,24 +66,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
No changelog to display.
{% endif %}
- {% elif field.field.name == "action_needed_reason_email" %}
-
-
-
-
- No email will be sent.
-
-
-
{% elif field.field.name == "other_contacts" %}
{% if all_contacts.count > 2 %}
@@ -137,7 +119,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endfor %}
{% endwith %}
- {% elif field.field.name == "display_admins" %}
+ {% elif field.field.name == "domain_managers" or field.field.name == "invited_domain_managers" %}
{{ field.contents|safe }}
{% elif field.field.name == "display_members" %}
@@ -155,131 +137,102 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% block field_other %}
{% if field.field.name == "action_needed_reason_email" %}
-
-
- -
+
+
+ –
-
-
-
-
- Auto-generated email that will be sent to the creator
-
-
- Email sent to the creator
+
+ {{ field.field }}
+
+
+
Edit email
+
+
+
+
+ Are you sure you want to edit this email?
+
+
+
+ The creator of this request already received an email for this status/reason:
+
+
+ - Status: Action needed
+ - Reason: {{ original_object.get_action_needed_reason_display }}
+
+
+ If you edit this email's text, the system will send another email to
+ the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
- Edit email
-
-
-
-
-
- Are you sure you want to edit this email?
-
-
-
- The creator of this request already received an email for this status/reason:
-
-
- - Status: Action needed
- - Reason: {{ original_object.get_action_needed_reason_display }}
-
-
- If you edit this email's text, the system will send another email to
- the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
+
+
+ -
+
+
+ -
+
+
+
-
-
-
-
- {{ field.field }}
-
-
+
-
- {% if not action_needed_email_sent %}
- This email will be sent to the creator of this request after saving
+
+ {% if original_object.action_needed_reason_email %}
+
{% else %}
- This email has been sent to the creator of this request
+
{% endif %}
-
-
+
{% else %}
{{ field.field }}
{% endif %}
{% endblock field_other %}
{% block after_help_text %}
- {% if field.field.name == "action_needed_reason_email" %}
- {% comment %}
- Store the action needed reason emails in a json-based dictionary.
- This allows us to change the action_needed_reason_email field dynamically, depending on value.
- The alternative to this is an API endpoint.
-
- Given that we have a limited number of emails, doing it this way makes sense.
- {% endcomment %}
- {% if action_needed_reason_emails %}
-
- {% endif %}
- {% elif field.field.name == "creator" %}
+ {% if field.field.name == "creator" %}
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.creator no_title_top_padding=field.is_readonly user_verification_type=original_object.creator.get_verification_type_display%}
@@ -335,13 +288,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endif %}
{% endwith %}
- {% elif field.field.name == "display_members" and field.contents %}
-
- Details
-
- {{ field.contents|safe }}
-
-
{% elif field.field.name == "state_territory" and original_object|model_name_lowercase != 'portfolio' %}
diff --git a/src/registrar/templates/django/admin/includes/details_button.html b/src/registrar/templates/django/admin/includes/details_button.html
new file mode 100644
index 000000000..73748f170
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/details_button.html
@@ -0,0 +1,9 @@
+
+{% comment %} This view provides a detail button that can be used to show/hide content {% endcomment %}
+
+ Details
+
+ {% block detail_content %}
+ {% endblock detail_content%}
+
+
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
new file mode 100644
index 000000000..4ea9225da
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_admins_table.html
@@ -0,0 +1,48 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+
+
+
+ {% for admin in admins %}
+ {% url 'admin:registrar_userportfoliopermission_change' admin.pk as url %}
+
+ {{ admin.user.get_formatted_name}}
+ {{ admin.user.title }}
+
+ {% if admin.user.email %}
+ {{ admin.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ admin.user.phone }}
+
+ {% if admin.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
new file mode 100644
index 000000000..46303efce
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domain_requests_table.html
@@ -0,0 +1,26 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Status
+
+
+
+ {% for domain_request in domain_requests %}
+ {% url 'admin:registrar_domainrequest_change' domain_request.pk as url %}
+
+ {{ domain_request }}
+ {% if domain_request.get_status_display %}
+ {{ domain_request.get_status_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endfor %}
+
+
+{% endblock detail_content %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
new file mode 100644
index 000000000..56621b769
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_domains_table.html
@@ -0,0 +1,30 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ State
+
+
+
+ {% for domain_info in domains %}
+ {% if domain_info.domain %}
+ {% with domain=domain_info.domain %}
+ {% url 'admin:registrar_domain_change' domain.pk as url %}
+
+ {{ domain }}
+ {% if domain and domain.get_state_display %}
+ {{ domain.get_state_display }}
+ {% else %}
+ None
+ {% endif %}
+
+ {% endwith %}
+ {% endif %}
+ {% endfor %}
+
+
+{% endblock detail_content%}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
new file mode 100644
index 000000000..87b56cb60
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_fieldset.html
@@ -0,0 +1,61 @@
+{% extends "django/admin/includes/detail_table_fieldset.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block field_readonly %}
+ {% if field.field.name == "display_admins" or field.field.name == "display_members" %}
+ {{ field.contents|safe }}
+ {% elif field.field.name == "roles" %}
+
+ {% if get_readable_roles %}
+ {{ get_readable_roles }}
+ {% else %}
+ No roles found.
+ {% endif %}
+
+ {% elif field.field.name == "additional_permissions" %}
+
+ {% if display_permissions %}
+ {{ display_permissions }}
+ {% else %}
+ No additional permissions found.
+ {% endif %}
+
+ {% elif field.field.name == "senior_official" %}
+ {% if original_object.senior_official %}
+ {{ field.contents }}
+ {% else %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
+ {% endif %}
+ {% else %}
+ {{ field.contents }}
+ {% endif %}
+{% endblock field_readonly%}
+
+{% block after_help_text %}
+ {% if field.field.name == "senior_official" %}
+
+
+ {% include "django/admin/includes/contact_detail_list.html" with user=original_object.senior_official no_title_top_padding=field.is_readonly hide_no_contact_info_message=True %}
+
+ {% elif field.field.name == "display_admins" %}
+ {% if admins|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_admins_table.html" with admins=admins %}
+ {% endif %}
+ {% elif field.field.name == "display_members" %}
+ {% if members|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_members_table.html" with members=members %}
+ {% endif %}
+ {% elif field.field.name == "domains" %}
+ {% if domains|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domains_table.html" with domains=domains %}
+ {% endif %}
+ {% elif field.field.name == "domain_requests" %}
+ {% if domain_requests|length > 0 %}
+ {% include "django/admin/includes/portfolio/portfolio_domain_requests_table.html" with domain_requests=domain_requests %}
+ {% endif %}
+ {% endif %}
+{% endblock after_help_text %}
diff --git a/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
new file mode 100644
index 000000000..136fe3a5a
--- /dev/null
+++ b/src/registrar/templates/django/admin/includes/portfolio/portfolio_members_table.html
@@ -0,0 +1,55 @@
+{% extends "django/admin/includes/details_button.html" %}
+{% load custom_filters %}
+{% load static url_helpers %}
+
+{% block detail_content %}
+
+
+
+ Name
+ Title
+ Email
+ Phone
+ Roles
+
+
+
+ {% for member in members %}
+ {% url 'admin:registrar_userportfoliopermission_change' member.pk as url %}
+
+ {{ member.user.get_formatted_name}}
+ {{ member.user.title }}
+
+ {% if member.user.email %}
+ {{ member.user.email }}
+ {% else %}
+ None
+ {% endif %}
+
+ {{ member.user.phone }}
+
+ {% for role in member.user|portfolio_role_summary:original %}
+ {{ role }}
+ {% endfor %}
+
+
+ {% if member.user.email %}
+
+
+ {% endif %}
+
+
+ {% endfor %}
+
+
+{% endblock %}
diff --git a/src/registrar/templates/django/admin/portfolio_change_form.html b/src/registrar/templates/django/admin/portfolio_change_form.html
index 8dae8a080..8de6cd5eb 100644
--- a/src/registrar/templates/django/admin/portfolio_change_form.html
+++ b/src/registrar/templates/django/admin/portfolio_change_form.html
@@ -8,19 +8,14 @@
{% url 'get-federal-and-portfolio-types-from-federal-agency-json' as url %}
+ {% url "admin:registrar_seniorofficial_add" as url %}
+
{{ block.super }}
{% endblock content %}
{% block field_sets %}
{% for fieldset in adminform %}
- {% comment %}
- This is a placeholder for now.
-
- Disclaimer:
- When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
- detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
- {% endcomment %}
- {% include "django/admin/includes/detail_table_fieldset.html" with original_object=original %}
+ {% include "django/admin/includes/portfolio/portfolio_fieldset.html" with original_object=original %}
{% endfor %}
{% endblock %}
diff --git a/src/registrar/templates/django/admin/suborg_change_form.html b/src/registrar/templates/django/admin/suborg_change_form.html
index 005d67aec..25fe5700d 100644
--- a/src/registrar/templates/django/admin/suborg_change_form.html
+++ b/src/registrar/templates/django/admin/suborg_change_form.html
@@ -8,27 +8,35 @@
Domain requests
- {% for domain_request in domain_requests %}
- -
-
- {{ domain_request.requested_domain }}
-
- ({{ domain_request.status }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain_request in domain_requests %}
+ -
+
+ {{ domain_request.requested_domain }}
+
+ ({{ domain_request.status }})
+
+ {% endfor %}
+ {% else %}
+ - No domain requests.
+ {% endif %}
Domains
- {% for domain in domains %}
- -
-
- {{ domain.name }}
-
- ({{ domain.state }})
-
- {% endfor %}
+ {% if domains|length > 0 %}
+ {% for domain in domains %}
+ -
+
+ {{ domain.name }}
+
+ ({{ domain.state }})
+
+ {% endfor %}
+ {% else %}
+ - No domains.
+ {% endif %}
diff --git a/src/registrar/templates/django/admin/user_change_form.html b/src/registrar/templates/django/admin/user_change_form.html
index 736f12ba4..c0ddd8caf 100644
--- a/src/registrar/templates/django/admin/user_change_form.html
+++ b/src/registrar/templates/django/admin/user_change_form.html
@@ -17,26 +17,6 @@
{% endblock %}
{% block after_related_objects %}
- {% if portfolios %}
-
- Portfolio information
-
-
- Portfolios
-
- {% for portfolio in portfolios %}
- -
-
- {{ portfolio }}
-
-
- {% endfor %}
-
-
-
-
- {% endif %}
-
Associated requests and domains
diff --git a/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
new file mode 100644
index 000000000..1249a486c
--- /dev/null
+++ b/src/registrar/templates/django/admin/user_portfolio_permission_change_form.html
@@ -0,0 +1,16 @@
+{% extends 'django/admin/email_clipboard_change_form.html' %}
+{% load custom_filters %}
+{% load i18n static %}
+
+{% block field_sets %}
+ {% for fieldset in adminform %}
+ {% comment %}
+ This is a placeholder for now.
+
+ Disclaimer:
+ When extending the fieldset view consider whether you need to make a new one that extends from detail_table_fieldset.
+ detail_table_fieldset is used on multiple admin pages, so a change there can have unintended consequences.
+ {% endcomment %}
+ {% include "django/admin/includes/user_portfolio_permission_fieldset.html" with original_object=original %}
+ {% endfor %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/registrar/templates/domain_base.html b/src/registrar/templates/domain_base.html
index b99b12740..9f7e8d2e6 100644
--- a/src/registrar/templates/domain_base.html
+++ b/src/registrar/templates/domain_base.html
@@ -9,7 +9,7 @@
Domain name: {{ domain.name }}
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html
index 4b6ca6e77..dca68f6ef 100644
--- a/src/registrar/templates/domain_detail.html
+++ b/src/registrar/templates/domain_detail.html
@@ -5,7 +5,7 @@
{% block domain_content %}
{{ block.super }}
- {{ domain.name }}
+ {{ domain.name }}
-
- {% if step == Step.ORGANIZATION_TYPE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.generic_org_type is not None %}
- {% with title=form_titles|get_item:step value=domain_request.get_generic_org_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.TRIBAL_GOVERNMENT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.tribe_name|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% if domain_request.federally_recognized_tribe %}Federally-recognized tribe
{% endif %}
- {% if domain_request.state_recognized_tribe %}State-recognized tribe
{% endif %}
- {% endif %}
-
-
- {% if step == Step.ORGANIZATION_FEDERAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.get_federal_type_display|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_ELECTION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.ORGANIZATION_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.organization_name %}
- {% with title=form_titles|get_item:step value=domain_request %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url address='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.ABOUT_YOUR_ORGANIZATION %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.about_your_organization|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.SENIOR_OFFICIAL %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.senior_official is not None %}
- {% with title=form_titles|get_item:step value=domain_request.senior_official %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.CURRENT_SITES %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.current_websites.all %}
- {% with title=form_titles|get_item:step value=domain_request.current_websites.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value='None' %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.DOTGOV_DOMAIN %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete"|safe%}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
-
- {% if domain_request.alternative_domains.all %}
- Alternative domains
-
- {% for site in domain_request.alternative_domains.all %}
- - {{ site.website }}
- {% endfor %}
-
- {% endif %}
- {% endif %}
-
- {% if step == Step.PURPOSE %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.purpose|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
- {% if step == Step.YOUR_CONTACT %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.creator is not None %}
- {% with title=form_titles|get_item:step value=domain_request.creator %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value="Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
- {% if step == Step.OTHER_CONTACTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% if domain_request.other_contacts.all %}
- {% with title=form_titles|get_item:step value=domain_request.other_contacts.all %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' list='true' %}
- {% endwith %}
- {% else %}
- {% with title=form_titles|get_item:step value=domain_request.no_other_contacts_rationale|default:"Incomplete"|safe %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
- {% endif %}
-
-
- {% if step == Step.ADDITIONAL_DETAILS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step %}
- {% if domain_request.has_additional_details %}
- {% include "includes/summary_item.html" with title="Additional Details" value=" " heading_level=heading_level editable=True edit_link=domain_request_url %}
- CISA Regional Representative
-
- {% if domain_request.cisa_representative_first_name %}
- - {{domain_request.cisa_representative_first_name}} {{domain_request.cisa_representative_last_name}}
- {% if domain_request.cisa_representative_email %}
- - {{domain_request.cisa_representative_email}}
- {% endif %}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if domain_request.anything_else %}
- {{domain_request.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% else %}
- {% include "includes/summary_item.html" with title="Additional Details" value="Incomplete"|safe heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endif %}
- {% endwith %}
- {% endif %}
-
-
- {% if step == Step.REQUIREMENTS %}
- {% namespaced_url 'domain-request' step as domain_request_url %}
- {% with title=form_titles|get_item:step value=domain_request.is_policy_acknowledged|yesno:"I agree.,I do not agree.,I do not agree." %}
- {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
- {% endwith %}
- {% endif %}
-
-
-
-
- {% endfor %}
+ {% include "includes/request_review_steps.html" with is_editable=True %}
{% endblock %}
diff --git a/src/registrar/templates/domain_request_status.html b/src/registrar/templates/domain_request_status.html
index 460f6ae29..d332ce54e 100644
--- a/src/registrar/templates/domain_request_status.html
+++ b/src/registrar/templates/domain_request_status.html
@@ -1,206 +1,10 @@
{% extends 'base.html' %}
-
{% load custom_filters %}
-
-{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
{% load static url_helpers %}
+{% block title %}Domain request status | {{ DomainRequest.requested_domain.name }} | {% endblock %}
+
+
{% block content %}
-
-
- {% if portfolio %}
- {% url 'domain-requests' as url %}
- {% else %}
- {% url 'home' as url %}
- {% endif %}
-
-
- Domain request for {{ DomainRequest.requested_domain.name }}
-
-
-
-
- Status:
-
- {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
-
-
-
-
-
- {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
- {% comment %}
- These are intentionally seperated this way.
- There is some code repetition, but it gives us more flexibility rather than a dense reduction.
- Leave it this way until we've solidified our requirements.
- {% endcomment %}
- {% if DomainRequest.status == statuses.STARTED %}
- {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
-
- {% comment %}
- A newly created domain request will not have a value for last_status update.
- This is because the status never really updated.
- However, if this somehow goes back to started we can default to displaying that new date.
- {% endcomment %}
- Started on: {{last_status_update|default:first_started_date}}
-
- {% endwith %}
- {% elif DomainRequest.status == statuses.SUBMITTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% elif DomainRequest.status == statuses.REJECTED %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Rejected on: {{last_status_update}}
-
- {% elif DomainRequest.status == statuses.WITHDRAWN %}
-
- Submitted on: {{last_submitted|default:first_submitted }}
-
-
- Withdrawn on: {{last_status_update}}
-
- {% else %}
- {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
-
- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
-
- {% endif %}
-
- {% if DomainRequest.status != 'rejected' %}
- {% include "includes/domain_request.html" %}
-
- {% endif %}
- {% endwith %}
-
-
-
- Summary of your domain request
- {% with heading_level='h3' %}
- {% with org_type=DomainRequest.get_generic_org_type_display %}
- {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
- {% endwith %}
-
- {% if DomainRequest.tribe_name %}
- {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
-
- {% if DomainRequest.federally_recognized_tribe %}
- Federally-recognized tribe
- {% endif %}
-
- {% if DomainRequest.state_recognized_tribe %}
- State-recognized tribe
- {% endif %}
-
- {% endif %}
-
- {% if DomainRequest.get_federal_type_display %}
- {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.is_election_board %}
- {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
- {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
- {% endwith %}
- {% endif %}
-
- {% if DomainRequest.organization_name %}
- {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.about_your_organization %}
- {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.senior_official %}
- {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.current_websites.all %}
- {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.requested_domain %}
- {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.alternative_domains.all %}
- {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.purpose %}
- {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
- {% endif %}
-
- {% if DomainRequest.creator %}
- {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
- {% endif %}
- {% if DomainRequest.other_contacts.all %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
- {% else %}
- {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
- {% endif %}
-
- {# We always show this field even if None #}
- {% if DomainRequest %}
- CISA Regional Representative
-
- {% if DomainRequest.cisa_representative_first_name %}
- {{ DomainRequest.get_formatted_cisa_rep_name }}
- {% else %}
- No
- {% endif %}
-
-
- Anything else
-
- {% if DomainRequest.anything_else %}
- {{DomainRequest.anything_else}}
- {% else %}
- No
- {% endif %}
-
- {% endif %}
- {% endwith %}
-
-
-
+ {% include "includes/request_status_manage.html" %}
{% endblock %}
diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html
index 63924bc1d..65c52ec9e 100644
--- a/src/registrar/templates/home.html
+++ b/src/registrar/templates/home.html
@@ -5,7 +5,7 @@
{% block title %} Home | {% endblock %}
{% block content %}
-
+
{% if user.is_authenticated %}
{# the entire logged in page goes here #}
diff --git a/src/registrar/templates/includes/domain_request.html b/src/registrar/templates/includes/domain_request_awaiting_review.html
similarity index 57%
rename from src/registrar/templates/includes/domain_request.html
rename to src/registrar/templates/includes/domain_request_awaiting_review.html
index 0e377f35c..cc9b31ccb 100644
--- a/src/registrar/templates/includes/domain_request.html
+++ b/src/registrar/templates/includes/domain_request_awaiting_review.html
@@ -5,8 +5,10 @@
We received your .gov domain request. Our next step is to review your request. This usually takes 30 business days. We’ll email you if we have questions and when we complete our review. Contact us with any questions.
-
- Need to make changes?
-
+{% if show_withdraw_text %}
+
+ Need to make changes?
+
-If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+ If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+{% endif %}
diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html
new file mode 100644
index 000000000..2a254df4b
--- /dev/null
+++ b/src/registrar/templates/includes/domain_request_status_manage.html
@@ -0,0 +1,236 @@
+{% load custom_filters %}
+{% load static url_helpers %}
+
+
+ {% block breadcrumb %}
+ {% if portfolio %}
+ {% url 'domain-requests' as url %}
+ {% else %}
+ {% url 'home' as url %}
+ {% endif %}
+
+ {% endblock breadcrumb %}
+
+ {% block header %}
+ {% if not DomainRequest.requested_domain and DomainRequest.status == DomainRequest.DomainRequestStatus.STARTED %}
+ New domain request
+ {% else %}
+ Domain request for {{ DomainRequest.requested_domain.name }}
+ {% endif %}
+ {% endblock header %}
+
+ {% block status_summary %}
+
+
+
+
+ Status:
+
+ {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }}
+
+
+
+
+ {% endblock status_summary %}
+
+ {% block status_metadata %}
+
+ {% if portfolio %}
+ {% if DomainRequest.creator %}
+
+ Created by: {{DomainRequest.creator.email|default:DomainRequest.creator.get_formatted_name }}
+
+ {% else %}
+
+ No creator found: this is an error, please email help@get.gov.
+
+ {% endif %}
+ {% endif %}
+
+ {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %}
+ {% comment %}
+ These are intentionally seperated this way.
+ There is some code repetition, but it gives us more flexibility rather than a dense reduction.
+ Leave it this way until we've solidified our requirements.
+ {% endcomment %}
+ {% if DomainRequest.status == statuses.STARTED %}
+ {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %}
+
+ {% comment %}
+ A newly created domain request will not have a value for last_status update.
+ This is because the status never really updated.
+ However, if this somehow goes back to started we can default to displaying that new date.
+ {% endcomment %}
+ Started on: {{last_status_update|default:first_started_date}}
+
+ {% endwith %}
+ {% elif DomainRequest.status == statuses.SUBMITTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.ACTION_NEEDED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% elif DomainRequest.status == statuses.REJECTED %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Rejected on: {{last_status_update}}
+
+ {% elif DomainRequest.status == statuses.WITHDRAWN %}
+
+ Submitted on: {{last_submitted|default:first_submitted }}
+
+
+ Withdrawn on: {{last_status_update}}
+
+ {% else %}
+ {% comment %} Shown for in_review, approved, ineligible {% endcomment %}
+
+ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock status_metadata %}
+
+ {% block status_blurb %}
+ {% if DomainRequest.is_awaiting_review %}
+ {% include "includes/domain_request_awaiting_review.html" with show_withdraw_text=DomainRequest.is_withdrawable %}
+ {% endif %}
+ {% endblock status_blurb %}
+
+ {% block modify_request %}
+ {% if DomainRequest.is_withdrawable %}
+
+ {% endif %}
+ {% endblock modify_request %}
+
+
+
+ {% block request_summary_header %}
+ Summary of your domain request
+ {% endblock request_summary_header%}
+
+ {% block request_summary %}
+ {% with heading_level='h3' %}
+ {% with org_type=DomainRequest.get_generic_org_type_display %}
+ {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
+ {% endwith %}
+
+ {% if DomainRequest.tribe_name %}
+ {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %}
+
+ {% if DomainRequest.federally_recognized_tribe %}
+ Federally-recognized tribe
+ {% endif %}
+
+ {% if DomainRequest.state_recognized_tribe %}
+ State-recognized tribe
+ {% endif %}
+
+ {% endif %}
+
+ {% if DomainRequest.get_federal_type_display %}
+ {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.is_election_board %}
+ {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %}
+ {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %}
+ {% endwith %}
+ {% endif %}
+
+ {% if DomainRequest.organization_name %}
+ {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.about_your_organization %}
+ {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.senior_official %}
+ {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.current_websites.all %}
+ {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.requested_domain %}
+ {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.alternative_domains.all %}
+ {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.purpose %}
+ {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.creator %}
+ {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
+ {% endif %}
+
+ {% if DomainRequest.other_contacts.all %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
+ {% else %}
+ {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
+ {% endif %}
+
+ {# We always show this field even if None #}
+ {% if DomainRequest %}
+ CISA Regional Representative
+
+ {% if DomainRequest.cisa_representative_first_name %}
+ {{ DomainRequest.get_formatted_cisa_rep_name }}
+ {% else %}
+ No
+ {% endif %}
+
+ Anything else
+
+ {% if DomainRequest.anything_else %}
+ {{DomainRequest.anything_else}}
+ {% else %}
+ No
+ {% endif %}
+
+ {% endif %}
+ {% endwith %}
+ {% endblock request_summary%}
+
+
\ No newline at end of file
diff --git a/src/registrar/templates/includes/domains_table.html b/src/registrar/templates/includes/domains_table.html
index 76ead3a2c..11d3ac945 100644
--- a/src/registrar/templates/includes/domains_table.html
+++ b/src/registrar/templates/includes/domains_table.html
@@ -13,7 +13,7 @@
{% endif %}
-
+

{% endif %} - {% else %} + {% elif not hide_no_contact_info_message %} No additional contact information found.
{% endif %} diff --git a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html index e22bcb571..6b755724e 100644 --- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html +++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html @@ -66,24 +66,6 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html) No changelog to display.
No email will be sent.
-Auto-generated email that will be sent to the creator
-
-
- Email sent to the creator
+
+ {{ field.field }}
+
+
+ Edit email
+
+ Are you sure you want to edit this email? +
++ The creator of this request already received an email for this status/reason: +
+-
+
- Status: Action needed +
- Reason: {{ original_object.get_action_needed_reason_display }} +
+ If you edit this email's text, the system will send another email to + the creator after you “save” your changes. If you do not want to send another email, click “cancel” below.
- Are you sure you want to edit this email? -
-- The creator of this request already received an email for this status/reason: -
--
-
- Status: Action needed -
- Reason: {{ original_object.get_action_needed_reason_display }} -
- If you edit this email's text, the system will send another email to - the creator after you “save” your changes. If you do not want to send another email, click “cancel” below. -
--
-
- - - -
- - - -
-
+
- + + +
- + + +
Details
-Details
+Name | +Title | +Phone | +||
---|---|---|---|---|
{{ admin.user.get_formatted_name}} | +{{ admin.user.title }} | ++ {% if admin.user.email %} + {{ admin.user.email }} + {% else %} + None + {% endif %} + | +{{ admin.user.phone }} | ++ {% if admin.user.email %} + + + {% endif %} + | +
Name | +Status | +|
---|---|---|
{{ domain_request }} | + {% if domain_request.get_status_display %} +{{ domain_request.get_status_display }} | + {% else %} +None | + {% endif %} +
Name | +State | +|
---|---|---|
{{ domain }} | + {% if domain and domain.get_state_display %} +{{ domain.get_state_display }} | + {% else %} +None | + {% endif %} +
No roles found.
+ {% endif %} +No additional permissions found.
+ {% endif %} +Name | +Title | +Phone | +Roles | +||
---|---|---|---|---|---|
{{ member.user.get_formatted_name}} | +{{ member.user.title }} | ++ {% if member.user.email %} + {{ member.user.email }} + {% else %} + None + {% endif %} + | +{{ member.user.phone }} | ++ {% for role in member.user|portfolio_role_summary:original %} + {{ role }} + {% endfor %} + | ++ {% if member.user.email %} + + + {% endif %} + | +
Domain requests
-
- {% for domain_request in domain_requests %}
-
- - - {{ domain_request.requested_domain }} - - ({{ domain_request.status }}) - - {% endfor %} + {% if domains|length > 0 %} + {% for domain_request in domain_requests %} +
- + + {{ domain_request.requested_domain }} + + ({{ domain_request.status }}) + + {% endfor %} + {% else %} +
- No domain requests. + {% endif %}
Domains
-
- {% for domain in domains %}
-
- - - {{ domain.name }} - - ({{ domain.state }}) - - {% endfor %} + {% if domains|length > 0 %} + {% for domain in domains %} +
- + + {{ domain.name }} + + ({{ domain.state }}) + + {% endfor %} + {% else %} +
- No domains. + {% endif %}
Portfolio information
-Portfolios
--
- {% for portfolio in portfolios %}
-
- - - {{ portfolio }} - - - {% endfor %} -
Associated requests and domains
Domain name: {{ domain.name }}
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html index 4b6ca6e77..dca68f6ef 100644 --- a/src/registrar/templates/domain_detail.html +++ b/src/registrar/templates/domain_detail.html @@ -5,7 +5,7 @@ {% block domain_content %} {{ block.super }}{{ domain.name }}
+{{ domain.name }}
Federally-recognized tribe
{% endif %} - {% if domain_request.state_recognized_tribe %}State-recognized tribe
{% endif %} - {% endif %} - - - {% if step == Step.ORGANIZATION_FEDERAL %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% with title=form_titles|get_item:step value=domain_request.get_federal_type_display|default:"Incomplete"|safe %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - - {% if step == Step.ORGANIZATION_ELECTION %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% with title=form_titles|get_item:step value=domain_request.is_election_board|yesno:"Yes,No,Incomplete" %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - - {% if step == Step.ORGANIZATION_CONTACT %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% if domain_request.organization_name %} - {% with title=form_titles|get_item:step value=domain_request %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url address='true' %} - {% endwith %} - {% else %} - {% with title=form_titles|get_item:step value="Incomplete"|safe %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - {% endif %} - - {% if step == Step.ABOUT_YOUR_ORGANIZATION %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% with title=form_titles|get_item:step value=domain_request.about_your_organization|default:"Incomplete"|safe %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - - {% if step == Step.SENIOR_OFFICIAL %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% if domain_request.senior_official is not None %} - {% with title=form_titles|get_item:step value=domain_request.senior_official %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url contact='true' %} - {% endwith %} - {% else %} - {% with title=form_titles|get_item:step value="Incomplete"|safe %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - {% endif %} - - {% if step == Step.CURRENT_SITES %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% if domain_request.current_websites.all %} - {% with title=form_titles|get_item:step value=domain_request.current_websites.all %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url list='true' %} - {% endwith %} - {% else %} - {% with title=form_titles|get_item:step value='None' %} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - {% endif %} - {% endif %} - - {% if step == Step.DOTGOV_DOMAIN %} - {% namespaced_url 'domain-request' step as domain_request_url %} - {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete"|safe%} - {% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %} - {% endwith %} - - {% if domain_request.alternative_domains.all %} -Alternative domains
--
- {% for site in domain_request.alternative_domains.all %}
-
- {{ site.website }} - {% endfor %} -
CISA Regional Representative
--
- {% if domain_request.cisa_representative_first_name %}
-
- {{domain_request.cisa_representative_first_name}} {{domain_request.cisa_representative_last_name}} - {% if domain_request.cisa_representative_email %} -
- {{domain_request.cisa_representative_email}} - {% endif %} - {% else %} - No - {% endif %} -
Anything else
--
- {% if domain_request.anything_else %}
- {{domain_request.anything_else}}
- {% else %}
- No
- {% endif %}
-
Domain request for {{ DomainRequest.requested_domain.name }}
-- - Status: - - {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }} -
-- - {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %} - {% comment %} - These are intentionally seperated this way. - There is some code repetition, but it gives us more flexibility rather than a dense reduction. - Leave it this way until we've solidified our requirements. - {% endcomment %} - {% if DomainRequest.status == statuses.STARTED %} - {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %} -
- {% comment %} - A newly created domain request will not have a value for last_status update. - This is because the status never really updated. - However, if this somehow goes back to started we can default to displaying that new date. - {% endcomment %} - Started on: {{last_status_update|default:first_started_date}} -
- {% endwith %} - {% elif DomainRequest.status == statuses.SUBMITTED %} -- Submitted on: {{last_submitted|default:first_submitted }} -
-- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} -
- {% elif DomainRequest.status == statuses.ACTION_NEEDED %} -- Submitted on: {{last_submitted|default:first_submitted }} -
-- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} -
- {% elif DomainRequest.status == statuses.REJECTED %} -- Submitted on: {{last_submitted|default:first_submitted }} -
-- Rejected on: {{last_status_update}} -
- {% elif DomainRequest.status == statuses.WITHDRAWN %} -- Submitted on: {{last_submitted|default:first_submitted }} -
-- Withdrawn on: {{last_status_update}} -
- {% else %} - {% comment %} Shown for in_review, approved, ineligible {% endcomment %} -- Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} -
- {% endif %} - - {% if DomainRequest.status != 'rejected' %} -{% include "includes/domain_request.html" %}
- - {% endif %} - {% endwith %} -Summary of your domain request
- {% with heading_level='h3' %} - {% with org_type=DomainRequest.get_generic_org_type_display %} - {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %} - {% endwith %} - - {% if DomainRequest.tribe_name %} - {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %} - - {% if DomainRequest.federally_recognized_tribe %} -Federally-recognized tribe
- {% endif %} - - {% if DomainRequest.state_recognized_tribe %} -State-recognized tribe
- {% endif %} - - {% endif %} - - {% if DomainRequest.get_federal_type_display %} - {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.is_election_board %} - {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %} - {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %} - {% endwith %} - {% endif %} - - {% if DomainRequest.organization_name %} - {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.about_your_organization %} - {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.senior_official %} - {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.current_websites.all %} - {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.requested_domain %} - {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.alternative_domains.all %} - {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.purpose %} - {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %} - {% endif %} - - {% if DomainRequest.creator %} - {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %} - {% endif %} - {% if DomainRequest.other_contacts.all %} - {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %} - {% else %} - {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %} - {% endif %} - - {# We always show this field even if None #} - {% if DomainRequest %} -CISA Regional Representative
--
- {% if DomainRequest.cisa_representative_first_name %}
- {{ DomainRequest.get_formatted_cisa_rep_name }}
- {% else %}
- No
- {% endif %}
-
Anything else
--
- {% if DomainRequest.anything_else %}
- {{DomainRequest.anything_else}}
- {% else %}
- No
- {% endif %}
-
We received your .gov domain request. Our next step is to review your request. This usually takes 30 business days. We’ll email you if we have questions and when we complete our review. Contact us with any questions.
-- Need to make changes? -
+{% if show_withdraw_text %} ++ Need to make changes? +
-If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+If you need to change your request you have to first withdraw it. Once you withdraw the request you can edit it and submit it again. Changing your request might add to the wait time.
+{% endif %} diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html new file mode 100644 index 000000000..2a254df4b --- /dev/null +++ b/src/registrar/templates/includes/domain_request_status_manage.html @@ -0,0 +1,236 @@ +{% load custom_filters %} +{% load static url_helpers %} +New domain request
+ {% else %} +Domain request for {{ DomainRequest.requested_domain.name }}
+ {% endif %} + {% endblock header %} + + {% block status_summary %} ++ + Status: + + {{ DomainRequest.get_status_display|default:"ERROR Please contact technical support/dev" }} +
++ {% endblock status_summary %} + + {% block status_metadata %} + + {% if portfolio %} + {% if DomainRequest.creator %} +
+ Created by: {{DomainRequest.creator.email|default:DomainRequest.creator.get_formatted_name }} +
+ {% else %} ++ No creator found: this is an error, please email help@get.gov. +
+ {% endif %} + {% endif %} + + {% with statuses=DomainRequest.DomainRequestStatus last_submitted=DomainRequest.last_submitted_date|date:"F j, Y" first_submitted=DomainRequest.first_submitted_date|date:"F j, Y" last_status_update=DomainRequest.last_status_update|date:"F j, Y" %} + {% comment %} + These are intentionally seperated this way. + There is some code repetition, but it gives us more flexibility rather than a dense reduction. + Leave it this way until we've solidified our requirements. + {% endcomment %} + {% if DomainRequest.status == statuses.STARTED %} + {% with first_started_date=DomainRequest.get_first_status_started_date|date:"F j, Y" %} ++ {% comment %} + A newly created domain request will not have a value for last_status update. + This is because the status never really updated. + However, if this somehow goes back to started we can default to displaying that new date. + {% endcomment %} + Started on: {{last_status_update|default:first_started_date}} +
+ {% endwith %} + {% elif DomainRequest.status == statuses.SUBMITTED %} ++ Submitted on: {{last_submitted|default:first_submitted }} +
++ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} +
+ {% elif DomainRequest.status == statuses.ACTION_NEEDED %} ++ Submitted on: {{last_submitted|default:first_submitted }} +
++ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} +
+ {% elif DomainRequest.status == statuses.REJECTED %} ++ Submitted on: {{last_submitted|default:first_submitted }} +
++ Rejected on: {{last_status_update}} +
+ {% elif DomainRequest.status == statuses.WITHDRAWN %} ++ Submitted on: {{last_submitted|default:first_submitted }} +
++ Withdrawn on: {{last_status_update}} +
+ {% else %} + {% comment %} Shown for in_review, approved, ineligible {% endcomment %} ++ Last updated on: {{DomainRequest.updated_at|date:"F j, Y"}} +
+ {% endif %} + {% endwith %} + {% endblock status_metadata %} + + {% block status_blurb %} + {% if DomainRequest.is_awaiting_review %} +{% include "includes/domain_request_awaiting_review.html" with show_withdraw_text=DomainRequest.is_withdrawable %}
+ {% endif %} + {% endblock status_blurb %} + + {% block modify_request %} + {% if DomainRequest.is_withdrawable %} + + {% endif %} + {% endblock modify_request %} +Summary of your domain request
+ {% endblock request_summary_header%} + + {% block request_summary %} + {% with heading_level='h3' %} + {% with org_type=DomainRequest.get_generic_org_type_display %} + {% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %} + {% endwith %} + + {% if DomainRequest.tribe_name %} + {% include "includes/summary_item.html" with title='Tribal government' value=DomainRequest.tribe_name heading_level=heading_level %} + + {% if DomainRequest.federally_recognized_tribe %} +Federally-recognized tribe
+ {% endif %} + + {% if DomainRequest.state_recognized_tribe %} +State-recognized tribe
+ {% endif %} + + {% endif %} + + {% if DomainRequest.get_federal_type_display %} + {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.is_election_board %} + {% with value=DomainRequest.is_election_board|yesno:"Yes,No,Incomplete" %} + {% include "includes/summary_item.html" with title='Election office' value=value heading_level=heading_level %} + {% endwith %} + {% endif %} + + {% if DomainRequest.organization_name %} + {% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.about_your_organization %} + {% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.senior_official %} + {% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.current_websites.all %} + {% include "includes/summary_item.html" with title='Current websites' value=DomainRequest.current_websites.all list='true' heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.requested_domain %} + {% include "includes/summary_item.html" with title='.gov domain' value=DomainRequest.requested_domain heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.alternative_domains.all %} + {% include "includes/summary_item.html" with title='Alternative domains' value=DomainRequest.alternative_domains.all list='true' heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.purpose %} + {% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.creator %} + {% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %} + {% endif %} + + {% if DomainRequest.other_contacts.all %} + {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %} + {% else %} + {% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %} + {% endif %} + + {# We always show this field even if None #} + {% if DomainRequest %} +CISA Regional Representative
+-
+ {% if DomainRequest.cisa_representative_first_name %}
+ {{ DomainRequest.get_formatted_cisa_rep_name }}
+ {% else %}
+ No
+ {% endif %}
+
Anything else
+-
+ {% if DomainRequest.anything_else %}
+ {{DomainRequest.anything_else}}
+ {% else %}
+ No
+ {% endif %}
+