summaryrefslogtreecommitdiff
path: root/httemplate/browse/cust_note_class.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/browse/cust_note_class.html')
-rw-r--r--httemplate/browse/cust_note_class.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/browse/cust_note_class.html b/httemplate/browse/cust_note_class.html
new file mode 100644
index 0000000..f5d450b
--- /dev/null
+++ b/httemplate/browse/cust_note_class.html
@@ -0,0 +1,34 @@
+<% include( 'elements/browse.html',
+ 'title' => 'Customer note classes',
+ 'html_init' => $html_init,
+ 'name' => 'customer note classes',
+ 'disableable' => 1,
+ 'disabled_statuspos' => 2,
+ 'query' => { 'table' => 'cust_note_class',
+ 'hashref' => {},
+ 'order_by' => 'ORDER BY classnum',
+ },
+ 'count_query' => $count_query,
+ 'header' => $header,
+ 'fields' => $fields,
+ 'links' => $links,
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $html_init =
+ 'Customer note classes define groups of notes for reporting.<BR><BR>'.
+ qq!<A HREF="${p}edit/cust_note_class.html"><I>Add a customer note class</I></A><BR><BR>!;
+
+my $count_query = 'SELECT COUNT(*) FROM cust_note_class';
+
+my $link = [ $p.'edit/cust_note_class.html?', 'classnum' ];
+
+my $header = [ '#', 'Class' ];
+my $fields = [ 'classnum', 'classname' ];
+my $links = [ $link, $link ];
+
+</%init>