mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Hide details when no data exists
This commit is contained in:
parent
1e082f5fd1
commit
707f9a0e60
1 changed files with 6 additions and 2 deletions
|
@ -33,8 +33,12 @@
|
|||
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.senior_official no_title_top_padding=field.is_readonly %}
|
||||
</div>
|
||||
{% elif field.field.name == "display_admins" %}
|
||||
{% include "django/admin/includes/portfolio_admins_table.html" with admins=admins %}
|
||||
{% if admins|length > 0 %}
|
||||
{% include "django/admin/includes/portfolio_admins_table.html" with admins=admins %}
|
||||
{% endif %}
|
||||
{% elif field.field.name == "display_members" %}
|
||||
{% include "django/admin/includes/portfolio_members_table.html" with members=members %}
|
||||
{% if members|length > 0 %}
|
||||
{% include "django/admin/includes/portfolio_members_table.html" with members=members %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock after_help_text %}
|
Loading…
Add table
Add a link
Reference in a new issue