RT #29800: converting the DID range from numeric to string to maintain leading zeroes
[freeside.git] / httemplate / browse / part_svc_class.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Service classes',
3                  'html_init'   => $html_init,
4                  'name'        => 'service classes',
5                  'disableable' => 1,
6                  'disabled_statuspos' => 1,
7                  'query'       => { 'table'     => 'part_svc_class',
8                                     'hashref'   => {},
9                                     'order_by' => 'ORDER BY classnum',
10                                   },
11                  'count_query' => $count_query,
12                  'header'      => $header,
13                  'fields'      => $fields,
14                  'links'       => $links,
15              )
16 %>
17 <%init>
18
19 die "access denied"
20   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
21
22 my $html_init = 
23   'Service classes are user-defined, informational types for services.<BR><BR>'.
24   qq!<A HREF="${p}edit/part_svc_class.html"><I>Add a service class</I></A><BR><BR>!;
25
26 my $count_query = 'SELECT COUNT(*) FROM part_svc_class';
27
28 my $link = [ $p.'edit/part_svc_class.html?', 'classnum' ];
29
30 my $header = [ '#', 'Class' ];
31 my $fields = [ 'classnum', 'classname' ];
32 my $links  = [ $link, $link ];
33
34 </%init>