X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_export.cgi;h=9a0e0bd29899d0416e90365414380f1e7f392fb5;hb=bda8c33f9b346ba6cd7aa4174ce0d3e37db7bd49;hp=a2fad56a3cf0fbf2bcc1554983a8581fee8fc0ee;hpb=03870c8fda3909d8aeb9d7120bc1debc3935f1c3;p=freeside.git diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index a2fad56a3..9a0e0bd29 100644 --- a/httemplate/edit/part_export.cgi +++ b/httemplate/edit/part_export.cgi @@ -7,6 +7,12 @@ <% ntable("#cccccc",2) %> + Export name + + + + + Export host @@ -53,7 +59,7 @@ my $widget = new HTML::Widgets::SelectLayers( 'options' => \%layers, 'form_name' => 'dummy', 'form_action' => 'process/part_export.cgi', - 'form_text' => [qw( exportnum machine )], + 'form_text' => [qw( exportnum exportname machine )], # 'form_checkbox' => [qw()], 'html_between' => "\n", 'layer_callback' => sub { @@ -133,6 +139,26 @@ my $widget = new HTML::Widgets::SelectLayers( $html .= ''; } } + + if ( $exports->{$layer}{nas} and qsearch('nas',{}) ) { + # show NAS checkboxes + $html .= 'Export RADIUS clients'; + + $html .= include('/elements/checkboxes-table.html', + 'source_obj' => $part_export, + 'link_table' => 'export_nas', + 'target_table' => 'nas', + #hashref => {}, + 'name_callback' => sub { + $_[0]->shortname . ' (' . $_[0]->nasname . ')', + }, + 'default' => 'yes', + 'target_link' => $p.'edit/nas.html?', + ); + + $html .= ''; + } + $html .= ''; $html .= '