{% extends "portfolios/base.html" %} {% set secondary_breadcrumb = "navigation.portfolio_navigation.breadcrumbs.funding" | translate %} {% from "components/icon.html" import Icon %} {% block portfolio_content %} {% set show_dd_254_button = is_so and to_form_complete %} {% set show_to_info_button = (is_cor or is_ko) and to_form_complete %} {% set show_sign_to_button = is_ko and dd_254_complete and not is_to_signed %} {% 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 %} {% macro InvitationStatus(title, officer, officer_info) %} {% set class = "invited" if officer else "uninvited" %}
{{ Icon("avatar" if officer else "alert", classes=class) }}
{{ title }}
{% if officer_info %}
{{ officer_info.first_name }} {{ officer_info.last_name }}
{{ officer_info.email }}
{{ officer_info.phone_number | usPhone }}
{% else %} not yet invited {% endif %}
{% 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, ) }} {{ Step( button_text=show_dd_254_button and ("common.edit" | translate), button_url=show_dd_254_button and url_for("portfolios.so_review", portfolio_id=portfolio.id, task_order_id=task_order.id), complete=dd_254_complete, description="task_orders.view.steps.security" | translate({ "security_officer": officer_name(task_order.security_officer) }) | safe, ) }} {% call Step( description="task_orders.view.steps.record" | translate({ "contracting_officer": officer_name(task_order.contracting_officer), "contracting_officer_representative": officer_name(task_order.contracting_officer_representative) }) | safe, button_url=show_to_info_button and url_for( "portfolios.ko_review", portfolio_id=portfolio.id, task_order_id=task_order.id, ), button_text=show_to_info_button and ("common.edit" | translate), complete=False) %}
{{ "task_orders.view.steps.record_description" | translate | safe }}
{% endcall %} {{ Step( button_text=show_sign_to_button and ("common.sign" | translate), button_url=show_sign_to_button and url_for( "portfolios.ko_review", portfolio_id=portfolio.id, task_order_id=task_order.id, ), complete=is_to_signed, description="task_orders.view.steps.sign" | translate({ "contracting_officer": officer_name(task_order.contracting_officer) }) | 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="Cloud Services Estimate", link_url=task_order.csp_estimate and url_for("task_orders.download_csp_estimate", task_order_id=task_order.id) ) }} {{ DocumentLink( title="Market Research", link_url="#") }} {{ DocumentLink( title="DD 254", link_url="") }}

Invitations

{% if to_form_complete %} {{ "common.manage" | translate }} {{ Icon("edit") }} {% endif %}
{{ InvitationStatus('Contracting Officer', task_order.contracting_officer, officer_info=task_order.officer_dictionary('contracting_officer')) }} {{ InvitationStatus('Contracting Officer Representative', task_order.contracting_officer_representative, officer_info=task_order.officer_dictionary('contracting_officer_representative')) }} {{ InvitationStatus('IA Security Officer', officer=task_order.security_officer, officer_info=task_order.officer_dictionary('security_officer')) }}
{% endblock %}