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