{% extends "portfolios/base.html" %} {% set secondary_breadcrumb = "navigation.portfolio_navigation.breadcrumbs.funding" | translate %} {% from "components/icon.html" import Icon %} {% block portfolio_content %} {% macro officer_name(officer) -%} {%- if not officer -%} not yet invited {%- elif officer == g.current_user -%} you {%- else -%} {{ officer.full_name }} {%- endif -%} {%- endmacro -%} {% macro Step(description="", complete=True, button_text=None, button_url=None) %}
{% if complete %} Completed {% else %} Not started {% endif %}
{{ description }}
{% if not task_order.is_active and button_text and button_url %} {{ button_text }} {% endif %}
{% if caller %} {{ caller() }} {% endif %}
{% endmacro %} {% macro DocumentLink(title="", link_url="", description="") %} {% set disabled = not link_url %} {% endmacro %}
{% include "fragments/flash.html" %}

New Task Order

{{ task_order.status.value }}
Started
Task order value
{{ task_order.budget | dollars }}

{{ "task_orders.view.whats_next" | translate }}

{{ Step( button_text='Edit', button_url=url_for("task_orders.new", screen=1, task_order_id=task_order.id), complete=to_form_complete, description="task_orders.view.steps.draft" | translate({ "contact": officer_name(task_order.creator) })| safe, ) }}

Download documents

{% set description -%} last updated on {%- endset %} {% if task_order.pdf %} {{ DocumentLink( title="Task Order", link_url=url_for('task_orders.download_task_order_pdf', task_order_id=task_order.id), description=description) }} {% else %} {{ DocumentLink( title="Task Order Draft", link_url=to_form_complete and url_for('task_orders.download_summary', task_order_id=task_order.id), description=description) }} {% endif %}

{{ DocumentLink( title="Instruction Sheet", link_url="#") }} {{ DocumentLink( title="Market Research", link_url="#") }}

Invitations

{% if to_form_complete %} {{ "common.manage" | translate }} {{ Icon("edit") }} {% endif %}
{% endblock %}