Default to opening TO accordions with task orders on the TO index page

This commit is contained in:
leigh-mil
2020-02-10 11:22:38 -05:00
parent ff82e39626
commit fbd4c890f3
2 changed files with 14 additions and 4 deletions

View File

@@ -14,9 +14,15 @@
{% macro TaskOrderList(task_orders, status) %}
{% set show_task_orders = task_orders|length > 0 %}
<div class="accordion">
{% call Accordion(title=("task_orders.status_list_title"|translate({'status': status})), id=status, heading_tag="h4") %}
{% if task_orders|length > 0 %}
{% call Accordion(
title=("task_orders.status_list_title"|translate({'status': status})),
id=status,
heading_tag="h4",
default_visible=show_task_orders
) %}
{% if show_task_orders %}
{% for task_order in task_orders %}
{% set to_number %}
{% if task_order.number != None %}