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

Optimize template layout

This commit is contained in:
billz 2021-02-22 08:01:41 +00:00
parent f156fbceae
commit f7a441566e

View File

@ -1,7 +1,12 @@
<!-- static leases tab --> <!-- static leases tab -->
<div class="tab-pane fade" id="static-leases"> <div class="tab-pane fade" id="static-leases">
<div class="row">
<div class="col-md-12">
<h4 class="mt-3 mb-3"><?php echo _("Static leases") ?></h4> <h4 class="mt-3 mb-3"><?php echo _("Static leases") ?></h4>
<p id="static-lease-description">
<small><?php echo _("Clients with a particular hardware MAC address can always be allocated the same IP address.") ?></small>
<small class="text-muted"><?php echo _("This option adds <code>dhcp-host</code> entries to the dnsmasq configuration.") ?></small>
</p>
<div class="dhcp-static-leases js-dhcp-static-lease-container"> <div class="dhcp-static-leases js-dhcp-static-lease-container">
<?php foreach ($hosts as $host) : ?> <?php foreach ($hosts as $host) : ?>
<?php list($mac, $ip) = array_map("trim", explode(",", $host)); ?> <?php list($mac, $ip) = array_map("trim", explode(",", $host)); ?>
@ -19,15 +24,6 @@
<?php endforeach ?> <?php endforeach ?>
</div> </div>
<h5 class="mt-3 mb-3"><?php echo _("Add static DHCP lease") ?></h5>
<div class="row">
<div class="col-md-6">
<p id="static-lease-description">
<small><?php echo _("Clients with a particular hardware MAC address can always be allocated the same IP address.") ?></small>
<small class="text-muted"><?php echo _("This option adds <code>dhcp-host</code> entries to the dnsmasq configuration.") ?></small>
</p>
</div>
</div>
<div class="row dhcp-static-lease-row js-new-dhcp-static-lease"> <div class="row dhcp-static-lease-row js-new-dhcp-static-lease">
<div class="col-md-5 col-xs-5"> <div class="col-md-5 col-xs-5">
<input type="text" name="mac" value="" placeholder="<?php echo _("MAC address") ?>" class="form-control" autofocus="autofocus"> <input type="text" name="mac" value="" placeholder="<?php echo _("MAC address") ?>" class="form-control" autofocus="autofocus">
@ -41,8 +37,6 @@
</div> </div>
<h5 class="mt-3 mb-3"><?php echo _("Restrict access") ?></h5> <h5 class="mt-3 mb-3"><?php echo _("Restrict access") ?></h5>
<div class="row">
<div class="col-md-6">
<div class="input-group"> <div class="input-group">
<input type="hidden" name="dhcp-ignore" value="0"> <input type="hidden" name="dhcp-ignore" value="0">
<div class="custom-control custom-switch"> <div class="custom-control custom-switch">
@ -70,5 +64,6 @@
</div> </div>
</div> </div>
</template> </template>
</div><!-- /.tab-pane --> </div><!-- /.tab-pane -->