1 <% include( 'elements/browse.html',
2 'title' => 'Customer tags',
3 'name_singular' => 'customer tag',
4 'menubar' => [ 'Add a new customer tag' =>
5 $p.'edit/part_tag.html',
7 'query' => { 'table' => 'part_tag', },
8 'count_query' => 'SELECT COUNT(*) FROM part_tag',
9 'header' => [ 'Tag', 'Message', ],
10 'fields' => [ 'tagname', 'tagdesc', ],
11 'links' => [ $link, '', ],
12 'cell_style' => [ '', $tagdesc_style ],
14 'disabled_statuspos' => 1,
20 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
22 my $tagdesc_style = sub { 'background-color:#'.shift->tagcolor };
24 my $link = [ "${p}edit/part_tag.html?", 'tagnum' ];