X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=a69450c2a43e1405ce4b02c92847fec2bed55906;hb=aed8ec35ccb9cdeb7ea0cb6ff2946f9d83d582f6;hp=17eac4850dc7ea8562d9fb9b5cb9ea3f287a03cb;hpb=47fc30a4f3961e2bdc90dbd2c2a2389ef3ef3663;p=freeside.git diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index 17eac4850..a69450c2a 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -18,47 +18,46 @@ Example: - - - - - - - - - - -
+ <% include('/elements/select-state.html', 'prefix' => 'phonenum_', #$field.'_', 'country' => $country, + 'svcpart' => $svcpart, 'disable_empty' => 0, 'empty_label' => 'Select state', ) %> +
State
+ <% include('/elements/select-areacode.html', 'state_prefix' => 'phonenum_', #$field.'_', 'svcpart' => $svcpart, 'empty' => 'Select area code', ) %> +
Area code
+ <% include('/elements/select-exchange.html', 'svcpart' => $svcpart, 'empty' => 'Select exchange', ) %> +
City / Exchange
+ <% include('/elements/select-phonenum.html', - 'svcpart' => $svcpart, - 'empty' => 'Select phone number', - 'bulknum' => $bulknum, + 'svcpart' => $svcpart, + 'empty' => 'Select phone number', + 'bulknum' => $bulknum, + 'multiple' => $multiple, ) %> +
Phone number
StateArea codeCity / ExchangePhone number
% } @@ -113,12 +112,13 @@ my @exports = $part_svc->part_export_did; if ( scalar(@exports) > 1 ) { die "more than one DID-providing export attached to svcpart $svcpart"; } -my $export = '' +my $export = ''; $export = $exports[0] if scalar(@exports); my $use_selector = scalar(@exports) ? 1 : 0; -my $bulknum = $opt{'bulknum'} || 0; +my $bulknum = $opt{'bulknum'} || 0; #Bulk DID orders via ordering system, vs. +my $multiple = $opt{'multiple'} || 0; #just selecting a bunch at a time my $country = ( $export && $export->option('country') ) || $conf->config('countrydefault')