diff options
Diffstat (limited to 'httemplate/browse/part_tag.html')
-rw-r--r-- | httemplate/browse/part_tag.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/httemplate/browse/part_tag.html b/httemplate/browse/part_tag.html new file mode 100644 index 0000000..d0ef72e --- /dev/null +++ b/httemplate/browse/part_tag.html @@ -0,0 +1,26 @@ +<% include( 'elements/browse.html', + 'title' => 'Tags', + 'name_singular' => 'tag', + 'menubar' => [ 'Add a new tag' => + $p.'edit/part_tag.html', + ], + 'query' => { 'table' => 'part_tag', }, + 'count_query' => 'SELECT COUNT(*) FROM part_tag', + 'header' => [ 'Tag', 'Message', ], + 'fields' => [ 'tagname', 'tagdesc', ], + 'links' => [ $link, '', ], + 'cell_style' => [ '', $tagdesc_style ], + 'disableable' => 1, + 'disabled_statuspos' => 1, + ) +%> +<%init> + +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> |