diff options
author | levinse <levinse> | 2011-01-11 02:03:44 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-11 02:03:44 +0000 |
commit | 7934ac2de21debc15ce89405ed0f4c061c4f0236 (patch) | |
tree | d9f4b60aaeff4218d7defe0768b0dcb97a3f1403 /httemplate | |
parent | fe8e7c0c921936a0ccdea06dcf380e8076748b72 (diff) |
Vitelity API improvements for toll-free and vfax, RT11009
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/select-did.html | 14 |
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; |