Fixing some commit weirdness

This commit is contained in:
zandercymatics 2023-08-25 07:53:28 -06:00
parent c46f27d53b
commit 026222327c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,7 @@
{% block domain_content %}
{{ block.super }}
<div class="margin-top-4 tablet:grid-col-10">
{% url 'domain-nameservers' pk=domain.id as url %}
{% if domain.nameservers %}
{% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url %}
@ -18,6 +19,7 @@
{% url 'domain-authorizing-official' pk=domain.id as url %}
{% include "includes/summary_item.html" with title='Authorizing official' value=domain.domain_info.authorizing_official contact='true' edit_link=url %}
{% url 'domain-your-contact-information' pk=domain.id as url %}
{% include "includes/summary_item.html" with title='Your contact information' value=request.user.contact contact='true' edit_link=url %}

View file

@ -11,6 +11,7 @@
Domain overview
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-nameservers' pk=domain.id as url %}
<a href="{{ url }}"
@ -19,6 +20,7 @@
DNS name servers
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-org-name-address' pk=domain.id as url %}
<a href="{{ url }}"
@ -27,6 +29,7 @@
Organization name and mailing address
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-authorizing-official' pk=domain.id as url %}
<a href="{{ url }}"
@ -35,12 +38,13 @@
Authorizing official
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-your-contact-information' pk=domain.id as url %}
<a href="{{ url }}"
{% if request.path == url %}class="usa-current"{% endif %}
>
Your contact information
Your contact information
</a>
</li>

View file

@ -80,6 +80,10 @@ class DomainOrgNameAddressView(DomainPermissionView, FormMixin):
self.request, "The organization name and mailing address has been updated."
)
# Q: Is there a more efficent way to do this?
# I don't like repeating code across these functions,
# But I can't figure out a way to do this without installing
# middleware...
if self.request.user.is_staff or self.request.user.is_superuser:
# if they are editing from an '/admin' redirect, log their actions
self.log_analyst_form_actions(