hide router when radius choosen
This commit is contained in:
parent
3b87630986
commit
6e3df253c6
@ -1,11 +1,11 @@
|
|||||||
{include file="sections/header.tpl"}
|
{include file="sections/header.tpl"}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-12">
|
<div class="col-sm-12 col-md-12">
|
||||||
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
||||||
<div class="panel-heading">{$_L['Add_Plan']}</div>
|
<div class="panel-heading">{$_L['Add_Plan']}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form class="form-horizontal" method="post" role="form" action="{$_url}services/add-post" >
|
<form class="form-horizontal" method="post" role="form" action="{$_url}services/add-post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Status')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Status')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
@ -17,6 +17,16 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{if $_c['radius_enable'] == 'yes'}
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Radius</label>
|
||||||
|
<div class="col-md-10">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="checkbox" name="radius" onclick="isRadius(this)" value="1"> Radius Plan
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
|
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@ -26,7 +36,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{$_L['Plan_Type']}</label>
|
<label class="col-md-2 control-label">{$_L['Plan_Type']}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" id="Unlimited" name="typebp" value="Unlimited" checked> {$_L['Unlimited']}
|
<input type="radio" id="Unlimited" name="typebp" value="Unlimited" checked>
|
||||||
|
{$_L['Unlimited']}
|
||||||
<input type="radio" id="Limited" name="typebp" value="Limited"> {$_L['Limited']}
|
<input type="radio" id="Limited" name="typebp" value="Limited"> {$_L['Limited']}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -34,9 +45,12 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{$_L['Limit_Type']}</label>
|
<label class="col-md-2 control-label">{$_L['Limit_Type']}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" checked> {$_L['Time_Limit']}
|
<input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" checked>
|
||||||
<input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit"> {$_L['Data_Limit']}
|
{$_L['Time_Limit']}
|
||||||
<input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit"> {$_L['Both_Limit']}
|
<input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit">
|
||||||
|
{$_L['Data_Limit']}
|
||||||
|
<input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit">
|
||||||
|
{$_L['Both_Limit']}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -69,7 +83,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label"><a href="{$_url}bandwidth/add">{$_L['BW_Name']}</a></label>
|
<label class="col-md-2 control-label"><a
|
||||||
|
href="{$_url}bandwidth/add">{$_L['BW_Name']}</a></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select id="id_bw" name="id_bw" class="form-control select2">
|
<select id="id_bw" name="id_bw" class="form-control select2">
|
||||||
<option value="">{$_L['Select_BW']}...</option>
|
<option value="">{$_L['Select_BW']}...</option>
|
||||||
@ -102,15 +117,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<select class="form-control" id="validity_unit" name="validity_unit">
|
<select class="form-control" id="validity_unit" name="validity_unit">
|
||||||
<option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option>
|
<option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}
|
||||||
<option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option>
|
</option>
|
||||||
<option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option>
|
<option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}
|
||||||
<option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option>
|
</option>
|
||||||
|
<option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}
|
||||||
|
</option>
|
||||||
|
<option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>
|
||||||
|
{$_L['Months']}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<span id="routerChoose" class="">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label"><a href="{$_url}routers/add">{$_L['Router_Name']}</a></label>
|
<label class="col-md-2 control-label"><a
|
||||||
|
href="{$_url}routers/add">{$_L['Router_Name']}</a></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select id="routers" name="routers" required class="form-control select2">
|
<select id="routers" name="routers" required class="form-control select2">
|
||||||
<option value=''>{$_L['Select_Routers']}</option>
|
<option value=''>{$_L['Select_Routers']}</option>
|
||||||
@ -122,16 +143,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label"><a href="{$_url}pool/add">{Lang::T('Expired IP Pool')}</a></label>
|
<label class="col-md-2 control-label"><a
|
||||||
|
href="{$_url}pool/add">{Lang::T('Expired IP Pool')}</a></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select id="pool_expired" name="pool_expired" class="form-control select2">
|
<select id="pool_expired" name="pool_expired" class="form-control select2">
|
||||||
<option value=''>{$_L['Select_Pool']}</option>
|
<option value=''>{$_L['Select_Pool']}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</span>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-offset-2 col-md-10">
|
<div class="col-md-offset-2 col-md-10">
|
||||||
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
|
<button class="btn btn-success waves-effect waves-light"
|
||||||
|
type="submit">{$_L['Save']}</button>
|
||||||
Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
|
Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -139,6 +163,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
<script>
|
||||||
|
function isRadius(cek){
|
||||||
|
if(cek.checked){
|
||||||
|
$("#routerChoose").addClass('hidden');
|
||||||
|
}else{
|
||||||
|
$("#routerChoose").removeClass('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
|
||||||
{include file="sections/footer.tpl"}
|
{include file="sections/footer.tpl"}
|
Loading…
x
Reference in New Issue
Block a user