Change Local-Ip PPPoE to Remote-IP

Change Local-Ip PPPoE to Remote-IP in customer page and ignor attribute if empty
This commit is contained in:
gerandonk
2024-09-09 07:19:48 +07:00
parent 53512cfa58
commit 84bc680f40
4 changed files with 53 additions and 11 deletions

View File

@ -110,7 +110,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Local IP <span class="label label-danger" id="warning_ip"></span></label>
<label class="col-md-3 control-label">Remote IP <span class="label label-danger" id="warning_ip"></span></label>
<div class="col-md-9">
<input type="text" class="form-control" id="pppoe_ip" name="pppoe_ip" onkeyup="checkIP(this, '0')">
<span class="help-block">{Lang::T('Not Working for freeradius')}</span>

View File

@ -135,7 +135,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Local IP <span class="label label-danger" id="warning_ip"></span></label>
<label class="col-md-3 control-label">Remote IP <span class="label label-danger" id="warning_ip"></span></label>
<div class="col-md-9">
<input type="text" class="form-control" id="pppoe_ip" name="pppoe_ip"
onkeyup="checkIP(this, {$d['id']})" value="{$d['pppoe_ip']}">

View File

@ -56,7 +56,7 @@
{/if}
{if $d['pppoe_ip'] != ''}
<li class="list-group-item">
<b>PPPOE Local IP</b> <span class="pull-right">{$d['pppoe_ip']}</span>
<b>PPPOE Remote IP</b> <span class="pull-right">{$d['pppoe_ip']}</span>
</li>
{/if}
<!--Customers Attributes view start -->