diff options
author | Warren Baker <warren@decoy.co.za> | 2010-09-21 12:27:15 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2010-09-21 12:27:15 +0200 |
commit | 4ff99fcbc37eb22a76f96f9170232866cfa504a3 (patch) | |
tree | ab544f784ffabb2a57748591ad59b17a906a64d7 /usr/local/www/pkg.php | |
parent | 7773b86862383dfe5366b1e697738515bedd3980 (diff) | |
download | pfsense-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-x | usr/local/www/pkg.php | 8 |
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"); |