From 51e350319a224c3212ab9406da7ecf3ebe8f285d Mon Sep 17 00:00:00 2001 From: levinse Date: Tue, 11 Jan 2011 02:03:45 +0000 Subject: Vitelity API improvements for toll-free and vfax, RT11009 --- httemplate/elements/select-did.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'httemplate') 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: % if ( $use_selector ) { +% if ( $export->exporttype eq 'vitelity' && +% ( $export->option('restrict_selection') eq 'non-tollfree' +% || !$export->option('restrict_selection')) ) { @@ -59,8 +62,11 @@ Example:
-% if ( $tollfree ) { - or toll-free +% } +% if ( $export->exporttype eq 'vitelity' && +% ( $export->option('restrict_selection') eq 'tollfree' +% || !$export->option('restrict_selection')) ) { + Toll-free <% 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; -- cgit v1.2.1