customer tags, RT#9192
[freeside.git] / httemplate / browse / part_tag.html
diff --git a/httemplate/browse/part_tag.html b/httemplate/browse/part_tag.html
new file mode 100644 (file)
index 0000000..3bb1661
--- /dev/null
@@ -0,0 +1,23 @@
+<% 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', 'Description', 'Color' ],
+              'fields'        => [ 'tagname', 'tagdesc', 'tagcolor' ],
+              'links'         => [ $link, '', '' ],
+              'disableable'   => 1,
+              'disabled_statuspos' => 1,
+          )
+%>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $link = [ "${p}edit/part_tag.html?", 'tagnum' ];
+
+</%init>