From d327eb331ff7b29d65c68fda8aadc9f13cefda3d Mon Sep 17 00:00:00 2001 From: arzynik Date: Fri, 14 Nov 2014 18:45:43 -0800 Subject: [PATCH] added driver phone --- include/library/Cockpit/Admin.php | 1 + .../cockpit2/frontend/tickets/tickets-ticket.phtml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/library/Cockpit/Admin.php b/include/library/Cockpit/Admin.php index 4bce75933..67d646ff7 100644 --- a/include/library/Cockpit/Admin.php +++ b/include/library/Cockpit/Admin.php @@ -4,6 +4,7 @@ class Cockpit_Admin extends Crunchbutton_Admin { public function publicExports() { $out = parent::publicExports(); + $out['phone'] = $this->phone; foreach ($this->deliveries() as $order) { $out['deliveries'][] = [ 'id_order' => $order->id_order, diff --git a/include/views/default/cockpit2/frontend/tickets/tickets-ticket.phtml b/include/views/default/cockpit2/frontend/tickets/tickets-ticket.phtml index f0542c004..24da2c2a8 100644 --- a/include/views/default/cockpit2/frontend/tickets/tickets-ticket.phtml +++ b/include/views/default/cockpit2/frontend/tickets/tickets-ticket.phtml @@ -52,10 +52,18 @@
Name
{{ticket.order.driver.name}}
+
+
Phone
+ +
Deliveries
{{ticket.order.driver.deliveries.length}}
+
+
Shift ends in
+
@todo
+