Skip to content

Commit

Permalink
add Internet Plan and Location in expired list Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed May 14, 2024
1 parent a5affdb commit 895bb26
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
4 changes: 3 additions & 1 deletion system/lan/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -577,5 +577,7 @@
"Extend_Days": "Extend Days",
"Confirmation_Message": "Confirmation Message",
"You_are_already_logged_in": "You are already logged in",
"Extend": "Extend"
"Extend": "Extend",
"Created___Expires": "Created \/ Expires",
"Created___Expired": "Created \/ Expired"
}
22 changes: 13 additions & 9 deletions ui/ui/dashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
<div class="box-tools pull-right">
<button type="button" class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<a href="{$_url}dashboard&refresh" class="btn bg-teal btn-sm"><i
class="fa fa-refresh"></i>
<a href="{$_url}dashboard&refresh" class="btn bg-teal btn-sm"><i class="fa fa-refresh"></i>
</a>
</div>
</div>
Expand All @@ -96,8 +95,7 @@
<div class="box-tools pull-right">
<button type="button" class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<a href="{$_url}dashboard&refresh" class="btn bg-teal btn-sm"><i
class="fa fa-refresh"></i>
<a href="{$_url}dashboard&refresh" class="btn bg-teal btn-sm"><i class="fa fa-refresh"></i>
</a>
</div>
</div>
Expand Down Expand Up @@ -146,18 +144,24 @@
<thead>
<tr>
<th>{Lang::T('Username')}</th>
<th>{Lang::T('Created On')}</th>
<th>{Lang::T('Expires On')}</th>
<th>{Lang::T('Created / Expired')}</th>
<th>{Lang::T('Internet Plan')}</th>
<th>{Lang::T('Location')}</th>
</tr>
</thead>
<tbody>
{foreach $expire as $expired}
{assign var="rem_exp" value="{$expired['expiration']} {$expired['time']}"}
{assign var="rem_started" value="{$expired['recharged_on']} {$expired['recharged_time']}"}
<tr>
<td><a href="{$_url}customers/viewu/{$expired['username']}">{$expired['username']}</a></td>
<td>{Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])}
</td>
<td>{Lang::dateAndTimeFormat($expired['expiration'],$expired['time'])}
<td><small data-toggle="tooltip" data-placement="top"
title="{Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])}">{Lang::timeElapsed($rem_started)}</small> /
<span data-toggle="tooltip" data-placement="top"
title="{Lang::dateAndTimeFormat($expired['expiration'],$expired['time'])}">{Lang::timeElapsed($rem_exp)}</span>
</td>
<td>{$expired['namebp']}</td>
<td>{$expired['routers']}</td>
</tr>
</tbody>
{/foreach}
Expand Down
4 changes: 4 additions & 0 deletions ui/ui/sections/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
}
return null;
}

$(function() {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
{/literal}

Expand Down

0 comments on commit 895bb26

Please sign in to comment.