From a9d10d330f47a0e1486942aae90bd7afa79ef4de Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 15 Jun 2023 16:50:58 +0700 Subject: [PATCH] fix confirm --- ui/ui/bandwidth.tpl | 2 +- ui/ui/customers.tpl | 2 +- ui/ui/users.tpl | 2 +- ui/ui/voucher.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/ui/bandwidth.tpl b/ui/ui/bandwidth.tpl index 4a09b630..85eb2702 100644 --- a/ui/ui/bandwidth.tpl +++ b/ui/ui/bandwidth.tpl @@ -41,7 +41,7 @@ {$ds['rate_up']} {$ds['rate_up_unit']} {$_L['Edit']} - {$_L['Delete']} + {$_L['Delete']} {/foreach} diff --git a/ui/ui/customers.tpl b/ui/ui/customers.tpl index 22fd1191..a7924686 100644 --- a/ui/ui/customers.tpl +++ b/ui/ui/customers.tpl @@ -58,7 +58,7 @@ class="btn btn-warning btn-sm">{$_L['Edit']} {$_L['Delete']} + onclick="return confirm('{$_L['Delete']}?')">{$_L['Delete']} {/foreach} diff --git a/ui/ui/users.tpl b/ui/ui/users.tpl index 80f3f11d..a3757715 100644 --- a/ui/ui/users.tpl +++ b/ui/ui/users.tpl @@ -49,7 +49,7 @@ class="btn btn-warning btn-sm">{$_L['Edit']} {if ($_admin['username']) neq ($ds['username'])} {$_L['Delete']} + class="btn btn-danger btn-sm" onclick="return confirm('{$_L['Delete']}?')">{$_L['Delete']} {/if} diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl index a607be45..22e28dbe 100644 --- a/ui/ui/voucher.tpl +++ b/ui/ui/voucher.tpl @@ -61,7 +61,7 @@ {if $ds['user'] eq '0'} - {else} {$ds['user']} {/if} {$_L['Delete']} + class="btn btn-danger btn-sm" onclick="return confirm('{$_L['Delete']}?')">{$_L['Delete']} {/foreach}