From 5309cb26db8e7e6269ec3581ef5f682e080a4468 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 21 Feb 2024 14:37:44 +0700 Subject: [PATCH] Delete Table Responsive, first Column Freeze --- CHANGELOG.md | 1 + ui/ui/bandwidth.tpl | 2 +- ui/ui/customers.tpl | 2 +- ui/ui/dashboard.tpl | 7 ++----- ui/ui/hotspot.tpl | 4 +++- ui/ui/pool.tpl | 5 ++--- ui/ui/pppoe.tpl | 2 ++ ui/ui/radius-nas.tpl | 4 ++-- ui/ui/routers.tpl | 4 ++-- ui/ui/sections/header.tpl | 18 +++++------------- ui/ui/user-activation-list.tpl | 2 +- ui/ui/user-orderHistory.tpl | 2 +- ui/ui/users.tpl | 6 +++--- ui/ui/voucher.tpl | 2 +- 14 files changed, 27 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdb858f6..4a0fa479 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - remove multiple space in language - Change Phone Number require OTP by @Focuslinkstech - Change burst Form +- Delete Table Responsive, first Column Freeze ## 2024.2.20 diff --git a/ui/ui/bandwidth.tpl b/ui/ui/bandwidth.tpl index 06abdfa1..d8e45e1f 100644 --- a/ui/ui/bandwidth.tpl +++ b/ui/ui/bandwidth.tpl @@ -24,7 +24,7 @@  
- +
diff --git a/ui/ui/customers.tpl b/ui/ui/customers.tpl index 32812082..da48cbdb 100644 --- a/ui/ui/customers.tpl +++ b/ui/ui/customers.tpl @@ -32,7 +32,7 @@ class="ion ion-android-add"> {Lang::T('Add New Contact')}  -
+
{Lang::T('Bandwidth Name')}
diff --git a/ui/ui/dashboard.tpl b/ui/ui/dashboard.tpl index b1ba26c9..d58bfd6c 100644 --- a/ui/ui/dashboard.tpl +++ b/ui/ui/dashboard.tpl @@ -108,7 +108,7 @@
Vouchers Stock
-
+
@@ -139,20 +139,17 @@
{Lang::T('User Expired, Today')}
-
{Lang::T('Plan Name')}
+
- - {$no = 1} {foreach $expire as $expired} - diff --git a/ui/ui/hotspot.tpl b/ui/ui/hotspot.tpl index 51fae5b1..1026fe3d 100644 --- a/ui/ui/hotspot.tpl +++ b/ui/ui/hotspot.tpl @@ -45,13 +45,14 @@ + {foreach $d as $ds} - + @@ -75,6 +76,7 @@ onclick="return confirm('{Lang::T('Delete')}?')" class="btn btn-danger btn-xs"> + {/foreach} diff --git a/ui/ui/pool.tpl b/ui/ui/pool.tpl index da90b528..598b56be 100644 --- a/ui/ui/pool.tpl +++ b/ui/ui/pool.tpl @@ -36,18 +36,16 @@
Id {Lang::T('Username')} {Lang::T('Created On')} {Lang::T('Expires On')}
{$no++} {$expired['username']} {Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])} {Lang::T('Routers')} {Lang::T('Expired IP Pool')} {Lang::T('Manage')}ID
{$ds['name_plan']}{$ds['name_plan']} {$ds['typebp']} {$ds['name_bw']} {Lang::moneyFormat($ds['price'])} {$ds['id']}
- + - {$no = 1} {foreach $d as $ds} - @@ -57,6 +55,7 @@ onclick="return confirm('{Lang::T('Delete')}?')" class="btn btn-danger btn-xs"> + {/foreach} diff --git a/ui/ui/pppoe.tpl b/ui/ui/pppoe.tpl index 12399793..fa943491 100644 --- a/ui/ui/pppoe.tpl +++ b/ui/ui/pppoe.tpl @@ -43,6 +43,7 @@ + @@ -70,6 +71,7 @@ onclick="return confirm('{Lang::T('Delete')}?')" id="{$ds['id']}" class="btn btn-danger btn-xs"> + {/foreach} diff --git a/ui/ui/radius-nas.tpl b/ui/ui/radius-nas.tpl index d7c2b4b5..8e103246 100644 --- a/ui/ui/radius-nas.tpl +++ b/ui/ui/radius-nas.tpl @@ -31,7 +31,6 @@
# {Lang::T('Name Pool')} {Lang::T('Range IP')} {Lang::T('Routers')} {Lang::T('Manage')}ID
{$no++} {$ds['pool_name']} {$ds['range_ip']} {$ds['routers']} {$ds['id']}
{Lang::T('Expired IP Pool')} {Lang::T('Routers')} {Lang::T('Manage')}ID
{$ds['id']}
- @@ -40,12 +39,12 @@ + {foreach $nas as $ds} - @@ -59,6 +58,7 @@ onclick="return confirm('{Lang::T('Delete')}?')" class="btn btn-danger btn-xs"> + {/foreach} diff --git a/ui/ui/routers.tpl b/ui/ui/routers.tpl index f34d820c..1c605554 100644 --- a/ui/ui/routers.tpl +++ b/ui/ui/routers.tpl @@ -31,19 +31,18 @@
ID Name IP TypeCommunity Routers {Lang::T('Manage')}ID
{$ds['id']} {$ds['shortname']} {$ds['nasname']} {$ds['type']} {$ds['id']}
- + {foreach $d as $ds} - @@ -56,6 +55,7 @@ onclick="return confirm('{Lang::T('Delete')}?')" class="btn btn-danger btn-xs"> + {/foreach} diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 8ae2e739..f4400c86 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -41,19 +41,11 @@ } } - @media only screen and (max-width: 40em) { - thead th:not(:first-child) { - display: none; - } - - td, - th { - display: block; - } - - td[data-th]:before { - content: attr(data-th); - } + th:first-child, + td:first-child { + position: sticky; + left: 0px; + background-color: #f9f9f9; } diff --git a/ui/ui/user-activation-list.tpl b/ui/ui/user-activation-list.tpl index 035d9afe..448d2361 100644 --- a/ui/ui/user-activation-list.tpl +++ b/ui/ui/user-activation-list.tpl @@ -7,7 +7,7 @@
{Lang::T('List Activated Voucher')}
-
ID {Lang::T('Router Name')} {Lang::T('IP Address')} {Lang::T('Username')} {Lang::T('Description')} {Lang::T('Status')} {Lang::T('Manage')}ID
{$ds['id']} {$ds['name']} {$ds['ip_address']} {$ds['username']} {$ds['id']}
+
diff --git a/ui/ui/user-orderHistory.tpl b/ui/ui/user-orderHistory.tpl index c143cdae..78c87593 100644 --- a/ui/ui/user-orderHistory.tpl +++ b/ui/ui/user-orderHistory.tpl @@ -7,7 +7,7 @@
{Lang::T('Order History')}
-
{Lang::T('Username')}
+
diff --git a/ui/ui/users.tpl b/ui/ui/users.tpl index e5e6d6fd..1be58663 100644 --- a/ui/ui/users.tpl +++ b/ui/ui/users.tpl @@ -27,10 +27,9 @@  
-
{Lang::T('Plan Name')}
+
- @@ -40,12 +39,12 @@ + {foreach $d as $ds} - @@ -66,6 +65,7 @@ class="btn btn-danger btn-xs" onclick="return confirm('{Lang::T('Delete')}?')"> {/if} + {/foreach} diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl index 7bbf2260..f24efaff 100644 --- a/ui/ui/voucher.tpl +++ b/ui/ui/voucher.tpl @@ -43,7 +43,7 @@  
-
ID {Lang::T('Username')} {Lang::T('Full Name')} {Lang::T('Phone')}{Lang::T('Agent')} {Lang::T('Last Login')} {Lang::T('Manage')}ID
{$ds['id']} {$ds['username']} {$ds['fullname']} {$ds['phone']}{$ds['id']}
+
ID