mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
Further simplification
This commit is contained in:
parent
4e5809b99c
commit
c54bffca4c
2 changed files with 14 additions and 5 deletions
|
@ -372,9 +372,18 @@ input.admin-confirm-button {
|
||||||
|
|
||||||
details.dja-detail-table {
|
details.dja-detail-table {
|
||||||
display: inline-table;
|
display: inline-table;
|
||||||
|
background-color: var(--body-bg);
|
||||||
.dja-details-summary {
|
.dja-details-summary {
|
||||||
color: var(--header-link-color);
|
color: var(--header-link-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
td, th {
|
||||||
|
padding-left: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table.dja-user-detail-table {
|
table.dja-user-detail-table {
|
||||||
|
|
|
@ -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" %}
|
{% 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 %}
|
{% elif field.field.name == "other_contacts" and original.other_contacts.all %}
|
||||||
<details class="margin-top-1 dja-detail-table">
|
<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">
|
<div class="grid-container margin-left-0 padding-left-0 padding-right-0 dja-details-contents">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<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.
|
Then we can link these two fields using javascript.
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
<tr data-contact-id="{{ contact.id }}" data-contact-url="{% url 'admin:registrar_contact_change' contact.id %}">
|
<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>
|
<th class="padding-left-1" scope="row">{{contact.first_name}} {{contact.last_name}}</th>
|
||||||
<td>{{ contact.title }}</td>
|
<td class="padding-left-1">{{ contact.title }}</td>
|
||||||
<td>{{ contact.email }}</td>
|
<td class="padding-left-1">{{ contact.email }}</td>
|
||||||
<td>{{ contact.phone }}</td>
|
<td class="padding-left-1">{{ contact.phone }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue