[freeside-commits] freeside/httemplate/elements select-did.html, 1.9, 1.10

Erik Levinson levinse at wavetail.420.am
Mon Jan 10 18:03:46 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv26210/httemplate/elements

Modified Files:
	select-did.html 
Log Message:
Vitelity API improvements for toll-free and vfax, RT11009

Index: select-did.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-did.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- select-did.html	10 Jan 2011 19:44:43 -0000	1.9
+++ select-did.html	11 Jan 2011 02:03:44 -0000	1.10
@@ -13,6 +13,9 @@
 </%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 @@
 
     </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 @@
 
 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;
 



More information about the freeside-commits mailing list