Commit c7362cab authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy/dhcp) add all_help button

(cherry picked from commit 654e3d4d)
parent ff33b909
......@@ -690,11 +690,18 @@ include("head.inc");
<form action="services_dhcp.php" method="post" name="iform" id="iform">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td width="22%" valign="top"></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<?php
if (!isset($pool) && !($act == "newpool")): ?>
<tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td>
<td width="78%">
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td>
<td>
<input name="enable" id="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> />
<strong><?php printf(gettext("Enable DHCP server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
</td>
......@@ -705,7 +712,7 @@ include("head.inc");
<td colspan="2"><?php echo gettext("Editing Pool-Specific Options. To return to the Interface, click its tab above."); ?></td>
</tr>
<tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Pool Description");?></td>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Pool Description");?></td>
<td>
<input name="descr" type="text" id="descr" value="<?=$pconfig['descr'];?>" />
</td>
......
......@@ -335,11 +335,15 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td colspan="2"><?=gettext("Static DHCP Mapping");?></td>
<td width="22%" valign="top"><strong><?=gettext("Static DHCP Mapping");?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td width="22%"><a id="help_for_mac" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("MAC address");?></td>
<td width="78%">
<td><a id="help_for_mac" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("MAC address");?></td>
<td>
<input name="mac" id="mac" type="text" value="<?=$pconfig['mac'];?>" />
<?php
$ip = getenv('REMOTE_ADDR');
......
......@@ -114,15 +114,19 @@ include("head.inc");
<p><?= gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.') ?></p>
<?php
else: ?>
<header class="content-box-head container-fluid">
<h3><?=gettext("DHCP Relay configuration"); ?></h3>
</header>
<div class="content-box-main">
<div>
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext('Enable') ?></td>
<td width="78%">
<td width="22%" valign="top"><strong><?=gettext("DHCP Relay configuration"); ?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext('Enable') ?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> onclick="enable_change(false)" />
</td>
</tr>
......
......@@ -471,8 +471,15 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?></td>
<td width="78%">
<td width="22%" valign="top"></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> />
<strong><?php printf(gettext("Enable DHCPv6 server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
</td>
......
......@@ -169,11 +169,15 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td colspan="2"><?=gettext("Static DHCPv6 Mapping");?></td>
<td width="22%" valign="top"><strong><?=gettext("Static DHCPv6 Mapping");?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td width="22%"><a id="help_for_duid" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DUID Identifier");?></td>
<td width="78%">
<td><a id="help_for_duid" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DUID Identifier");?></td>
<td>
<input name="duid" type="text" value="<?=$pconfig['duid'];?>" />
<div class="hidden" for="help_for_duid">
<?=gettext("Enter a DUID Identifier in the following format: ");?><br />
......
......@@ -113,15 +113,19 @@ include("head.inc");
<?php if ($dhcpd_enabled): ?>
<p><?= gettext('DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.') ?></p>
<?php else: ?>
<header class="content-box-head container-fluid">
<h3><?=gettext("DHCPv6 Relay configuration"); ?></h3>
</header>
<div class="content-box-main ">
<div>
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?= gettext('Enable') ?></td>
<td width="78%">
<td width="22%" valign="top"><strong><?=gettext("DHCPv6 Relay configuration"); ?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?= gettext('Enable') ?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?>/>
<strong><?=gettext("Enable DHCPv6 relay on interface");?></strong>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment