1 <% include( 'elements/browse.html',
2 'title' => 'Hardware Statuses',
3 'name' => 'hardware statuses',
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 ],
16 my $curuser = $FS::CurrentUser::CurrentUser;
19 unless $curuser->access_right('Configuration');
21 my $menubar = [ 'Hardware classes' => $p.'browse/hardware_class.html',
22 'Add a status' => $p.'edit/hardware_status.html' ];
24 my $link = [ "${p}edit/hardware_status.html?", 'statusnum' ];