X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=062c98a80191044b2e53eeb12d04343a0dd79eb5;hb=0b1c458214a23b0ae3d8b8926989341e69468ff3;hp=069516476f35711952d9171a6f8cf5c523d3fa7c;hpb=d8cb6cd67cc574c90dbbfbd8db2da6711c516d65;p=freeside.git
diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html
index 069516476..062c98a80 100644
--- a/httemplate/elements/select-did.html
+++ b/httemplate/elements/select-did.html
@@ -3,7 +3,7 @@
Example:
include('/elements/select-did.html',
- 'field' => 'phonenum',
+ #can't actuall change from phonenum yet# 'field' => 'phonenum',
'svcpart' => 5,
#OR
@@ -18,6 +18,7 @@ Example:
<% include('/elements/select-state.html',
+ 'prefix' => 'phonenum_', #$field.'_',
'country' => $country,
'disable_empty' => 0,
'empty_label' => 'Select state',
@@ -26,8 +27,9 @@ Example:
|
<% include('/elements/select-areacode.html',
- 'svcpart' => $svcpart,
- 'empty' => 'Select area code',
+ 'state_prefix' => 'phonenum_', #$field.'_',
+ 'svcpart' => $svcpart,
+ 'empty' => 'Select area code',
)
%>
|
@@ -42,6 +44,7 @@ Example:
<% include('/elements/select-phonenum.html',
'svcpart' => $svcpart,
'empty' => 'Select phone number',
+ 'bulknum' => $bulknum,
)
%>
@@ -55,6 +58,19 @@ Example:
+% if ( $bulknum ) {
+
+% my $i;
+% for($i=0; $i < $bulknum; $i++) {
+
+
+
+
+% }
+
+% }
% } else {
@@ -68,8 +84,11 @@ my %opt = @_;
my $conf = new FS::Conf;
my $country = $conf->config('countrydefault') || 'US';
+#false laziness w/tr-select-did.html
#XXX make sure this comes through on errors too
-my $svcpart = $opt{'svcpart'} || $opt{'object'}->svcpart;
+my $svcpart = $opt{'svcpart'}
+ || $opt{'object'}->svcpart
+ || $opt{'object'}->cust_svc->svcpart;
my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } );
die "unknown svcpart $svcpart" unless $part_svc;
@@ -81,4 +100,8 @@ if ( scalar(@exports) > 1 ) {
my $use_selector = scalar(@exports) ? 1 : 0;
+my $bulknum = $opt{'bulknum'} || 0;
+
+#my $field = $opt{'field'} || 'phonenum';
+
%init>