From 4e5780e7cf065623d525710484cd1179677a5eec Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Thu, 1 Mar 2018 03:50:14 +0800 Subject: [PATCH] Add customer add button in job order #33 --- templates/customer/form.html.twig | 6 +++++- templates/job-order/form.html.twig | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/customer/form.html.twig b/templates/customer/form.html.twig index 68642d19..52527c8e 100644 --- a/templates/customer/form.html.twig +++ b/templates/customer/form.html.twig @@ -32,7 +32,7 @@ -
+
@@ -384,7 +384,11 @@ text: 'Your changes have been saved!', type: 'success', onClose: function() { + {% if app.request.query.get('ref') == 'jo' %} + window.location.href = "{{ url('jo_in') }}"; + {% else %} window.location.href = "{{ url('customer_list') }}"; + {% endif %} } }); }).fail(function(response) { diff --git a/templates/job-order/form.html.twig b/templates/job-order/form.html.twig index 1a5e8df7..c064c56e 100644 --- a/templates/job-order/form.html.twig +++ b/templates/job-order/form.html.twig @@ -55,6 +55,12 @@
+