enable CardFortress in test database, #71513
[freeside.git] / httemplate / browse / nas.html
1 <& elements/browse.html,
2      'title'              => 'RADIUS clients',
3      'name_singular'      => 'RADIUS client',
4      'query'              => { 'table' => 'nas', },
5      'count_query'        => 'SELECT COUNT(*) FROM nas',
6      'header'             => [ 'Hostname', 'Short name', #'Shared secret',
7                                'Type', 'Ports', 'Server', 'Community',
8                                'Description',
9                              ],
10      'fields'             => [ 'nasname',
11                                'shortname',
12                                #'secret',
13                                'type',
14                                'ports',
15                                'server',
16                                'community',
17                                'description',
18                              ],
19      'links'               => [ $link, $link ],
20      'align'               => 'lllrlll',
21      'add_link'            => 1,
22      #'disableable'        => 1,
23      #'disabled_statuspos' => 2,
24      #All options from /search/elements/search.html are available.
25 &>
26 <%init>
27
28 die "access denied"
29   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
30
31 my $link = sub {
32   my $nas = shift;
33   if ( $nas->svcnum ) {
34     return [ $p.'view/svc_broadband.cgi?', 'svcnum' ];
35   }
36   else {
37     return [ $p.'edit/nas.html?', 'nasnum' ];
38   }
39 };
40
41 </%init>