This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / httemplate / browse / hardware_status.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Hardware Statuses',
3                  'name'        => 'hardware statuses',
4                  'menubar'     => $menubar,
5                  'query'       => { 'table' => 'hardware_status', },
6                  'count_query' => 'SELECT COUNT(*) FROM hardware_status',
7                  'header'      => [ '#', 'Status' ],
8                  'fields'      => [ 'statusnum', 'label' ],
9                  'links'       => [ $link, $link ],
10              )
11 %>
12 <%init>
13
14 my $curuser = $FS::CurrentUser::CurrentUser;
15
16 die "access denied"
17   unless $curuser->access_right('Configuration');
18
19 my $menubar = [ 'Hardware classes' => $p.'browse/hardware_class.html',
20                 'Add a status' => $p.'edit/hardware_status.html' ];
21
22 my $link = [ "${p}edit/hardware_status.html?", 'statusnum' ];
23
24 </%init>