diff options
author | Phil Davis <phil@jankaritech.com> | 2017-05-19 13:40:27 +0545 |
---|---|---|
committer | Phil Davis <phil@jankaritech.com> | 2017-05-19 13:40:27 +0545 |
commit | f0dc8b688c2b7d973bc18769579ee8cc6d3d2dad (patch) | |
tree | 269f55bbee4cbdc3bf9ecc77a926e6f79e309372 /src/usr/local/www/firewall_nat_out_edit.php | |
parent | ee8f5c6a4719aac90b9cd58371ceb7370fb50131 (diff) | |
download | pfsense-f0dc8b688c2b7d973bc18769579ee8cc6d3d2dad.zip pfsense-f0dc8b688c2b7d973bc18769579ee8cc6d3d2dad.tar.gz |
Make consistent rule information section
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_out_edit.php | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php index cc12353..e6720c0 100644 --- a/src/usr/local/www/firewall_nat_out_edit.php +++ b/src/usr/local/www/firewall_nat_out_edit.php @@ -684,34 +684,7 @@ $section->addInput(new Form_Input( $form->add($section); -$has_created_time = (isset($a_out[$id]['created']) && is_array($a_out[$id]['created'])); -$has_updated_time = (isset($a_out[$id]['updated']) && is_array($a_out[$id]['updated'])); - -if ($has_created_time || $has_updated_time) { - $section = new Form_Section('Rule Information'); - - if ($has_created_time) { - $section->addInput(new Form_StaticText( - 'Created', - sprintf( - gettext('%1$s by %2$s'), - date(gettext("n/j/y H:i:s"), $a_out[$id]['created']['time']), - $a_out[$id]['created']['username']) - )); - } - - if ($has_updated_time) { - $section->addInput(new Form_StaticText( - 'Updated', - sprintf( - gettext('%1$s by %2$s'), - date(gettext("n/j/y H:i:s"), $a_out[$id]['updated']['time']), - $a_out[$id]['updated']['username']) - )); - } - - $form->add($section); -} +gen_created_updated_fields($form, $a_out[$id]['created'], $a_out[$id]['updated']); print($form); |