Rename routes

This commit is contained in:
leigh-mil
2019-07-16 13:41:25 -04:00
parent b3737619f0
commit b2db53096f
8 changed files with 28 additions and 36 deletions

View File

@@ -97,7 +97,7 @@
{% call StickyCTA(text="Funding") %}
{% if user_can(permissions.CREATE_TASK_ORDER) %}
<a href="{{ url_for("task_orders.add_to_pdf", portfolio_id=portfolio.id) }}" class="usa-button usa-button-primary" type="submit">Start a new task order</a>
<a href="{{ url_for("task_orders.add_pdf", portfolio_id=portfolio.id) }}" class="usa-button usa-button-primary" type="submit">Start a new task order</a>
{% endif %}
{% endcall %}

View File

@@ -22,7 +22,7 @@
{% endcall %}
{% call StickyCTA(text="Review Funding") %}
<a href="{{ url_for("task_orders.add_to_pdf", task_order_id=task_order.id) }}" class="usa-button usa-button-secondary" type="submit">Edit</a>
<a href="{{ url_for("task_orders.add_pdf", task_order_id=task_order.id) }}" class="usa-button usa-button-secondary" type="submit">Edit</a>
<a v-on:click="openModal('submit-to-1')" class="usa-button usa-button-primary" type="submit">Submit task order</a>
{% endcall %}

View File

@@ -6,9 +6,9 @@
{% block portfolio_content %}
{% if task_order_id %}
{% set action = url_for("task_orders.upload_to_pdf", task_order_id=task_order_id) %}
{% set action = url_for("task_orders.upload_pdf", task_order_id=task_order_id) %}
{% else %}
{% set action = url_for("task_orders.upload_to_pdf", portfolio_id=portfolio.id) %}
{% set action = url_for("task_orders.upload_pdf", portfolio_id=portfolio.id) %}
{% endif %}
<base-form inline-template>

View File

@@ -4,7 +4,7 @@
{% from 'components/text_input.html' import TextInput %}
{% block portfolio_content %}
{% set action = url_for("task_orders.update_to_number", task_order_id=task_order_id) %}
{% set action = url_for("task_orders.update_number", task_order_id=task_order_id) %}
<base-form inline-template>
<form id="upload-to-pdf" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data">