{% from "components/empty_state.html" import EmptyState %} {% from "components/icon.html" import Icon %} {% extends "portfolios/base.html" %} {% block portfolio_content %} {% macro ViewLink(task_order) %} View {{ Icon("caret_right") }} {% endmacro %} {% macro TaskOrderList(task_orders, label='success') %}
!{ col.displayName }
!{ taskOrder.display_status } - View {{ Icon("caret_right") }}
{% endmacro %}
{% for task_order in pending_task_orders %}
Pending
Started
Value
{{ task_order.budget | dollars }}
{{ ViewLink(task_order) }}
{% endfor %} {% if not active_task_orders and not pending_task_orders %} {{ EmptyState( 'This portfolio doesn’t have any active or pending task orders.', action_label='Add a New Task Order', action_href=url_for('task_orders.new', screen=1, portfolio_id=portfolio.id), icon='cloud', ) }} {% endif %} {% if active_task_orders %} {{ TaskOrderList(active_task_orders, label='success') }} {% endif %} {% if expired_task_orders %} {{ TaskOrderList(expired_task_orders, label='') }} {% endif %}
{% endblock %}