Add edit links to KO Review sections that link to TO form
This commit is contained in:
parent
cac3a00b63
commit
bef2b8ed24
9
templates/components/to_edit_link.html
Normal file
9
templates/components/to_edit_link.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% from "components/edit_link.html" import EditLink %}
|
||||
|
||||
{% macro TOEditLink(screen=1, anchor=None) %}
|
||||
{% if task_order %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, task_order_id=task_order.id, _anchor=anchor)) }}
|
||||
{% else %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, _anchor=anchor)) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% set secondary_breadcrumb = "navigation.portfolio_navigation.breadcrumbs.funding" | translate %}
|
||||
|
||||
{% from "components/edit_link.html" import EditLink %}
|
||||
{% from "components/to_edit_link.html" import TOEditLink %}
|
||||
{% from "components/required_label.html" import RequiredLabel %}
|
||||
{% from "components/icon.html" import Icon %}
|
||||
{% from "components/date_picker.html" import DatePicker %}
|
||||
@ -42,15 +42,23 @@
|
||||
</div>
|
||||
|
||||
<div class="panel__content">
|
||||
<div class="h2">{{ "task_orders.new.review.app_info"| translate }}</div>
|
||||
<div class="h2">
|
||||
{{ "task_orders.new.review.app_info"| translate }}
|
||||
</div>
|
||||
{% include "fragments/task_order_review/app_info.html" %}
|
||||
<hr>
|
||||
|
||||
<div class="h2">{{ "task_orders.new.review.reporting"| translate }}</div>
|
||||
<div class="h2">
|
||||
{{ "task_orders.new.review.reporting"| translate }}
|
||||
{{ TOEditLink(screen=1, anchor="reporting") }}
|
||||
</div>
|
||||
{% include "fragments/task_order_review/reporting.html" %}
|
||||
<hr>
|
||||
|
||||
<div class="h2">{{ "task_orders.new.review.funding"| translate }}</div>
|
||||
<div class="h2">
|
||||
{{ "task_orders.new.review.funding"| translate }}
|
||||
{{ TOEditLink(screen=2) }}
|
||||
</div>
|
||||
{% include "fragments/task_order_review/funding.html" %}
|
||||
|
||||
<div class="form__sub-fields">
|
||||
@ -59,7 +67,10 @@
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="h2">{{ "task_orders.new.review.oversight"| translate }}</div>
|
||||
<div class="h2">
|
||||
{{ "task_orders.new.review.oversight"| translate }}
|
||||
{{ TOEditLink(screen=3) }}
|
||||
</div>
|
||||
{% include "fragments/task_order_review/oversight.html" %}
|
||||
<hr>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends 'task_orders/_new.html' %}
|
||||
|
||||
{% from "components/edit_link.html" import EditLink %}
|
||||
{% from "components/to_edit_link.html" import TOEditLink %}
|
||||
{% from "components/required_label.html" import RequiredLabel %}
|
||||
{% from "components/icon.html" import Icon %}
|
||||
{% from "components/review_field.html" import ReviewField %}
|
||||
@ -11,14 +11,6 @@
|
||||
|
||||
{% block form %}
|
||||
|
||||
{% macro TOEditLink(screen=1, anchor=None) %}
|
||||
{% if task_order %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, task_order_id=task_order.id, _anchor=anchor)) }}
|
||||
{% else %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, _anchor=anchor)) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
<h3 class="subheading">{{ "task_orders.new.review.app_info"| translate }} {{ TOEditLink(screen=1) }}</h3>
|
||||
{% include "fragments/task_order_review/app_info.html" %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user