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

firewall_nat_edit.php fix some html errors

(cherry picked from commit 5402a89a)
parent 8bf28529
...@@ -615,7 +615,7 @@ $( document ).ready(function() { ...@@ -615,7 +615,7 @@ $( document ).ready(function() {
<tr> <tr>
<td> <td>
<select name="src" id="src" class="selectpicker" data-live-search="true" data-size="5" data-width="auto"> <select name="src" id="src" class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
<option data-other=true value="<?=$pconfig['src'];?>" <?=!is_specialnet($pconfig['src']) ? "selected=\"selected\"" : "";?>><?=gettext("Single host or Network"); ?></option> <option data-other=true value="<?=$pconfig['src'];?>" <?=!is_specialnet($pconfig['src']) && !is_alias($pconfig['src']) ? "selected=\"selected\"" : "";?>><?=gettext("Single host or Network"); ?></option>
<optgroup label="<?=gettext("Aliases");?>"> <optgroup label="<?=gettext("Aliases");?>">
<?php foreach (legacy_list_aliases("network") as $alias): <?php foreach (legacy_list_aliases("network") as $alias):
?> ?>
...@@ -716,7 +716,7 @@ $( document ).ready(function() { ...@@ -716,7 +716,7 @@ $( document ).ready(function() {
<tr> <tr>
<td> <a id="help_for_dst_invert" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Destination") . " / ".gettext("Invert");?> </td> <td> <a id="help_for_dst_invert" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Destination") . " / ".gettext("Invert");?> </td>
<td> <td>
<input name="dstnot" type="checkbox" id="srcnot" value="yes" <?= !empty($pconfig['dstnot']) ? "checked=\"checked\"" : "";?> /> <input name="dstnot" type="checkbox" id="dstnot" value="yes" <?= !empty($pconfig['dstnot']) ? "checked=\"checked\"" : "";?> />
<div class="hidden" for="help_for_dst_invert"> <div class="hidden" for="help_for_dst_invert">
<?=gettext("Use this option to invert the sense of the match."); ?> <?=gettext("Use this option to invert the sense of the match."); ?>
</div> </div>
...@@ -729,7 +729,7 @@ $( document ).ready(function() { ...@@ -729,7 +729,7 @@ $( document ).ready(function() {
<tr> <tr>
<td> <td>
<select name="dst" id="dst" class="selectpicker" data-live-search="true" data-size="5" data-width="auto"> <select name="dst" id="dst" class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
<option data-other=true value="<?=$pconfig['dst'];?>" <?=!is_specialnet($pconfig['dst']) ? "selected=\"selected\"" : "";?>><?=gettext("Single host or Network"); ?></option> <option data-other=true value="<?=$pconfig['dst'];?>" <?=!is_specialnet($pconfig['dst']) && !is_alias($pconfig['dst']) ? "selected=\"selected\"" : "";?>><?=gettext("Single host or Network"); ?></option>
<optgroup label="<?=gettext("Aliases");?>"> <optgroup label="<?=gettext("Aliases");?>">
<?php foreach (legacy_list_aliases("network") as $alias): <?php foreach (legacy_list_aliases("network") as $alias):
?> ?>
...@@ -853,8 +853,7 @@ $( document ).ready(function() { ...@@ -853,8 +853,7 @@ $( document ).ready(function() {
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr class="act_no_rdr">
<tr class="act_no_rdr">
<td><a id="help_for_localip" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Redirect target IP"); ?></td> <td><a id="help_for_localip" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Redirect target IP"); ?></td>
<td> <td>
<input name="target" type="text" class="formfldalias" size="20" value="<?=$pconfig['target'];?>" /> <input name="target" type="text" class="formfldalias" size="20" value="<?=$pconfig['target'];?>" />
...@@ -1029,7 +1028,6 @@ $( document ).ready(function() { ...@@ -1029,7 +1028,6 @@ $( document ).ready(function() {
</table> </table>
</form> </form>
</div> </div>
</div>
</section> </section>
</div> </div>
</div> </div>
......
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