Change TO fragment to a macro to make it reusable in the builder and view page, final tweaks to review and view pages

This commit is contained in:
leigh-mil
2019-12-23 11:44:53 -05:00
parent 2e088d1316
commit e25f519243
9 changed files with 97 additions and 84 deletions

View File

@@ -1,17 +1,20 @@
{% extends "task_orders/builder_base.html" %}
{% from "task_orders/fragments/task_order_view.html" import TaskOrderView %}
{% set action = url_for('task_orders.form_step_five_confirm_signature', task_order_id=task_order_id) %}
{% set previous_button_link = url_for("task_orders.form_step_three_add_clins", task_order_id=task_order_id) %}
{% set step = "4" %}
{% set sticky_cta_text = 'task_orders.form.sticky_header_review_text' | translate %}
{% block next_button %}
<a
href="{{ action }}"
class="usa-button usa-button-primary">
Next: Submit Task Order
Next: Confirm
</a>
{% endblock %}
{% block to_builder_form_field %}
{% include "task_orders/fragments/task_order_view.html" %}
{{ TaskOrderView(task_order, portfolio, builder_mode=True) }}
{% endblock %}