1 % if ( $columnflag eq 'F' ) {
3 % } elsif ( $use_selector ) {
4 % my $servers = $exports[0]->get_sip_servers;
5 % # pretty simple selector, they're all just hostnames/IP addresses
11 <& tr-input-text.html, %opt &>
18 my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
20 $opt{'field'} ||= 'sip_server';
22 #false laziness w/select-did.html
23 #XXX make sure this comes through on errors too
24 my $svcpart = $opt{'svcpart'}
25 || $opt{'object'}->svcpart
26 || $opt{'object'}->cust_svc->svcpart;
28 my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } );
29 die "unknown svcpart $svcpart" unless $part_svc;
32 my $psc = $part_svc->part_svc_column($opt{'field'});
34 $columnflag = $psc->columnflag;
37 my @exports = $part_svc->part_export_did;
38 if ( scalar(@exports) > 1 ) {
39 die "more than one DID-providing export attached to svcpart $svcpart";
44 if ( $exports[0] and $exports[0]->can('get_sip_servers') ) {