Merge pull request #282 from ahmadhusein17/Development

Development
This commit is contained in:
iBNu Maksum 2024-08-29 09:04:37 +07:00 committed by GitHub
commit e8885e91ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 70 additions and 70 deletions

View file

@ -89,9 +89,9 @@
<label class="col-md-5 control-label">{Lang::T('Send Notification')}</label>
<div class="col-md-7">
<select name="send_notif" id="send_notif" class="form-control">
<option value="-">Don't Send</option>
<option value="sms">By SMS</option>
<option value="wa">By WhatsApp</option>
<option value="-">{Lang::T('Don't Send')}</option>
<option value="sms">{Lang::T('By SMS')}</option>
<option value="wa">{Lang::T('By WhatsApp')}</option>
</select>
</div>
</div>

View file

@ -56,9 +56,9 @@
<div class="col-md-9">
<select name="status" id="status" class="form-control">
<option value="Active" {if $d['status'] eq 'Active'}selected="selected" {/if}>
Active</option>
{Lang::T('Active')}</option>
<option value="Inactive" {if $d['status'] eq 'Inactive'}selected="selected" {/if}>
Inactive</option>
{Lang::T('Inactive')}</option>
</select>
</div>
</div>

View file

@ -105,7 +105,7 @@
</div>
<hr>
<div class="form-group">
<label class="col-md-2 control-label">Radius Plan</label>
<label class="col-md-2 control-label">{Lang::T('Radius Package')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="radius_plan" name="radius_plan"
value="{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}">
@ -113,7 +113,7 @@
<span class="help-block col-md-4">{Lang::T('Change title in user Plan order')}</span>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Hotspot Plan</label>
<label class="col-md-2 control-label">{Lang::T('Hotspot Package')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="hotspot_plan" name="hotspot_plan"
value="{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}">
@ -121,7 +121,7 @@
<span class="help-block col-md-4">{Lang::T('Change title in user Plan order')}</span>
</div>
<div class="form-group">
<label class="col-md-2 control-label">PPPOE Plan</label>
<label class="col-md-2 control-label">{Lang::T('PPPOE Package')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="pppoe_plan" name="pppoe_plan"
value="{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}">

View file

@ -196,7 +196,7 @@
</p>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Redirect after Activation</label>
<label class="col-md-2 control-label">{Lang::T('Redirect URL after Activation')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="voucher_redirect" name="voucher_redirect"
placeholder="https://192.168.88.1/status" value="{$_c['voucher_redirect']}">
@ -216,7 +216,7 @@
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Enable Radius</label>
<label class="col-md-2 control-label">{Lang::T('Enable Radius')}</label>
<div class="col-md-6">
<select name="radius_enable" id="radius_enable" class="form-control text-muted">
<option value="0">{Lang::T('No')}</option>
@ -266,7 +266,7 @@
<button class="btn btn-primary btn-xs" title="save" type="submit"><span
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
</div>
{Lang::T('Balance System')}
{Lang::T('Customer Balance System')}
</div>
<div class="panel-body">
<div class="form-group">
@ -410,14 +410,14 @@
<p class="help-block col-md-4">{Lang::T('Empty this to use internal mail() PHP')}</p>
</div>
<div class="form-group">
<label class="col-md-2 control-label">SMTP Username</label>
<label class="col-md-2 control-label">{Lang::T('SMTP Username')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="smtp_user" name="smtp_user"
value="{$_c['smtp_user']}" placeholder="user@host.tld">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">SMTP Password</label>
<label class="col-md-2 control-label">{Lang::T('SMTP Password')}</label>
<div class="col-md-6">
<input type="password" class="form-control" id="smtp_pass" name="smtp_pass"
value="{$_c['smtp_pass']}" onmouseleave="this.type = 'password'"
@ -469,13 +469,13 @@
<div class="col-md-6">
<select name="user_notification_expired" id="user_notification_expired"
class="form-control">
<option value="none">None</option>
<option value="none">{Lang::T('None')}</option>
<option value="wa" {if $_c['user_notification_expired']=='wa' }selected="selected"
{/if}>Whatsapp</option>
{/if}>{Lang::T('By WhatsApp')}</option>
<option value="sms" {if $_c['user_notification_expired']=='sms' }selected="selected"
{/if}>SMS</option>
{/if}>{Lang::T('By SMS')}</option>
<option value="email" {if $_c['user_notification_expired']=='email' }selected="selected"
{/if}>Email</option>
{/if}>{Lang::T('By Email')}</option>
</select>
</div>
<p class="help-block col-md-4">{Lang::T('User will get notification when package expired')}</p>
@ -485,13 +485,13 @@
<div class="col-md-6">
<select name="user_notification_payment" id="user_notification_payment"
class="form-control">
<option value="none">None</option>
<option value="none">{Lang::T('None')}</option>
<option value="wa" {if $_c['user_notification_payment']=='wa' }selected="selected"
{/if}>Whatsapp</option>
{/if}>{Lang::T('By WhatsApp')}</option>
<option value="sms" {if $_c['user_notification_payment']=='sms' }selected="selected"
{/if}>SMS</option>
{/if}>{Lang::T('By SMS')}</option>
<option value="email" {if $_c['user_notification_payment']=='email' }selected="selected"
{/if}>Email</option>
{/if}>{Lang::T('By Email')}</option>
</select>
</div>
<p class="help-block col-md-4">
@ -502,13 +502,13 @@
<div class="col-md-6">
<select name="user_notification_reminder" id="user_notification_reminder"
class="form-control">
<option value="none">None</option>
<option value="none">{Lang::T('None')}</option>
<option value="wa" {if $_c['user_notification_reminder']=='wa' }selected="selected"
{/if}>Whatsapp</option>
{/if}>{Lang::T('By WhatsApp')}</option>
<option value="sms" {if $_c['user_notification_reminder']=='sms' }selected="selected"
{/if}>SMS</option>
{/if}>{Lang::T('By SMS')}</option>
<option value="sms" {if $_c['user_notification_reminder']=='email' }selected="selected"
{/if}>Email</option>
{/if}>{Lang::T('By Email')}</option>
</select>
</div>
</div>
@ -546,7 +546,7 @@
<label class="col-md-2 control-label">{Lang::T('Access Token')}</label>
<div class="col-md-6">
<input type="password" class="form-control" id="api_key" name="api_key"
value="{$_c['api_key']}" placeholder="Empty this to randomly created API key"
value="{$_c['api_key']}" placeholder="{Lang::T('Empty this to randomly created API key')}"
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'">
</div>
<p class="col-md-4 help-block">{Lang::T('This Token will act as SuperAdmin/Admin')}</p>
@ -655,11 +655,11 @@
<div class="col-md-6">
<select name="phone_otp_type" id="phone_otp_type" class="form-control">
<option value="sms" {if $_c['phone_otp_type']=='sms' }selected="selected" {/if}>
{Lang::T('SMS')}
{Lang::T('By SMS')}
<option value="whatsapp" {if $_c['phone_otp_type']=='whatsapp' }selected="selected"
{/if}> {Lang::T('WhatsApp')}
{/if}> {Lang::T('by WhatsApp')}
<option value="both" {if $_c['phone_otp_type']=='both' }selected="selected" {/if}>
{Lang::T('SMS and WhatsApp')}
{Lang::T('By WhatsApp and SMS')}
</option>
</select>
</div>
@ -759,18 +759,18 @@
</option>
<!-- Custom tax rate option -->
<option value="custom" {if $_c['tax_rate']=='custom' }selected="selected" {/if}>
{Lang::T('Custom')}</option>
{Lang::T('Custome')}</option>
</select>
</div>
<p class="help-block col-md-4">{Lang::T('Tax Rates in percentage')}</p>
</div>
<!-- Custom tax rate input field (initially hidden) -->
<div class="form-group" id="customTaxRate" style="display: none;">
<label class="col-md-2 control-label">{Lang::T('Custom Tax Rate')}</label>
<label class="col-md-2 control-label">{Lang::T('Custome Tax Rate')}</label>
<div class="col-md-6">
<input type="text" value="{$_c['custom_tax_rate']}" class="form-control"
name="custom_tax_rate" id="custom_tax_rate"
placeholder="{Lang::T('Enter Custom Tax Rate')}">
placeholder="{Lang::T('Enter Custome Tax Rate')}">
</div>
<p class="help-block col-md-4">{Lang::T('Enter the custom tax rate (e.g., 3.75 for 3.75%)')}</p>
</div>

View file

@ -3,7 +3,7 @@
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">{Lang::T('Edit Service Plan')}</div>
<div class="panel-heading">{Lang::T('Edit Service Package')}</div>
<div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/balance-edit-post">
<input type="hidden" name="id" value="{$d['id']}">
@ -19,13 +19,13 @@
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Plan Name')}</label>
<label class="col-md-2 control-label">{Lang::T('Package Name')}</label>
<div class="col-md-6">
<input type="text" required class="form-control" id="name" value="{$d['name_plan']}" name="name" maxlength="40" placeholder="Topup 100">
<input type="text" required class="form-control" id="name" value="{$d['name_plan']}" name="name" maxlength="40" placeholder="{Lang::T('Topup')} 100">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Plan Price')}</label>
<label class="col-md-2 control-label">{Lang::T('Package Price')}</label>
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">{$_c['currency_code']}</span>

View file

@ -3,7 +3,7 @@
<div class="row">
<div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-primary">
<div class="panel-heading">{Lang::T('Balance Plans')}</div>
<div class="panel-heading">{Lang::T('Balance Package')}</div>
<div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8">
@ -20,15 +20,15 @@
</form>
</div>
<div class="col-md-4">
<a href="{$_url}services/balance-add" class="btn btn-primary btn-block"><i class="ion ion-android-add"> </i> {Lang::T('New Service Plan')}</a>
<a href="{$_url}services/balance-add" class="btn btn-primary btn-block"><i class="ion ion-android-add"> </i> {Lang::T('New Service Package')}</a>
</div>&nbsp;
</div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>{Lang::T('Plan Name')}</th>
<th>{Lang::T('Plan Price')}</th>
<th>{Lang::T('Package Name')}</th>
<th>{Lang::T('Package Price')}</th>
<th>{Lang::T('Manage')}</th>
</tr>
</thead>

View file

@ -70,7 +70,7 @@
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary"
type="submit">{Lang::T('Submit')}</button>
type="submit">{Lang::T('Save')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div>
</div>

View file

@ -81,7 +81,7 @@
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary"
type="submit">{Lang::T('Submit')}</button>
type="submit">{Lang::T('Save Change')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div>
</div>

View file

@ -57,8 +57,8 @@
</div>
{include file="pagination.tpl"}
<div class="bs-callout bs-callout-info" id="callout-navbar-role">
<h4>{Lang::T('Create Bandwidth Plan for expired Internet Plan')}</h4>
<p>{Lang::T('When customer expired, you can move it to Expired Internet Plan')}</p>
<h4>{Lang::T('Create Bandwidth Package for expired Internet Package')}</h4>
<p>{Lang::T('When customer expired, you can move it to Expired Internet Package')}</p>
</div>
</div>
</div>

View file

@ -112,7 +112,7 @@
<table class="table table-condensed">
<thead>
<tr>
<th>{Lang::T('Plan Name')}</th>
<th>{Lang::T('Package Name')}</th>
<th>unused</th>
<th>used</th>
</tr>
@ -145,7 +145,7 @@
<tr>
<th>{Lang::T('Username')}</th>
<th>{Lang::T('Created / Expired')}</th>
<th>{Lang::T('Internet Plan')}</th>
<th>{Lang::T('Internet Package')}</th>
<th>{Lang::T('Location')}</th>
</tr>
</thead>

View file

@ -11,7 +11,7 @@
<tr>
<th width="50%">{Lang::T('Table Name')}</th>
<th>{Lang::T('Rows')}</th>
<th>Select</th>
<th>{Lang::T('Choose')}</th>
</tr>
</thead>
<tbody>
@ -31,7 +31,7 @@
<div class="col-md-4 text-right">
<button type="submit" class="btn btn-primary btn-xs btn-block"><i
class="fa fa-download"></i>
{Lang::T('Download Database Backup')}</button>
{Lang::T('Download Backup')} Database</button>
</div>
</div>
</div>
@ -41,14 +41,14 @@
</div>
<div class="col-sm-5">
<div class="panel panel-primary">
<div class="panel-heading">{Lang::T('Restore Database')}</div>
<div class="panel-heading">{Lang::T('Restore')} Database</div>
<form method="post" action="{$_url}settings/dbrestore" enctype="multipart/form-data">
<div class="panel-body">
<div class="row">
<div class="col-md-7"><input type="file" name="json" accept="application/json"></div>
<div class="col-md-5 text-right">
<button type="submit" class="btn btn-primary btn-block btn-xs"><i class="fa fa-upload"></i>
{Lang::T('Restore Database')}</button>
{Lang::T('Restore')} Database</button>
</div>
</div>
</div>

View file

@ -16,7 +16,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label"><a href="{$_url}services/balance">{Lang::T('Balance Plans')}</a></label>
<label class="col-md-2 control-label"><a href="{$_url}services/balance">{Lang::T('Balance Package')}</a></label>
<div class="col-md-6">
<select id="planSelect" class="form-control select2" name="id_plan" style="width: 100%"
data-placeholder="{Lang::T('Select Plans')}...">

View file

@ -32,8 +32,8 @@
{Lang::pads(Lang::T('Sales'), $_admin['fullname'], ' ')}
{Lang::pad("", '=')}
{Lang::pads(Lang::T('Type'), $in['type'], ' ')}
{Lang::pads(Lang::T('Plan Name'), $in['plan_name'], ' ')}
{Lang::pads(Lang::T('Plan Price'), Lang::moneyFormat($in['price']), ' ')}
{Lang::pads(Lang::T('Package Name'), $in['plan_name'], ' ')}
{Lang::pads(Lang::T('Package Price'), Lang::moneyFormat($in['price']), ' ')}
{Lang::pad($in['method'], ' ', 2)}
{Lang::pads(Lang::T('Username'), $in['username'], ' ')}

View file

@ -17,7 +17,7 @@
<a href="{$_url}plan/view/{$in['id']}/send" class="btn btn-info text-black btn-sm"><i
class="glyphicon glyphicon-envelope"></i> {Lang::T("Resend")}</a>
<button type="submit" class="btn btn-info text-black btn-sm"><i class="glyphicon glyphicon-print"></i>
Print</button>
{Lang::T('Print')}</button>
<a href="nux://print?text={urlencode($invoice)}"
class="btn btn-success text-black btn-sm hidden-md hidden-lg">
<i class="glyphicon glyphicon-phone"></i>

View file

@ -23,9 +23,9 @@
<label class="col-md-2 control-label">{Lang::T('Send Via')}</label>
<div class="col-md-6">
<select class="form-control" name="via" id="via">
<option value="sms" selected> {Lang::T('SMS')}</option>
<option value="wa"> {Lang::T('WhatsApp')}</option>
<option value="both"> {Lang::T('SMS and WhatsApp')}</option>
<option value="sms" selected> {Lang::T('via SMS')}</option>
<option value="wa"> {Lang::T('Via WhatsApp')}</option>
<option value="both"> {Lang::T('Via WhatsApp and SMS')}</option>
</select>
</div>
</div>

View file

@ -27,7 +27,7 @@
</div>
<br>
{/if}
<button type="submit" class="btn btn-primary btn-block">SAVE</button>
<button type="submit" class="btn btn-primary btn-block">{Lang::T('Save')}</button>
<br>
<p class="help-block">{Lang::T('Sometimes you need to refresh 3 times until content change')}</p>
<input type="text" class="form-control" onclick="this.select()" readonly
@ -42,9 +42,9 @@
<div class="panel-footer">
<p class="help-block">
<b>[[company_name]]</b> {Lang::T('Your Company Name at Settings')}.<br>
<b>[[price]]</b> {Lang::T('Plan Price')}.<br>
<b>[[price]]</b> {Lang::T('Package Price')}.<br>
<b>[[voucher_code]]</b> {Lang::T('Voucher Code')}.<br>
<b>[[plan]]</b> {Lang::T('Voucher Plan')}.<br>
<b>[[plan]]</b> {Lang::T('Voucher Package')}.<br>
<b>[[counter]]</b> {Lang::T('Counter')}.<br>
</p>
</div>