From 6b3d54f7bd4c461652128e781ce3b4224dbf05d8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 20 May 2005 00:50:17 +0000 Subject: [PATCH] r161: - Show descriptions on PCV select - Do not show select radio buttons on product/component select, only version - Underline formatting for both products and components in PCV select --- docs/todo.txt | 1 - includes/functions.php | 14 ++++++++++---- templates/default/pcv_select_row.tpl | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/todo.txt b/docs/todo.txt index 4e857e2..7ddd717 100755 --- a/docs/todo.txt +++ b/docs/todo.txt @@ -8,7 +8,6 @@ BUGTRACK 1.0 ---------------------------------------- ADMINISTRATION ---------------------------------------- -- PCV descriptions - Admin auto-actions - Custom bug fields - Put either inline admin help or a "what this does" description on each of the widget pages diff --git a/includes/functions.php b/includes/functions.php index e4a21ab..dc30d3d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -156,8 +156,9 @@ function construct_pcv_select($select = '', $prefix = '    & $row['prefix'] = ''; $valuepfx = "p$product[productid]"; $row['value'] = "{$valuepfx}c0v0"; - $row['title'] = "$product[title]"; - $row['description'] = ''; + $row['title'] = "$product[title]"; + $row['description'] = $product['description']; + $show['input'] = false; eval('$HTML .= "' . $bugsys->template->fetch('pcv_select_row') . '";'); $HTML .= construct_pcv_select_global_version($product['productid'], 0, $versions, $prefix, $select); if (is_array($versions["$product[productid]"])) @@ -168,6 +169,8 @@ function construct_pcv_select($select = '', $prefix = '    & $row['value'] = "{$valuepfx}c0v$version[versionid]"; $row['title'] = $version['version']; $row['selected'] = (($select == $row['value']) ? $selected : ''); + $row['description'] = ''; + $show['input'] = true; eval('$HTML .= "' . $bugsys->template->fetch('pcv_select_row') . '";'); } } @@ -180,14 +183,16 @@ function construct_pcv_select($select = '', $prefix = '    & $valuepfx .= "c$component[productid]"; $row['value'] = "{$valuepfx}v0"; $row['selected'] = (($select == $row['value']) ? $selected : ''); - $row['title'] = $component['title']; - $row['description'] = ''; + $row['title'] = "$component[title]"; + $row['description'] = $component['description']; + $show['input'] = false; eval('$HTML .= "' . $bugsys->template->fetch('pcv_select_row') . '";'); $HTML .= construct_pcv_select_global_version($component['componentmother'], $component['productid'], $versions, $prefix, $select); if (is_array($versions["$component[productid]"])) { foreach ($versions["$component[productid]"] AS $version) { + $show['input'] = true; $row['prefix'] = $prefix . $prefix; $row['value'] = "{$valuepfx}v$version[versionid]"; $row['selected'] = (($select == $row['value']) ? $selected : ''); @@ -217,6 +222,7 @@ function construct_pcv_select_global_version($product = 0, $component = 0, $vers $row['selected'] = (($select == $row['value']) ? ' checked="checked"' : ''); $row['title'] = $version['version']; $row['description'] = ''; + $show['input'] = true; eval('$global_versions_html .= "' . $bugsys->template->fetch('pcv_select_row') . '";'); } } diff --git a/templates/default/pcv_select_row.tpl b/templates/default/pcv_select_row.tpl index c453805..b017afb 100755 --- a/templates/default/pcv_select_row.tpl +++ b/templates/default/pcv_select_row.tpl @@ -1 +1 @@ -$row[prefix] $row[title]: $row[description]
+$row[prefix] $row[title]: $row[description]
-- 2.43.5