1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

added "advanced" tab to dhcp config, moved upstream dns into it

This commit is contained in:
glaszig 2020-02-29 19:19:15 +01:00
parent 9c3c27cb71
commit 490ca1cb5a

View File

@ -21,6 +21,7 @@
<!-- Nav tabs --> <!-- Nav tabs -->
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" href="#server-settings" data-toggle="tab"><?php echo _("Server settings"); ?></a></li> <li class="nav-item"><a class="nav-link active" href="#server-settings" data-toggle="tab"><?php echo _("Server settings"); ?></a></li>
<li class="nav-item"><a class="nav-link" href="#advanced" data-toggle="tab"><?php echo _("Advanced settings"); ?></a></li>
<li class="nav-item"><a class="nav-link" href="#static-leases" data-toggle="tab"><?php echo _("Static Leases") ?></a></li> <li class="nav-item"><a class="nav-link" href="#static-leases" data-toggle="tab"><?php echo _("Static Leases") ?></a></li>
<li class="nav-item"><a class="nav-link" href="#client-list" data-toggle="tab"><?php echo _("Client list"); ?></a></li> <li class="nav-item"><a class="nav-link" href="#client-list" data-toggle="tab"><?php echo _("Client list"); ?></a></li>
</ul> </ul>
@ -84,6 +85,20 @@
</div> </div>
</div> </div>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<input type="submit" class="btn btn-outline btn-primary" value="<?php echo _("Save settings"); ?>" name="savedhcpdsettings" />
<?php if ($dnsmasq_state) : ?>
<input type="submit" class="btn btn-warning" value="<?php echo _("Stop dnsmasq") ?>" name="stopdhcpd" />
<?php else : ?>
<input type="submit" class="btn btn-success" value="<?php echo _("Start dnsmasq") ?>" name="startdhcpd" />
<?php endif ?>
<?php endif ?>
</div><!-- /.tab-pane -->
<!-- advanced tab -->
<div class="tab-pane" id="advanced">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h5><?php echo _("Upstream DNS servers") ?></h5> <h5><?php echo _("Upstream DNS servers") ?></h5>
@ -127,7 +142,6 @@
</p> </p>
</div> </div>
</div> </div>
</div>
<template id="dhcp-upstream-server"> <template id="dhcp-upstream-server">
<div class="form-group input-group input-group-sm js-dhcp-upstream-server"> <div class="form-group input-group input-group-sm js-dhcp-upstream-server">
@ -137,17 +151,9 @@
</div> </div>
</div> </div>
</template> </template>
</div><!-- /.row -->
</div><!-- /.tab-pane | advanded tab -->
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<input type="submit" class="btn btn-outline btn-primary" value="<?php echo _("Save settings"); ?>" name="savedhcpdsettings" />
<?php if ($dnsmasq_state) : ?>
<input type="submit" class="btn btn-warning" value="<?php echo _("Stop dnsmasq") ?>" name="stopdhcpd" />
<?php else : ?>
<input type="submit" class="btn btn-success" value="<?php echo _("Start dnsmasq") ?>" name="startdhcpd" />
<?php endif ?>
<?php endif ?>
</div><!-- /.tab-pane -->
<div class="tab-pane fade" id="client-list"> <div class="tab-pane fade" id="client-list">
<h4 class="mt-3 mb-3">Client list</h4> <h4 class="mt-3 mb-3">Client list</h4>