Refactor task order route to check for request args instead of request.referrer

This commit is contained in:
Montana
2019-02-21 10:59:33 -05:00
parent 6628a1441e
commit 12706c3d45
5 changed files with 29 additions and 55 deletions

View File

@@ -1,9 +0,0 @@
{% from "components/edit_link.html" import EditLink %}
{% macro TOEditLink(task_order=None, 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 %}