Merge pull request #279 from ahmadhusein17/Development

Development
This commit is contained in:
iBNu Maksum 2024-08-28 13:49:26 +07:00 committed by GitHub
commit 7e8913f0b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 31 additions and 30 deletions

View File

@ -3,29 +3,29 @@
<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('Add Service Plan')}</div>
<div class="panel-heading">{Lang::T('Add Service Package')}</div>
<div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/balance-add-post">
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Status')}</label>
<div class="col-md-10">
<label class="radio-inline warning">
<input type="radio" checked name="enabled" value="1"> {Lang::T('Enable')}
<input type="radio" checked name="enabled" value="1"> {Lang::T('Active')}
</label>
<label class="radio-inline">
<input type="radio" name="enabled" value="0"> {Lang::T('Disable')}
<input type="radio" name="enabled" value="0"> {Lang::T('Not Active')}
</label>
</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" name="name" maxlength="40"
placeholder="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,14 +3,14 @@
<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('Add Service Plan')}</div>
<div class="panel-heading">{Lang::T('Add Service Package')}</div>
<div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/add-post">
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Status')}
<a tabindex="0" class="btn btn-link btn-xs" role="button" data-toggle="popover"
data-trigger="focus" data-container="body"
data-content="Customer cannot buy disabled Plan, but admin can recharge it, use it if you want only admin recharge it">?</a>
data-content="Customer cannot buy disabled Package, but admin can recharge it, use it if you want only admin recharge it">?</a>
</label>
<div class="col-md-10">
<input type="radio" name="enabled" value="1" checked> {Lang::T('Active')}
@ -30,10 +30,10 @@
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Plan Type')}
<label class="col-md-2 control-label">{Lang::T('Package Type')}
<a tabindex="0" class="btn btn-link btn-xs" role="button" data-toggle="popover"
data-trigger="focus" data-container="body"
data-content="Personal Plan will only show to personal Customer, Business plan will only show to Business Customer">?</a>
data-content="Personal Plan will only show to personal Customer, Business package will only show to Business Customer">?</a>
</label>
<div class="col-md-10">
<input type="radio" name="plan_type" value="Personal" checked> {Lang::T('Personal')}
@ -70,13 +70,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" class="form-control" id="name" name="name" maxlength="40">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Plan Type')}</label>
<label class="col-md-2 control-label">{Lang::T('Package Type')}</label>
<div class="col-md-10">
<input type="radio" id="Unlimited" name="typebp" value="Unlimited" checked>
{Lang::T('Unlimited')}
@ -137,7 +137,7 @@
</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>
@ -165,7 +165,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Plan Validity')}</label>
<label class="col-md-2 control-label">{Lang::T('Package Validity')}</label>
<div class="col-md-4">
<input type="text" class="form-control" id="validity" name="validity">
</div>

View File

@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-6">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">{Lang::T('Edit Service Plan')} || {$d['name_plan']}</div>
<div class="panel-heading">{Lang::T('Edit Service Package')} || {$d['name_plan']}</div>
<div class="panel-body">
<input type="hidden" name="id" value="{$d['id']}">
<div class="form-group">
@ -34,7 +34,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Plan Type')}
<label class="col-md-3 control-label">{Lang::T('Package Type')}
<a tabindex="0" class="btn btn-link btn-xs" role="button" data-toggle="popover"
data-trigger="focus" data-container="body"
data-content="Personal Plan will only show to personal Customer, Business plan will only show to Business Customer">?</a>
@ -74,14 +74,14 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Plan Name')}</label>
<label class="col-md-3 control-label">{Lang::T('Package Name')}</label>
<div class="col-md-9">
<input type="text" class="form-control" id="name" name="name" maxlength="40"
value="{$d['name_plan']}">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Plan Type')}</label>
<label class="col-md-3 control-label">{Lang::T('Package Type')}</label>
<div class="col-md-9">
<input type="radio" id="Unlimited" name="typebp" value="Unlimited"
{if $d['typebp'] eq 'Unlimited'} checked {/if}> {Lang::T('Unlimited')}
@ -152,7 +152,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Plan Price')}</label>
<label class="col-md-3 control-label">{Lang::T('Package Price')}</label>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-addon">{$_c['currency_code']}</span>
@ -182,7 +182,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Plan Validity')}</label>
<label class="col-md-3 control-label">{Lang::T('Package Validity')}</label>
<div class="col-md-3">
<input type="text" class="form-control" id="validity" name="validity"
value="{$d['validity']}">
@ -231,7 +231,7 @@
</span>
<legend>{Lang::T('Expired Action')} <sub>{Lang::T('Optional')}</sub></legend>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Expired Internet Plan')}</label>
<label class="col-md-3 control-label">{Lang::T('Expired Internet Package')}</label>
<div class="col-md-9">
<select id="plan_expired" name="plan_expired" class="form-control select2">
<option value='0'>{Lang::T('Default - Remove Customer')}</option>
@ -241,7 +241,7 @@
{/foreach}
</select>
<p class="help-block">
{Lang::T('When Expired, customer will be move to selected internet plan')}</p>
{Lang::T('When Expired, customer will be move to selected internet package')}</p>
</div>
</div>

View File

@ -6,7 +6,7 @@
<div class="panel-heading">
<div class="btn-group pull-right">
<a class="btn btn-primary btn-xs" title="save" href="{$_url}services/sync/hotspot"
onclick="return confirm('This will sync/send hotspot plan to Mikrotik?')"><span
onclick="return confirm('This will sync/send hotspot package to Mikrotik?')"><span
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> sync</a>
</div>{Lang::T('Hotspot Plans')}
</div>
@ -98,7 +98,7 @@
</div>
<div class="col-lg-1 col-xs-4">
<a href="{$_url}services/add" class="btn btn-primary btn-block"
title="{Lang::T('New Service Plan')}"><i class="ion ion-android-add"></i></a>
title="{Lang::T('New Service Package')}"><i class="ion ion-android-add"></i></a>
</div>
</div>
</div>
@ -108,8 +108,8 @@
<thead>
<tr>
<th></th>
<th colspan="5" class="text-center">{Lang::T('Internet Plan')}</th>
<th colspan="2" class="text-center" style="background-color: rgb(246, 244, 244);">Limit</th>
<th colspan="5" class="text-center">{Lang::T('Internet Package')}</th>
<th colspan="2" class="text-center" style="background-color: rgb(246, 244, 244);">{Lang::T('Limit')}</th>
<th colspan="2"></th>
<th colspan="2" class="text-center" style="background-color: rgb(243, 241, 172);">
{Lang::T('Expired')}</th>
@ -126,7 +126,7 @@
<th style="background-color: rgb(246, 244, 244);">{Lang::T('Data')}</th>
<th><a href="{$_url}routers/list">{Lang::T('Location')}</a></th>
<th>{Lang::T('Device')}</th>
<th style="background-color: rgb(243, 241, 172);">{Lang::T('Internet Plan')}</th>
<th style="background-color: rgb(243, 241, 172);">{Lang::T('Internet Package')}</th>
<th style="background-color: rgb(243, 241, 172);">{Lang::T('Date')}</th>
<th>{Lang::T('ID')}</th>
<th>{Lang::T('Manage')}</th>
@ -174,8 +174,8 @@
<div class="panel-footer">
{include file="pagination.tpl"}
<div class="bs-callout bs-callout-info" id="callout-navbar-role">
<h4>{Lang::T('Create expired Internet Plan')}</h4>
<p>{Lang::T('When customer expired, you can move it to Expired Internet Plan')}</p>
<h4>{Lang::T('Create expired Internet Package')}</h4>
<p>{Lang::T('When customer expired, you can move it to Expired Internet Package')}</p>
</div>
</div>
</div>

View File

@ -17,6 +17,7 @@
</div> *}
{/if}
&nbsp;
{Lang::T('Active Customers')}
</div>
<form id="site-search" method="post" action="{$_url}plan/list/">
<div class="panel-body">