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

@@ -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">