use bootstrap's pretty custom-switch

This commit is contained in:
glaszig 2020-02-29 19:02:27 +01:00
parent 1efbb52738
commit 0db3d151ee
1 changed files with 5 additions and 3 deletions

View File

@ -88,10 +88,12 @@
<div class="col-md-6">
<h5><?php echo _("Upstream DNS servers") ?></h5>
<div class="form-check">
<div class="input-group">
<input type="hidden" name="no-resolv" value="0">
<input class="form-check-input" id="no-resolv" type="checkbox" name="no-resolv" value="1" <?php echo $conf['no-resolv'] ? ' checked="checked"' : "" ?> aria-describedby="no-resolv-description">
<label for="no-resolv"><?php echo _("Do not use upstream DNS supplied from DHCP server") ?></label>
<div class="custom-control custom-switch">
<input class="custom-control-input" id="no-resolv" type="checkbox" name="no-resolv" value="1" <?php echo $conf['no-resolv'] ? ' checked="checked"' : "" ?> aria-describedby="no-resolv-description">
<label class="custom-control-label" for="no-resolv"><?php echo _("Do not use upstream DNS supplied from DHCP server") ?></label>
</div>
<p id="no-resolv-description">
<small><?php echo _("Enable this option if you want RaspAP to <b>send DNS queries to the servers configured below exclusively</b>. By default RaspAP also uses its upstream DHCP server's name servers.") ?></small>
<br><small class="text-muted"><?php echo _("This option adds <code>no-resolv</code> to the dnsmasq configuration.") ?></small>