X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_tag.html;h=d0ef72ec30cd86f559d651e9eadf12e1916f59d5;hb=e9d56cd986f6ecf67c766d091ddc8cd74e8b91cd;hp=3bb166199edfdb3443286dc1d6c1fac392857fb1;hpb=27ca7447dd2ef3fc35767a1494d0b1c0f0c2d79b;p=freeside.git 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' ];