Use AccordionList macro on applications index page, remove duped class on task order index page

This commit is contained in:
leigh-mil
2019-12-10 10:58:55 -05:00
parent ac8dd662d1
commit e772a4b84b
4 changed files with 10 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
{% from "components/accordion.html" import Accordion %}
{% from "components/accordion_list.html" import AccordionList %}
{% from "components/empty_state.html" import EmptyState %}
{% from "components/sticky_cta.html" import StickyCTA %}
{% from "components/icon.html" import Icon %}
@@ -32,7 +33,7 @@
) }}
{% else %}
<div class="usa-accordion">
{% call AccordionList() %}
{% for application in portfolio.applications|sort(attribute='name') %}
{% set section_name = "application-{}".format(application.id) %}
{% set title = "Environments ({})".format(application.environments|length) %}
@@ -76,7 +77,7 @@
{% endcall %}
</div>
{% endfor %}
</div>
{% endcall %}
{% endif %}
</div>