summaryrefslogtreecommitdiff
path: root/httemplate/browse/hardware_status.html
blob: 9695ed39989bd6ca3964b53157eef93f59e255ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% include( 'elements/browse.html',
                 'title'       => 'Hardware Statuses',
                 'name'        => 'hardware statuses',
                 'menubar'     => $menubar,
                 'query'       => { 'table' => 'hardware_status', },
                 'count_query' => 'SELECT COUNT(*) FROM hardware_status',
                 'header'      => [ '#', 'Status' ],
                 'fields'      => [ 'statusnum', 'label' ],
                 'links'       => [ $link, $link ],
             )
%>
<%init>

my $curuser = $FS::CurrentUser::CurrentUser;

die "access denied"
  unless $curuser->access_right('Configuration');

my $menubar = [ 'Hardware classes' => $p.'browse/hardware_class.html',
                'Add a status' => $p.'edit/hardware_status.html' ];

my $link = [ "${p}edit/hardware_status.html?", 'statusnum' ];

</%init>