X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=062c98a80191044b2e53eeb12d04343a0dd79eb5;hb=f7e5e7625b04164ce2e0aac77a85bc03a7d48a6f;hp=fcc5adc2b41f9b290910451c62e51f0ee2bb1a10;hpb=b153693eaaf58e5af5f454e40f9ec169128f6d92;p=freeside.git
diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html
index fcc5adc2b..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 {
@@ -70,7 +86,9 @@ 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;
@@ -82,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>