summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2010-07-17 21:41:48 +0000
committerivan <ivan>2010-07-17 21:41:48 +0000
commita98cd4637716d783c20bb08d903978d06abf9d31 (patch)
treefa5c8ec0a7829d82dfee3e77c487480a58150b64 /httemplate/browse
parent556b8e9650155e74416496238cfc0e4abe64c53a (diff)
customer tags, RT#9192
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/part_tag.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/browse/part_tag.html b/httemplate/browse/part_tag.html
index 3bb166199..d0ef72ec3 100644
--- a/httemplate/browse/part_tag.html
+++ b/httemplate/browse/part_tag.html
@@ -6,9 +6,10 @@
],
'query' => { 'table' => 'part_tag', },
'count_query' => 'SELECT COUNT(*) FROM part_tag',
- 'header' => [ 'Tag', 'Description', 'Color' ],
- 'fields' => [ 'tagname', 'tagdesc', 'tagcolor' ],
- 'links' => [ $link, '', '' ],
+ 'header' => [ 'Tag', 'Message', ],
+ 'fields' => [ 'tagname', 'tagdesc', ],
+ 'links' => [ $link, '', ],
+ 'cell_style' => [ '', $tagdesc_style ],
'disableable' => 1,
'disabled_statuspos' => 1,
)
@@ -18,6 +19,8 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my $tagdesc_style = sub { 'background-color:#'.shift->tagcolor };
+
my $link = [ "${p}edit/part_tag.html?", 'tagnum' ];
</%init>