Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
b668fdeb
Commit
b668fdeb
authored
May 18, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firewall nat rules UI) make disabled visible, fix for
https://github.com/opnsense/core/issues/169
parent
c5bf89ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
firewall_nat.php
src/www/firewall_nat.php
+11
-4
No files found.
src/www/firewall_nat.php
View file @
b668fdeb
...
...
@@ -259,7 +259,7 @@ $main_buttons = array(
$alias_local_port_span_end
=
$alias_popup
[
"dstport_end"
];
if
(
isset
(
$natent
[
'disabled'
]))
$textss
=
"<span class=
\"
gray
\"
>"
;
$textss
=
"<span class=
\"
text-muted
\"
>"
;
else
$textss
=
"<span>"
;
...
...
@@ -273,11 +273,18 @@ $main_buttons = array(
<td
class=
"listt"
><input
type=
"checkbox"
id=
"frc
<?=
$nnats
;
?>
"
name=
"rule[]"
value=
"
<?=
$i
;
?>
"
style=
"margin: 0; padding: 0; width: 15px; height: 15px;"
/></td>
<td
class=
"listt"
align=
"center"
>
<?php
if
(
$natent
[
'associated-rule-id'
]
==
"pass"
)
:
?>
<span
class=
"glyphicon glyphicon-play text-success"
></span>
<?php
if
(
isset
(
$natent
[
'disabled'
]))
:?>
<
span
class
="
glyphicon
glyphicon
-
play
text
-
muted
"></span>
<? else: ?>
<span class="
glyphicon
glyphicon
-
play
text
-
success
"></span>
<? endif;?>
<?php elseif (!empty(
$natent['associated-rule-id']
)): ?>
<span
class=
"glyphicon glyphicon-resize-horizontal text-success"
></span>
<?php if(isset(
$natent['disabled']
)):?>
<span class="
glyphicon
glyphicon
-
resize
-
horizontal
text
-
muted
"></span>
<? else:?>
<span class="
glyphicon
glyphicon
-
resize
-
horizontal
text
-
success
"></span>
<?php endif; ?>
<?php endif; ?>
</td>
<td class="
listlr
" id="
frd
<?=
$nnats
;
?>
" ondblclick="document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment