summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-11 02:03:45 +0000
committerlevinse <levinse>2011-01-11 02:03:45 +0000
commit51e350319a224c3212ab9406da7ecf3ebe8f285d (patch)
tree97bf7361e5e0075134913553fa7379aa30fd9174 /httemplate
parent8d2c52788f3af69c1c0da7c6c884918eef3b24ec (diff)
Vitelity API improvements for toll-free and vfax, RT11009
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/select-did.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html
index 546d90e8d..5256ae44d 100644
--- a/httemplate/elements/select-did.html
+++ b/httemplate/elements/select-did.html
@@ -13,6 +13,9 @@ Example:
</%doc>
% if ( $use_selector ) {
+% if ( $export->exporttype eq 'vitelity' &&
+% ( $export->option('restrict_selection') eq 'non-tollfree'
+% || !$export->option('restrict_selection')) ) {
<TABLE>
<TR>
@@ -59,8 +62,11 @@ Example:
</TABLE>
-% if ( $tollfree ) {
- or toll-free
+% }
+% if ( $export->exporttype eq 'vitelity' &&
+% ( $export->option('restrict_selection') eq 'tollfree'
+% || !$export->option('restrict_selection')) ) {
+ <font size="-1">Toll-free</font>
<% include('/elements/select-phonenum.html',
'svcpart' => $svcpart,
'empty' => 'Select phone number',
@@ -113,8 +119,8 @@ if ( scalar(@exports) > 1 ) {
my $use_selector = scalar(@exports) ? 1 : 0;
-my $tollfree = 0;
-$tollfree = 1 if (scalar(@exports) && $exports[0]->exporttype eq 'vitelity');
+my $export;
+$export = $exports[0] if scalar(@exports);
my $bulknum = $opt{'bulknum'} || 0;