From 5426d9f35f72d88bd80a7e5effd2d96d01559ce3 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Sat, 23 Mar 2024 12:56:25 +0700 Subject: [PATCH] show maps on customer view --- CHANGELOG.md | 6 +++++ system/controllers/customers.php | 1 + ui/ui/customers-view.tpl | 38 +++++++++++++++++++++++++------- ui/ui/customers.tpl | 36 +++++++++++++++--------------- version.json | 2 +- 5 files changed, 56 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f89ef8ab..5bf3a1d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ # CHANGELOG +## 2024.3.23 + +- Maps full height +- Show Get Directions instead Coordinates +- Maps Label always show + ## 2024.3.22 - Fix Broadcast Message by @Focuslinkstech diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 4a62781d..b956613c 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -245,6 +245,7 @@ switch ($action) { $ui->assign('v', $v); $ui->assign('d', $customer); $ui->assign('customFields', $customFields); + $ui->assign('xheader', $leafletpickerHeader); $ui->display('customers-view.tpl'); } else { r2(U . 'customers/list', 'e', $_L['Account_Not_Found']); diff --git a/ui/ui/customers-view.tpl b/ui/ui/customers-view.tpl index 755130e0..8cb1ae3d 100644 --- a/ui/ui/customers-view.tpl +++ b/ui/ui/customers-view.tpl @@ -37,14 +37,6 @@ onclick="this.select()"> {/if} - {if $d['coordinates']} -
  • - {Lang::T('Coordinates')} - Get - Directions - -
  • - {/if} {if $customFields} {foreach $customFields as $customField} @@ -82,6 +74,16 @@ {Lang::T('Last Login')} {Lang::dateTimeFormat($d['last_login'])} + {if $d['coordinates']} +
  • + {Lang::T('Coordinates')} + Get + Directions + +
    +
  • + {/if}
    @@ -230,4 +232,24 @@
    +{if $d['coordinates']} +{literal} + + +{/literal} +{/if} {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/customers.tpl b/ui/ui/customers.tpl index 6ae2aec4..a89a4748 100644 --- a/ui/ui/customers.tpl +++ b/ui/ui/customers.tpl @@ -18,8 +18,8 @@
    @@ -53,7 +53,7 @@ {$ds['username']} - {$ds['account_type']} + {$ds['account_type']} {$ds['fullname']} {Lang::moneyFormat($ds['balance'])} @@ -83,23 +83,23 @@ {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/version.json b/version.json index d3f813d5..cbc7f71f 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.3.22.1" + "version": "2024.3.23" } \ No newline at end of file