X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fnas.html;h=8e6232cdb3a729045c5e5b2551664fe3451b6e5f;hb=a16891c16e0ddd389b32963b638cdfeadf86c447;hp=64d722e529d365f15de87e0968e033af5ea6e0d3;hpb=1ee0b1290d186a706a256ca72347dc746c6c6688;p=freeside.git diff --git a/httemplate/edit/nas.html b/httemplate/edit/nas.html index 64d722e52..8e6232cdb 100644 --- a/httemplate/edit/nas.html +++ b/httemplate/edit/nas.html @@ -8,7 +8,7 @@ 'secret' => 'Shared secret', 'type' => 'Type', 'ports' => 'Ports', - 'server' => 'Server', + 'server' => 'Virtual server', 'community' => 'Community', 'description' => 'Description', }, @@ -25,8 +25,7 @@ { field=>'community', size=>40, maxlength=>50 }, { field=>'description', size=>100, maxlength=>200 }, ], - 'html_bottom' => '* '. - emt('required fields'). '
', + 'html_bottom' => \&html_bottom, 'new_hashref_callback' => sub { +{ 'type' => 'other', 'secret' => 'secret', 'description' => 'RADIUS Client', @@ -38,4 +37,26 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +sub html_bottom { + my $nas = shift; + '* '. + emt('required fields'). '

'. + ''.emt('Export to these RADIUS servers:'). + '
'. + + include('/elements/checkboxes-table.html', + 'source_obj' => $nas, + 'link_table' => 'export_nas', + 'target_table' => 'part_export', + 'hashref' => { 'exporttype' => + { op => 'LIKE', value => '%sqlradius%' } + }, + 'name_callback' => sub { $_[0]->label }, + 'default' => 'yes', + 'target_link' => $p.'edit/part_export.cgi?', + 'disable-able' => 1, + ) +} + +