2020-02-29 19:30:28 +01:00
|
|
|
<?php ob_start() ?>
|
|
|
|
<?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 ?>
|
|
|
|
<?php $buttons = ob_get_clean(); ob_end_clean() ?>
|
|
|
|
|
2019-08-19 01:28:01 +02:00
|
|
|
<div class="row">
|
2020-03-06 16:26:23 +01:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
2019-08-19 01:28:01 +02:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
<div class="card-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<i class="fas fa-exchange-alt mr-2"></i><?php echo _("DHCP Server"); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<button class="btn btn-light btn-icon-split btn-sm service-status float-right">
|
|
|
|
<span class="icon text-gray-600"><i class="fas fa-circle service-status-<?php echo $serviceStatus ?>"></i></span>
|
|
|
|
<span class="text service-status">dnsmasq <?php echo _($serviceStatus) ?></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.row -->
|
|
|
|
</div><!-- /.card-header -->
|
2019-08-19 01:28:01 +02:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
<div class="card-body">
|
|
|
|
<?php $status->showMessages(); ?>
|
2020-12-15 14:48:51 +01:00
|
|
|
<form method="POST" action="dhcpd_conf" class="js-dhcp-settings-form">
|
2020-03-06 16:26:23 +01:00
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
2019-10-15 00:18:39 +02:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
<!-- Nav tabs -->
|
2020-03-06 16:39:24 +01:00
|
|
|
<ul class="nav nav-tabs mb-3">
|
2020-03-06 16:26:23 +01:00
|
|
|
<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"); ?></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>
|
2020-03-06 16:41:49 +01:00
|
|
|
<li class="nav-item"><a class="nav-link" href="#logging" data-toggle="tab"><?php echo _("Logging"); ?></a></li>
|
2020-03-06 16:26:23 +01:00
|
|
|
</ul>
|
2019-10-15 00:18:39 +02:00
|
|
|
|
2020-03-06 16:53:22 +01:00
|
|
|
<!-- Tab panes -->
|
2020-03-06 16:26:23 +01:00
|
|
|
<div class="tab-content">
|
2020-03-06 16:54:48 +01:00
|
|
|
<?php echo renderTemplate("dhcp/general", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("dhcp/advanced", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("dhcp/clients", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("dhcp/static_leases", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("dhcp/logging", $__template_data) ?>
|
2020-03-06 16:26:23 +01:00
|
|
|
</div><!-- /.tab-content -->
|
2020-03-05 11:35:40 +01:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
<?php echo $buttons ?>
|
|
|
|
</form>
|
|
|
|
</div><!-- ./ card-body -->
|
2020-02-29 19:30:28 +01:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
<div class="card-footer"> <?php echo _("Information provided by Dnsmasq"); ?></div>
|
2019-08-19 01:28:01 +02:00
|
|
|
|
2020-03-06 16:26:23 +01:00
|
|
|
</div><!-- /.card -->
|
|
|
|
</div><!-- /.col-lg-12 -->
|
2019-09-07 10:55:42 +02:00
|
|
|
</div><!-- /.row -->
|