Default to opening TO accordions with task orders on the TO index page
This commit is contained in:
parent
ff82e39626
commit
fbd4c890f3
@ -6,8 +6,12 @@
|
||||
heading_tag="h2",
|
||||
heading_classes="",
|
||||
content_tag="div",
|
||||
content_classes="") %}
|
||||
<accordion v-cloak inline-template>
|
||||
content_classes="",
|
||||
default_visible=False) %}
|
||||
<accordion
|
||||
v-cloak
|
||||
inline-template
|
||||
v-bind:default-visible='{{ default_visible | string | lower }}'>
|
||||
<{{wrapper_tag}} class="{{ wrapper_classes }}">
|
||||
<{{heading_tag}} class="accordion__button {{ heading_classes }}">
|
||||
<button
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user