Add DHCP for eth0 option to advanced tab

This commit is contained in:
billz 2020-11-04 01:05:35 +00:00
parent 64736d64cc
commit 6ca12a184b
1 changed files with 16 additions and 1 deletions

View File

@ -4,7 +4,6 @@
<div class="row">
<div class="col-md-6">
<h5><?php echo _("Upstream DNS servers") ?></h5>
<div class="input-group">
<input type="hidden" name="no-resolv" value="0">
<div class="custom-control custom-switch">
@ -48,6 +47,22 @@
<?php echo optionsForSelect(dnsServers()) ?>
</select>
</div>
<h5><?php echo _("DHCP for eth0") ?></h5>
<div class="input-group">
<input type="hidden" name="dchp-eth0" value="0">
<div class="custom-control custom-switch">
<input class="custom-control-input" id="dchp-eth0" type="checkbox" name="dhcp-eth0" value="1" <?php echo $conf['dhcp-eth0'] ? ' checked="checked"' : "" ?> aria-describedby="dhcp-eth0-description">
<label class="custom-control-label" for="dhcp-eth"><?php echo _("Enable DHCP for wired ethernet") ?></label>
</div>
<p id="dhcp-eth0-description">
<small><?php echo _("Enable this option if you want RaspAP to provide IP addresses and connectivity to clients connected to the wired ethernet interface (eth0).") ?></small>
<br><small class="text-muted"><?php echo _("This option enables an additional <code>eth0</code> configuration to DHCP and dnsmasq.") ?></small>
</p>
</div>
</div>
<template id="dhcp-upstream-server">