hide if balance off

This commit is contained in:
Ibnu Maksum 2024-03-05 11:15:38 +07:00
parent 6aab647f48
commit 18db9cd280
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 56 additions and 49 deletions

View File

@ -127,34 +127,36 @@
</p> </p>
</div> </div>
</div> </div>
<div class="panel-body"> {if $_c['enable_balance'] == 'yes'}
<div class="form-group"> <div class="panel-body">
<label class="col-md-2 control-label">{Lang::T('Send Balance')}</label> <div class="form-group">
<div class="col-md-6"> <label class="col-md-2 control-label">{Lang::T('Send Balance')}</label>
<textarea class="form-control" id="balance_send" name="balance_send" <div class="col-md-6">
rows="3">{if $_json['balance_send']}{Lang::htmlspecialchars($_json['balance_send'])}{else}{Lang::htmlspecialchars($_default['balance_send'])}{/if}</textarea> <textarea class="form-control" id="balance_send" name="balance_send"
rows="3">{if $_json['balance_send']}{Lang::htmlspecialchars($_json['balance_send'])}{else}{Lang::htmlspecialchars($_default['balance_send'])}{/if}</textarea>
</div>
<p class="col-md-4 help-block">
<b>[[name]]</b> Receiver name.<br>
<b>[[balance]]</b> how much balance have been send.<br>
<b>[[current_balance]]</b> Current Balance.
</p>
</div> </div>
<p class="col-md-4 help-block">
<b>[[name]]</b> Receiver name.<br>
<b>[[balance]]</b> how much balance have been send.<br>
<b>[[current_balance]]</b> Current Balance.
</p>
</div> </div>
</div> <div class="panel-body">
<div class="panel-body"> <div class="form-group">
<div class="form-group"> <label class="col-md-2 control-label">{Lang::T('Received Balance')}</label>
<label class="col-md-2 control-label">{Lang::T('Received Balance')}</label> <div class="col-md-6">
<div class="col-md-6"> <textarea class="form-control" id="balance_received" name="balance_received"
<textarea class="form-control" id="balance_received" name="balance_received" rows="3">{if $_json['balance_received']}{Lang::htmlspecialchars($_json['balance_received'])}{else}{Lang::htmlspecialchars($_default['balance_received'])}{/if}</textarea>
rows="3">{if $_json['balance_received']}{Lang::htmlspecialchars($_json['balance_received'])}{else}{Lang::htmlspecialchars($_default['balance_received'])}{/if}</textarea> </div>
<p class="col-md-4 help-block">
<b>[[name]]</b> Sender name.<br>
<b>[[balance]]</b> how much balance have been received.<br>
<b>[[current_balance]]</b> Current Balance.
</p>
</div> </div>
<p class="col-md-4 help-block">
<b>[[name]]</b> Sender name.<br>
<b>[[balance]]</b> how much balance have been received.<br>
<b>[[current_balance]]</b> Current Balance.
</p>
</div> </div>
</div> {/if}
</div> </div>
<div class="panel-body"> <div class="panel-body">

View File

@ -60,33 +60,33 @@
.loading { .loading {
pointer-events: none; pointer-events: none;
opacity: 0.7; opacity: 0.7;
} }
.loading::after { .loading::after {
content: ""; content: "";
display: inline-block; display: inline-block;
width: 16px; width: 16px;
height: 16px; height: 16px;
vertical-align: middle; vertical-align: middle;
margin-left: 10px; margin-left: 10px;
border: 2px solid #fff; border: 2px solid #fff;
border-top-color: transparent; border-top-color: transparent;
border-radius: 50%; border-radius: 50%;
animation: spin 0.8s infinite linear; animation: spin 0.8s infinite linear;
} }
@keyframes spin { @keyframes spin {
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
</style> </style>
{if isset($xheader)} {if isset($xheader)}
{$xheader} {$xheader}
{/if} {/if}
@ -183,8 +183,10 @@
{/if} {/if}
<li {if $_routes[1] eq 'recharge'}class="active" {/if}><a <li {if $_routes[1] eq 'recharge'}class="active" {/if}><a
href="{$_url}prepaid/recharge">{Lang::T('Recharge Account')}</a></li> href="{$_url}prepaid/recharge">{Lang::T('Recharge Account')}</a></li>
<li {if $_routes[1] eq 'deposit'}class="active" {/if}><a {if $_c['enable_balance'] == 'yes'}
href="{$_url}prepaid/deposit">{Lang::T('Refill Balance')}</a></li> <li {if $_routes[1] eq 'deposit'}class="active" {/if}><a
href="{$_url}prepaid/deposit">{Lang::T('Refill Balance')}</a></li>
{/if}
{$_MENU_PREPAID} {$_MENU_PREPAID}
</ul> </ul>
</li> </li>
@ -205,8 +207,10 @@
href="{$_url}services/pppoe">{Lang::T('PPPOE Plans')}</a></li> href="{$_url}services/pppoe">{Lang::T('PPPOE Plans')}</a></li>
<li {if $_routes[1] eq 'list'}class="active" {/if}><a <li {if $_routes[1] eq 'list'}class="active" {/if}><a
href="{$_url}bandwidth/list">{Lang::T('Bandwidth Plans')}</a></li> href="{$_url}bandwidth/list">{Lang::T('Bandwidth Plans')}</a></li>
<li {if $_routes[1] eq 'balance'}class="active" {/if}><a {if $_c['enable_balance'] == 'yes'}
href="{$_url}services/balance">{Lang::T('Balance Plans')}</a></li> <li {if $_routes[1] eq 'balance'}class="active" {/if}><a
href="{$_url}services/balance">{Lang::T('Balance Plans')}</a></li>
{/if}
{$_MENU_SERVICES} {$_MENU_SERVICES}
</ul> </ul>
</li> </li>
@ -277,8 +281,9 @@
href="{$_url}pages/Voucher">{Lang::T('Voucher')} Template</a></li> href="{$_url}pages/Voucher">{Lang::T('Voucher')} Template</a></li>
<li {if $_routes[1] eq 'Announcement'}class="active" {/if}><a <li {if $_routes[1] eq 'Announcement'}class="active" {/if}><a
href="{$_url}pages/Announcement">{Lang::T('Announcement')}</a></li> href="{$_url}pages/Announcement">{Lang::T('Announcement')}</a></li>
<li {if $_routes[1] eq 'Announcement_Customer'}class="active" {/if}><a <li {if $_routes[1] eq 'Announcement_Customer'}class="active" {/if}><a
href="{$_url}pages/Announcement_Customer">{Lang::T('Customer Announcement')}</a></li> href="{$_url}pages/Announcement_Customer">{Lang::T('Customer Announcement')}</a>
</li>
<li {if $_routes[1] eq 'Registration_Info'}class="active" {/if}><a <li {if $_routes[1] eq 'Registration_Info'}class="active" {/if}><a
href="{$_url}pages/Registration_Info">{Lang::T('Registration Info')}</a></li> href="{$_url}pages/Registration_Info">{Lang::T('Registration Info')}</a></li>
<li {if $_routes[1] eq 'Privacy_Policy'}class="active" {/if}><a <li {if $_routes[1] eq 'Privacy_Policy'}class="active" {/if}><a