diff options
author | heper <heper@users.noreply.github.com> | 2015-10-03 19:50:03 +0200 |
---|---|---|
committer | heper <heper@users.noreply.github.com> | 2015-10-03 19:50:03 +0200 |
commit | dda43901f5ec558938d3fa1ce13e7857ca334d27 (patch) | |
tree | 8aa2cf60021061da87b180ee00942a49217653f9 /src/usr/local/www/firewall_aliases_edit.php | |
parent | 44fad9cc86fb89f51466c8524c87ebf5cbd869a5 (diff) | |
download | pfsense-dda43901f5ec558938d3fa1ce13e7857ca334d27.zip pfsense-dda43901f5ec558938d3fa1ce13e7857ca334d27.tar.gz |
cosmetic changes
attempt to address https://forum.pfsense.org/index.php?topic=100232.0
Diffstat (limited to 'src/usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-x | src/usr/local/www/firewall_aliases_edit.php | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php index b2940a9..885182f 100755 --- a/src/usr/local/www/firewall_aliases_edit.php +++ b/src/usr/local/www/firewall_aliases_edit.php @@ -564,6 +564,16 @@ $section_str = array( 'urltable' => gettext("URL Table (IPs)"), 'urltable_ports' => gettext("URL Table (Ports)") ); + +$btn_str = array( + 'network' => gettext("Network"), + 'host' => gettext("Host"), + 'port' => gettext("Port"), + 'url' => gettext("URL"), + 'url_ports' => gettext("URL"), + 'urltable' => gettext("URL Table)"), + 'urltable_ports' => gettext("URL Table") + ); $label_str = array( 'network' => gettext("Network or FQDN"), @@ -700,16 +710,16 @@ while ($counter < count($addresses)) { $group->add(new Form_IpAddress( 'address' . $counter, - null, + 'Address', $address ))->addMask('address_subnet' . $counter, $address_subnet)->setWidth(4)->setPattern('[0-9, a-z, A-Z and .'); $group->add(new Form_Input( 'detail' . $counter, - null, + 'Description', 'text', $details[$counter] - ))->setHelp('Description')->setWidth(4); + ))->setWidth(4); $group->add(new Form_Button( 'deleterow' . $counter, @@ -722,7 +732,7 @@ while ($counter < count($addresses)) { $form->addGlobal(new Form_Button( 'addrow', - 'Add host' + $btn_str[$tab] ))->removeClass('btn-primary')->addClass('btn-success'); $form->add($section); @@ -745,7 +755,10 @@ events.push(function(){ // Set the section heading by tab type var sectionstr = <?php echo json_encode($section_str); ?>; $('.panel-title:last').text(sectionstr[tab]); - + + var buttonstr = <?php echo json_encode($btn_str); ?>; + $('.btn-success').prop('value', buttonstr[tab]); + // Set the input field label by tab var labelstr = <?php echo json_encode($label_str); ?>; $('.repeatable:first').find('label').text(labelstr[tab]); |