2 'name_singular' => 'RADIUS client',
4 'viewall_dir' => 'browse',
5 'labels' => { 'nasnum' => 'NAS',
6 'nasname' => 'Hostname',
7 'shortname' => 'Short name',
8 'secret' => 'Shared secret',
11 'server' => 'Virtual server',
12 'community' => 'Community',
13 'description' => 'Description',
16 { field=> 'nasname', required=>1, size=>40, maxlength=>128 },
17 { field=>'shortname', size=>16, maxlength=>32 },
18 { field=>'secret', size=>40, maxlength=>60, required=>1 },
19 { field=>'type', type=>'select',
20 options=>[qw( cisco computone livingston max40xx multitech netserver
21 pathras patton portslave tc usrhiper other )],
23 { field=>'ports', size=>5 },
24 { field=>'server', size=>40, maxlength=>64 },
25 { field=>'community', size=>40, maxlength=>50 },
26 { field=>'description', size=>100, maxlength=>200 },
28 'html_bottom' => \&html_bottom,
29 'new_hashref_callback' => sub { +{ 'type' => 'other',
31 'description' => 'RADIUS Client',
38 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
42 '<font color="#ff0000">*</font> '.
43 emt('required fields'). '<BR><BR>'.
44 '<FONT SIZE="+1"><B>'.emt('Export to these RADIUS servers:').
47 include('/elements/checkboxes-table.html',
49 'link_table' => 'export_nas',
50 'target_table' => 'part_export',
51 'hashref' => { 'exporttype' =>
52 { op => 'LIKE', value => '%sqlradius' }
54 'name_callback' => sub { $_[0]->label },
56 'target_link' => $p.'edit/part_export.cgi?',