1 <% include('elements/svc_Common.html',
5 'svc_callback' => $svc_cb,
6 'html_foot' => $html_foot,
10 my $conf = new FS::Conf;
11 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
13 my $fields = FS::svc_dsl->table_info->{'fields'};
14 my %labels = map { $_ => ( ref($fields->{$_})
15 ? $fields->{$_}{'label'}
19 my @fields = keys %$fields;
28 my( $cgi,$svc_x, $part_svc,$cust_pkg, $fields1,$opt) = @_;
30 my @exports = $part_svc->part_export_dsl_pull;
31 die "more than one DSL-pulling export attached to svcpart ".$part_svc->svcpart
32 if ( scalar(@exports) > 1 );
34 # if no DSL-pulling exports, then just display everything, which is the
35 # default behaviour implemented above
36 return if ( scalar(@exports) == 0 );
38 $opt->{'disable_unprovision'} = 1;
39 my $exporttype = @exports[0]->exporttype;
43 @fields = qw( svctn first last company username password );
45 if($exporttype eq 'ikano') {
46 push @fields, 'isp_chg';
47 push @fields, 'isp_prev';
48 push @fields, 'staticips';
54 # hack against "can't use string ... as a subroutine ref while 'strict refs' in use"
55 my $statusSub = \&{'FS::part_export::'.$exporttype.'::status_line'};
56 my $statusLine = &$statusSub($svc_x,$date_format,"<BR>");
58 $footer = "<B>$statusLine</B>";