{% 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', expired=False) %}
!{ col.displayName }
!{ taskOrder.display_status } - View {{ Icon("caret_right") }}
{% endmacro %}

Portfolio Funding

{% if funding_end_date %} {{ Icon('ok') }} Funded through {% endif %}
Start a New Task Order
{% 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') }}
{{ total_balance | dollars }} Total Active Balance
{% endif %} {% if expired_task_orders %} {{ TaskOrderList(expired_task_orders, label='', expired=True) }} {% endif %}
{% endblock %}