DNS, RT#8933
[freeside.git] / httemplate / browse / part_device.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Phone device types',
3                  'name'        => 'phone device types',
4                  'menubar'     => [ 'Add a new device type' =>
5                                       $p.'edit/part_device.html',
6                                     'Import device types' =>
7                                       $p.'misc/part_device-import.html',
8                                   ],
9                  'query'       => { 'table' => 'part_device', },
10                  'count_query' => 'SELECT COUNT(*) FROM part_device',
11                  'header'      => [ '#', 'Device type' ],
12                  'fields'      => [ 'devicepart',
13                                     'devicename',
14                                   ],
15                  'links'       => [ $link,
16                                     $link,
17                                   ],
18              )
19 %>
20 <%init>
21
22 die "access denied"
23   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
24
25 my $link = [ "${p}edit/part_device.html?", 'devicepart' ];
26
27 </%init>