Local IP in Pool

This commit is contained in:
Ibnu Maksum
2024-06-10 16:53:21 +07:00
parent 29c8cb3ea1
commit 78a6708a6d
7 changed files with 26 additions and 6 deletions

View File

@ -13,10 +13,16 @@
<input type="text" class="form-control" id="name" name="name">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Local IP')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="local_ip" name="local_ip" placeholder="192.168.88.1">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Range IP')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="ex: 192.168.88.2-192.168.88.254">
<input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="192.168.88.2-192.168.88.254">
</div>
</div>
<div class="form-group">
@ -31,9 +37,6 @@
{/foreach}
</select>
</div>
{if $_c['radius_enable']}
<p class="help-block col-md-4">For Radius, you need to add <b>Pool Name</b> in Mikrotik manually</p>
{/if}
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">

View File

@ -14,6 +14,12 @@
<input type="text" class="form-control" id="name" name="name" value="{$d['pool_name']}" readonly>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Local IP')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="local_ip" name="local_ip" value="{$d['local_ip']}" placeholder="192.168.88.1">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Range IP')}</label>
<div class="col-md-6">

View File

@ -9,7 +9,7 @@
onclick="return confirm('This will sync/send IP Pool to Mikrotik?')"><span
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> sync</a>
</div>
{Lang::T('IP Pool')}
{Lang::T('IP Pool')} - PPPOE
</div>
<div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
@ -37,6 +37,7 @@
<thead>
<tr>
<th>{Lang::T('Name Pool')}</th>
<th>{Lang::T('Local IP')}</th>
<th>{Lang::T('Range IP')}</th>
<th>{Lang::T('Routers')}</th>
<th>{Lang::T('Manage')}</th>
@ -47,6 +48,7 @@
{foreach $d as $ds}
<tr>
<td>{$ds['pool_name']}</td>
<td>{$ds['local_ip']}</td>
<td>{$ds['range_ip']}</td>
<td>{$ds['routers']}</td>
<td align="center">