Add step numbers to sticky header

This commit is contained in:
leigh-mil 2019-07-16 19:21:05 -04:00
parent 3401713898
commit d2799c00d0
7 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<form id="to_form" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data"> <form id="to_form" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data">
{{ form.csrf_token }} {{ form.csrf_token }}
{% call StickyCTA(text=('task_orders.form.sticky_header_text' | translate )) %} {% call StickyCTA(text=('task_orders.form.sticky_header_text' | translate({"step": step}) )) %}
<span class="action-group"> <span class="action-group">
{% block next_button %} {% block next_button %}
<input <input

View File

@ -12,6 +12,7 @@
{% set next_button_text = "Next: Add TO Number" %} {% set next_button_text = "Next: Add TO Number" %}
{% set previous_button_link = cancel_url %} {% set previous_button_link = cancel_url %}
{% set step = "1" %}
{% block to_builder_form_field %} {% block to_builder_form_field %}

View File

@ -5,6 +5,7 @@
{% set action = url_for("task_orders.update_number", task_order_id=task_order_id) %} {% set action = url_for("task_orders.update_number", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Add Base CLIN" %} {% set next_button_text = "Next: Add Base CLIN" %}
{% set previous_button_link = url_for("task_orders.add_pdf", task_order_id=task_order_id) %} {% set previous_button_link = url_for("task_orders.add_pdf", task_order_id=task_order_id) %}
{% set step = "2" %}
{% block to_builder_form_field %} {% block to_builder_form_field %}
<div class="h1"> <div class="h1">

View File

@ -8,6 +8,7 @@
{% set action = url_for("task_orders.update_clins", task_order_id=task_order_id) %} {% set action = url_for("task_orders.update_clins", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Review Funding" %} {% set next_button_text = "Next: Review Funding" %}
{% set previous_button_link = url_for("task_orders.add_number", task_order_id=task_order_id) %} {% set previous_button_link = url_for("task_orders.add_number", task_order_id=task_order_id) %}
{% set step = "3" %}
{% macro LOAInput() %} {% macro LOAInput() %}
<div v-for="loa in loas"> <div v-for="loa in loas">

View File

@ -2,6 +2,7 @@
{% set action = url_for('task_orders.confirm_signature', task_order_id=task_order_id) %} {% set action = url_for('task_orders.confirm_signature', task_order_id=task_order_id) %}
{% set previous_button_link = url_for("task_orders.add_clins", task_order_id=task_order_id) %} {% set previous_button_link = url_for("task_orders.add_clins", task_order_id=task_order_id) %}
{% set step = "4" %}
{% block next_button %} {% block next_button %}
<a <a

View File

@ -6,6 +6,7 @@
{% set action = url_for("task_orders.submit_task_order", task_order_id=task_order_id) %} {% set action = url_for("task_orders.submit_task_order", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Confirm & Submit" %} {% set next_button_text = "Next: Confirm & Submit" %}
{% set previous_button_link = url_for("task_orders.review", task_order_id=task_order_id) %} {% set previous_button_link = url_for("task_orders.review", task_order_id=task_order_id) %}
{% set step = "5" %}
{% block to_builder_form_field %} {% block to_builder_form_field %}
<div> <div>

View File

@ -353,7 +353,7 @@ task_orders:
supporting_docs_header: Upload your supporting documentation supporting_docs_header: Upload your supporting documentation
supporting_docs_size_limit: Your file may not exceed 1MB supporting_docs_size_limit: Your file may not exceed 1MB
supporting_docs_text: Upload a single PDF containing all relevant information. supporting_docs_text: Upload a single PDF containing all relevant information.
sticky_header_text: Add Funding sticky_header_text: 'Add Funding ({step} of 5)'
new: new:
form_help_text: Before you can begin work in the cloud, you'll need to complete the information below and upload your approved task order for reference by the CCPO. form_help_text: Before you can begin work in the cloud, you'll need to complete the information below and upload your approved task order for reference by the CCPO.
app_info: app_info: