summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2010-07-15 21:47:03 +0000
committerivan <ivan>2010-07-15 21:47:03 +0000
commit96a5362009cade1872f5de8cab41951c6ee57ef9 (patch)
treebf2887c068e7845adb2b6b7060525f58d5d854c5 /httemplate/browse
parentb4191ff558b141b8f9a4374b0d3f0ce6312d4439 (diff)
customer tags, RT#9192
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/part_tag.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/httemplate/browse/part_tag.html b/httemplate/browse/part_tag.html
new file mode 100644
index 000000000..3bb166199
--- /dev/null
+++ b/httemplate/browse/part_tag.html
@@ -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>