customer tags, RT#9192
[freeside.git] / httemplate / browse / part_tag.html
1 <% include( 'elements/browse.html',
2               'title'         => 'Tags',
3               'name_singular' => 'tag',
4               'menubar'       => [ 'Add a new tag' =>
5                                      $p.'edit/part_tag.html',
6                                  ],
7               'query'         => { 'table' => 'part_tag', },
8               'count_query'   => 'SELECT COUNT(*) FROM part_tag',
9               'header'        => [ 'Tag', 'Description', 'Color' ],
10               'fields'        => [ 'tagname', 'tagdesc', 'tagcolor' ],
11               'links'         => [ $link, '', '' ],
12               'disableable'   => 1,
13               'disabled_statuspos' => 1,
14           )
15 %>
16 <%init>
17
18 die "access denied"
19   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
20
21 my $link = [ "${p}edit/part_tag.html?", 'tagnum' ];
22
23 </%init>