add error message when user prematurely submits TO form
This commit is contained in:
parent
95fa71fc03
commit
3cc9a918e8
@ -64,6 +64,7 @@ def invite(task_order_id):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
flash("task_order_incomplete")
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for("task_orders.new", screen=4, task_order_id=task_order.id)
|
url_for("task_orders.new", screen=4, task_order_id=task_order.id)
|
||||||
)
|
)
|
||||||
|
@ -128,6 +128,13 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
|
"task_order_incomplete": {
|
||||||
|
"title_template": "Task Order Incomplete",
|
||||||
|
"message_template": """
|
||||||
|
You must complete your Task Order form before submitting.
|
||||||
|
""",
|
||||||
|
"category": "error",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user