From 54bc9455a17f4cc332e14e20cdc407eb69c58ad1 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 10 Feb 2019 22:16:22 +0800 Subject: [PATCH] Add Reject button for nearest hub section of job order dispatch #183 --- templates/job-order/form.html.twig | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/templates/job-order/form.html.twig b/templates/job-order/form.html.twig index e7d7972c..1d7b2d27 100644 --- a/templates/job-order/form.html.twig +++ b/templates/job-order/form.html.twig @@ -561,7 +561,9 @@ --> Available Riders Jobs For Assignment - Contact Numbers + Contact Numbers + Action + @@ -581,6 +583,9 @@ {{ hub.rider_count }} {{ hub.jo_count }} {{ hub.hub.getContactNumbers|replace({"\n": ', '}) }} + + + {% endfor %} @@ -804,7 +809,7 @@ {% endif %} {% if ftags.set_map_coordinate and is_granted('joborder.cancel') and not obj.isCancelled %} - Cancel Job Order + Cancel Job Order {% endif %} {% if mode != 'create' %} Back @@ -1469,6 +1474,11 @@ $(function() { var ticketTable = $("#data-tickets").mDatatable(ticketOptions); {% endif %} + // reject job order + $(".button-reject").click(function(e) { + return false; + }); + // cancel job order $(".btn-cancel-job-order").click(function(e) { var url = $(this).prop('href');