diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-03-24 13:16:41 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-03-24 13:16:41 -0700 |
commit | 172673b3aef143dc426603689d37b65394c4fe1d (patch) | |
tree | 7d7af6c967411dbb4ccabfe6746b487a71eb6224 /httemplate/browse/contact_class.html | |
parent | 5c4da92af240d4a5d7f39e2478e344693817d5b7 (diff) |
enhance contacts: contact classes, RT#16819
Diffstat (limited to 'httemplate/browse/contact_class.html')
-rw-r--r-- | httemplate/browse/contact_class.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/browse/contact_class.html b/httemplate/browse/contact_class.html new file mode 100644 index 0000000..88df24b --- /dev/null +++ b/httemplate/browse/contact_class.html @@ -0,0 +1,34 @@ +<% include( 'elements/browse.html', + 'title' => 'Contact classes', + 'html_init' => $html_init, + 'name' => 'contact classes', + 'disableable' => 1, + 'disabled_statuspos' => 1, + 'query' => { 'table' => 'contact_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 = + 'Contact classes define types for contacts.<BR><BR>'. + qq!<A HREF="${p}edit/contact_class.html"><I>Add a contact class</I></A><BR><BR>!; + +my $count_query = 'SELECT COUNT(*) FROM contact_class'; + +my $link = [ $p.'edit/contact_class.html?', 'classnum' ]; + +my $header = [ '#', 'Class' ]; +my $fields = [ 'classnum', 'classname' ]; +my $links = [ $link, $link ]; + +</%init> |