summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2010-09-21 12:27:15 +0200
committerWarren Baker <warren@decoy.co.za>2010-09-21 12:27:15 +0200
commit4ff99fcbc37eb22a76f96f9170232866cfa504a3 (patch)
treeab544f784ffabb2a57748591ad59b17a906a64d7 /usr/local/www/pkg.php
parent7773b86862383dfe5366b1e697738515bedd3980 (diff)
downloadpfsense-4ff99fcbc37eb22a76f96f9170232866cfa504a3.zip
pfsense-4ff99fcbc37eb22a76f96f9170232866cfa504a3.tar.gz
If column['fieldname'] is a description then change html class to listbg to conform to rest of GUI description table columns.
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-xusr/local/www/pkg.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index 52e6fe3..cecf81a 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -319,10 +319,14 @@ if ($pkg['tabs'] <> "") {
echo "<tr valign=\"top\">\n";
if($pkg['adddeleteeditpagefields']['columnitem'] <> "")
foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) {
+ if ($column['fieldname'] == "description")
+ $class = "listbg";
+ else
+ $class = "listlr";
?>
- <td class="listlr" ondblclick="document.location='pkg_edit.php?xml=<?=$xml?>&act=edit&id=<?=$i;?>';">
+ <td class="<?=$class;?>" ondblclick="document.location='pkg_edit.php?xml=<?=$xml?>&act=edit&id=<?=$i;?>';">
<?php
- $fieldname = $ip[xml_safe_fieldname($column['fieldname'])];
+ $fieldname = $ip[xml_safe_fieldname($column['fieldname'])];
if($column['type'] == "checkbox") {
if($fieldname == "") {
echo gettext("No");
OpenPOWER on IntegriCloud