[freeside-commits] freeside/fs_selfservice/FS-SelfService SelfService.pm, 1.33, 1.34
Ivan,,,
ivan at wavetail.420.am
Mon Jul 21 12:09:37 PDT 2008
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService
In directory wavetail.420.am:/tmp/cvs-serv26500/fs_selfservice/FS-SelfService
Modified Files:
SelfService.pm
Log Message:
signup w/globalpops DID selection via mason components pass-through
Index: SelfService.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/SelfService.pm,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- SelfService.pm 27 Jun 2008 08:53:13 -0000 1.33
+++ SelfService.pm 21 Jul 2008 19:09:35 -0000 1.34
@@ -57,6 +57,7 @@
'agent_logout' => 'Agent/agent_logout',
'agent_info' => 'Agent/agent_info',
'agent_list_customers' => 'Agent/agent_list_customers',
+ 'mason_comp' => 'MasonComponent/mason_comp',
);
@EXPORT_OK = ( keys(%autoload), qw( regionselector expselect popselector domainselector didselector) );
@@ -1412,7 +1413,7 @@
return '<INPUT TYPE="hidden" NAME="domsvc" VALUE="">'
unless scalar(keys %$domains);
-
+
if (scalar(keys %$domains) == 1) {
my $key;
foreach(keys %$domains) {
@@ -1443,6 +1444,10 @@
=over 4
+=item field
+
+=item svcpart
+
=back
Returns an HTML fragment for DID selection.
@@ -1457,7 +1462,12 @@
$param = { @_ };
}
- return "choose your DID XXX";
+ my $rv = mason_comp( 'comp'=>'/elements/select-did.html',
+ 'args'=>[ %$param ],
+ );
+
+ #hmm.
+ $rv->{'error'} || $rv->{'output'};
}
More information about the freeside-commits
mailing list