X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_tag.html;h=b899fd3d008db690b38410a9734f8e6ab73fb2a6;hp=3bb166199edfdb3443286dc1d6c1fac392857fb1;hb=0549def83bcba56e53482ea0f33472e18b215649;hpb=130c7801e718d55c500e9f777112f51905cad060 diff --git a/httemplate/browse/part_tag.html b/httemplate/browse/part_tag.html index 3bb166199..b899fd3d0 100644 --- a/httemplate/browse/part_tag.html +++ b/httemplate/browse/part_tag.html @@ -1,14 +1,15 @@ <% include( 'elements/browse.html', - 'title' => 'Tags', - 'name_singular' => 'tag', - 'menubar' => [ 'Add a new tag' => + 'title' => 'Customer tags', + 'name_singular' => 'customer tag', + 'menubar' => [ 'Add a new customer tag' => $p.'edit/part_tag.html', ], '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' ];