mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Interfaces Overview, merge DHCPv4 / DHCPv6 buttons
Having two sets of buttons implies that they only act on the respective protocol, but this is not the case.
This commit is contained in:
parent
940e4962f3
commit
b33ed9e207
@ -125,30 +125,21 @@ include("head.inc");
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!empty($ifinfo['dhcplink']) && !empty($ifinfo['enable'])): ?>
|
||||
<?php if ((!empty($ifinfo['dhcplink']) || !empty($ifinfo['dhcp6link'])) && !empty($ifinfo['enable'])): ?>
|
||||
<tr>
|
||||
<td> <?=gettext("DHCP");?></td>
|
||||
<td>
|
||||
<form name="dhcplink_form" method="post">
|
||||
<input type="hidden" name="if" value="<?= $ifdescr ?>" />
|
||||
<input type="hidden" name="status" value="<?= $ifinfo['dhcplink'] ?>" />
|
||||
<?= $ifinfo['dhcplink'] ?>
|
||||
<input type="hidden" name="status" value="<?= ($ifinfo['dhcplink'] == "up" || $ifinfo['dhcp6link'] == "up") ? gettext("up") : gettext("down") ?>" />
|
||||
<?php if (!empty($ifinfo['dhcplink'])): ?>
|
||||
<?= gettext("DHCPv4 ") ?><?= $ifinfo['dhcplink'] ?>
|
||||
<?php endif ?>
|
||||
<?php if (!empty($ifinfo['dhcp6link'])): ?>
|
||||
<?= gettext("DHCPv6 ") ?><?= $ifinfo['dhcp6link'] ?>
|
||||
<?php endif ?>
|
||||
<button type="submit" name="submit" class="btn btn-primary btn-xs" value="remote"><?= gettext('Reload') ?></button>
|
||||
<button type="submit" name="submit" class="btn btn-xs" value="local"><?= $ifinfo['dhcplink'] == "up" ? gettext("Release") : gettext("Renew") ?></button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if (!empty($ifinfo['dhcp6link']) && !empty($ifinfo['enable'])): ?>
|
||||
<tr>
|
||||
<td> <?=gettext("DHCP6");?></td>
|
||||
<td>
|
||||
<form name="dhcp6link_form" method="post">
|
||||
<input type="hidden" name="if" value="<?= $ifdescr ?>" />
|
||||
<input type="hidden" name="status" value="<?= $ifinfo['dhcp6link'] ?>" />
|
||||
<?= $ifinfo['dhcp6link'] ?>
|
||||
<button type="submit" name="submit" class="btn btn-primary btn-xs" value="remote"><?= gettext('Reload') ?></button>
|
||||
<button type="submit" name="submit" class="btn btn-xs" value="local"><?= $ifinfo['dhcp6link'] == "up" ? gettext("Release") : gettext("Renew") ?></button>
|
||||
<button type="submit" name="submit" class="btn btn-xs" value="local"><?= ($ifinfo['dhcplink'] == "up" || $ifinfo['dhcp6link'] == "up") ? gettext("Release") : gettext("Renew") ?></button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user