Further simplification

This commit is contained in:
zandercymatics 2024-03-25 10:07:31 -06:00
parent 4e5809b99c
commit c54bffca4c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 14 additions and 5 deletions

View file

@ -372,9 +372,18 @@ input.admin-confirm-button {
details.dja-detail-table {
display: inline-table;
background-color: var(--body-bg);
.dja-details-summary {
color: var(--header-link-color);
}
tr {
background-color: transparent;
}
td, th {
padding-left: 12px;
}
}
table.dja-user-detail-table {

View file

@ -37,7 +37,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% include "django/admin/includes/contact_detail_table.html" with user=original.authorizing_official field_name="authorizing_official" %}
{% elif field.field.name == "other_contacts" and original.other_contacts.all %}
<details class="margin-top-1 dja-detail-table">
<summary class="padding-1 dja-details-summary">Details</summary>
<summary class="padding-1 padding-left-0 dja-details-summary">Details</summary>
<div class="grid-container margin-left-0 padding-left-0 padding-right-0 dja-details-contents">
<table>
<tbody>
@ -47,10 +47,10 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
Then we can link these two fields using javascript.
{% endcomment %}
<tr data-contact-id="{{ contact.id }}" data-contact-url="{% url 'admin:registrar_contact_change' contact.id %}">
<th scope="row">{{contact.first_name}} {{contact.last_name}}</th>
<td>{{ contact.title }}</td>
<td>{{ contact.email }}</td>
<td>{{ contact.phone }}</td>
<th class="padding-left-1" scope="row">{{contact.first_name}} {{contact.last_name}}</th>
<td class="padding-left-1">{{ contact.title }}</td>
<td class="padding-left-1">{{ contact.email }}</td>
<td class="padding-left-1">{{ contact.phone }}</td>
</tr>
{% endfor %}
</tbody>