-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2610 from cisagov/nl/2518-suborg-domainrequest-di…
…splay Issue #2518: Suborganization shows all related domains/requests [cb]
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/registrar/templates/django/admin/suborg_change_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends 'django/admin/email_clipboard_change_form.html' %} | ||
{% load i18n static %} | ||
|
||
{% block after_related_objects %} | ||
<div class="module aligned padding-3"> | ||
<h2>Associated requests and domains</h2> | ||
<div class="grid-row grid-gap mobile:padding-x-1 desktop:padding-x-4"> | ||
<div class="mobile:grid-col-12 tablet:grid-col-6 desktop:grid-col-4"> | ||
<h3>Domain requests</h3> | ||
<ul class="margin-0 padding-0"> | ||
{% for domain_request in domain_requests %} | ||
<li> | ||
<a href="{% url 'admin:registrar_domainrequest_change' domain_request.pk %}"> | ||
{{ domain_request.requested_domain }} | ||
</a> | ||
({{ domain_request.status }}) | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="mobile:grid-col-12 tablet:grid-col-6 desktop:grid-col-4"> | ||
<h3>Domains</h3> | ||
<ul class="margin-0 padding-0"> | ||
{% for domain in domains %} | ||
<li> | ||
<a href="{% url 'admin:registrar_domain_change' domain.pk %}"> | ||
{{ domain.name }} | ||
</a> | ||
({{ domain.state }}) | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |