- {% endif %}
-
- {% if user.title or user.contact.title or user.email or user.contact.email or user.phone or user.contact.phone %}
-
-
- {% if show_table_details %}
-
Title
- {% endif %}
-
- {% if user.title or user.contact.title %}
- {% if user.contact.title %}
-
{{ user.contact.title }}
- {% else %}
-
{{ user.title }}
- {% endif %}
- {% else %}
-
None
- {% endif %}
-
-
- {% if show_table_details %}
-
Email
- {% endif %}
-
- {% if user.email or user.contact.email %}
- {% if user.contact.email %}
-
{{ user.contact.email }}
- {% else %}
-
{{ user.email }}
- {% endif %}
- {% else %}
-
None
- {% endif %}
-
-
- {% if show_table_details %}
-
Phone
- {% endif %}
-
- {% if user.phone or user.contact.phone %}
- {% if user.contact.phone %}
-
{{ user.contact.phone }}
- {% else %}
-
{{ user.phone }}
- {% endif %}
- {% else %}
-
None
- {% endif %}
-
-
- {% else %}
-
-
-
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 577bd9f41..01b9e6a8c 100644
--- a/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
+++ b/src/registrar/templates/django/admin/includes/detail_table_fieldset.html
@@ -5,64 +5,78 @@
This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endcomment %}
{% block field_readonly %}
+ {% with all_contacts=original.other_contacts.all %}
{% if field.field.name == "other_contacts" %}
-
- {% for contact in field.contents|split:", " %}
- {{ contact }}{% if not forloop.last %}, {% endif %}
- {% endfor %}
-
- {% elif field.field.name == "current_websites" %}
- {% comment %}
- The "website" model is essentially just a text field.
- It is not useful to be redirected to the object definition,
- rather it is more useful in this scenario to be redirected to the
- actual website (as its just a plaintext string otherwise).
-
- This ONLY applies to analysts. For superusers, its business as usual.
- {% endcomment %}
-
- {% with total_websites=field.contents|split:", " %}
- {% for website in total_websites %}
- {{ website }}{% if not forloop.last %}, {% endif %}
- {# Acts as a #}
- {% if total_websites|length < 5 %}
-
+ {% if all_contacts.count > 2 %}
+
+ {% for contact in field.contents|split:", " %}
+ {{ contact }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+
+ {% elif field.field.name == "current_websites" %}
+ {% comment %}
+ The "website" model is essentially just a text field.
+ It is not useful to be redirected to the object definition,
+ rather it is more useful in this scenario to be redirected to the
+ actual website (as its just a plaintext string otherwise).
+
+ This ONLY applies to analysts. For superusers, its business as usual.
+ {% endcomment %}
+
+ {% with total_websites=field.contents|split:", " %}
+ {% for website in total_websites %}
+ {{ website }}{% if not forloop.last %}, {% endif %}
+ {# Acts as a #}
+ {% if total_websites|length < 5 %}
+
+ {% endif %}
+ {% endfor %}
+ {% endwith %}
+
- {% include "django/admin/includes/contact_detail_table.html" with user=original.creator field_name="creator" no_title_top_padding=field.is_readonly %}
+ {% include "django/admin/includes/contact_detail_list.html" with user=original.creator field_name="creator" no_title_top_padding=field.is_readonly %}
{% elif field.field.name == "submitter" %}
- {% include "django/admin/includes/contact_detail_table.html" with user=original.submitter field_name="submitter" no_title_top_padding=field.is_readonly %}
+ {% include "django/admin/includes/contact_detail_list.html" with user=original.submitter field_name="submitter" no_title_top_padding=field.is_readonly %}
- {% include "django/admin/includes/contact_detail_table.html" with user=original.authorizing_official field_name="authorizing_official" no_title_top_padding=field.is_readonly %}
+ {% include "django/admin/includes/contact_detail_list.html" with user=original.authorizing_official field_name="authorizing_official" no_title_top_padding=field.is_readonly %}
{% elif field.field.name == "other_contacts" and original.other_contacts.all %}
{% with all_contacts=original.other_contacts.all %}
- {% if all_contacts.count == 1 %}
- {% for contact in all_contacts %}
-
-
-
- {% include "django/admin/includes/contact_detail_table.html" with user=contact field_name="other_contact" no_title_top_padding=field.is_readonly %}
-