From 555bd5ae9a1e402d597f1d91f78824682e88dc99 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 28 Jan 2020 05:20:11 +0000 Subject: [PATCH] Add Cancel Job Order button to onestep form. #313 --- templates/job-order/cmb.form.onestep.html.twig | 3 +++ templates/job-order/form.onestep.html.twig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/job-order/cmb.form.onestep.html.twig b/templates/job-order/cmb.form.onestep.html.twig index 8fa8498c..8eced3cc 100644 --- a/templates/job-order/cmb.form.onestep.html.twig +++ b/templates/job-order/cmb.form.onestep.html.twig @@ -582,6 +582,9 @@
+ {% if ftags.set_map_coordinate and is_granted('joborder.cancel') and not obj.isCancelled %} + Cancel Job Order + {% endif %} Back
diff --git a/templates/job-order/form.onestep.html.twig b/templates/job-order/form.onestep.html.twig index 40fef7d4..120943ad 100644 --- a/templates/job-order/form.onestep.html.twig +++ b/templates/job-order/form.onestep.html.twig @@ -578,6 +578,9 @@
+ {% if ftags.set_map_coordinate and is_granted('joborder.cancel') and not obj.isCancelled %} + Cancel Job Order + {% endif %} Back