[freeside-commits] freeside/httemplate/elements select-did.html, 1.7, 1.7.4.1 select-phonenum.html, 1.2, 1.2.8.1
Erik Levinson
levinse at wavetail.420.am
Mon Dec 20 22:26:18 PST 2010
- Previous message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi myaccount_menu.html, 1.15.4.1, 1.15.4.2 provision_svc_phone.html, NONE, 1.1.2.2 selfservice.cgi, 1.46.2.5, 1.46.2.6 ws_list.html, 1.1.2.4, 1.1.2.5
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.409, 1.410 agent.pm, 1.23, 1.24 cust_pay_pending.pm, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv32092/httemplate/elements
Modified Files:
Tag: FREESIDE_2_1_BRANCH
select-did.html select-phonenum.html
Log Message:
self-service improvements: DIDs, RT10885
Index: select-phonenum.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-phonenum.html,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -u -w -d -r1.2 -r1.2.8.1
--- select-phonenum.html 29 Jun 2008 20:53:34 -0000 1.2
+++ select-phonenum.html 21 Dec 2010 06:26:16 -0000 1.2.8.1
@@ -58,6 +58,25 @@
//run the callback
if ( callback != null )
callback();
+
+ var phonenum_sel = what.form.<% $opt{'prefix'} %>phonenum;
+ var bulkdid = document.getElementById('bulkdid');
+ if ( bulkdid != null ) {
+ var numCheckboxes = Math.min(phonenum_sel.options.length-1,<% $opt{'bulknum'} %>);
+ var i;
+ for(i = 0; i < numCheckboxes; i++){
+ document.getElementById('bulkdid_'+i).style.display = 'block';
+ var tn = phonenum_sel.options[i+1].value;
+ document.getElementById('checkbox_bulkdid_'+i).value = tn;
+ document.getElementById('label_bulkdid_'+i).innerHTML = tn;
+ }
+ for(i = numCheckboxes; i < <% $opt{'bulknum'} %>; i++){
+ document.getElementById('bulkdid_'+i).style.display = 'none';
+ document.getElementById('checkbox_bulkdid_'+i).value = '';
+ document.getElementById('label_bulkdid_'+i).innerHTML = '';
+ }
+ }
+
}
// go get the new phonenums
Index: select-did.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-did.html,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -u -w -d -r1.7 -r1.7.4.1
--- select-did.html 26 Mar 2010 22:25:36 -0000 1.7
+++ select-did.html 21 Dec 2010 06:26:16 -0000 1.7.4.1
@@ -44,6 +44,7 @@
<% include('/elements/select-phonenum.html',
'svcpart' => $svcpart,
'empty' => 'Select phone number',
+ 'bulknum' => $bulknum,
)
%>
</TD>
@@ -57,6 +58,19 @@
</TR>
</TABLE>
+% if ( $bulknum ) {
+ <div id="bulkdid" style="padding-top: 11px">
+% my $i;
+% for($i=0; $i < $bulknum; $i++) {
+ <div id="bulkdid_<%$i%>" style="display: none">
+ <input type="checkbox" id="checkbox_bulkdid_<%$i%>"
+ name="bulkdid" value="">
+ <label for="checkbox_bulkdid_<%$i%>"
+ id="label_bulkdid_<%$i%>"></label>
+ </div>
+% }
+ </div>
+% }
% } else {
@@ -86,6 +100,8 @@
my $use_selector = scalar(@exports) ? 1 : 0;
+my $bulknum = $opt{'bulknum'} || 0;
+
#my $field = $opt{'field'} || 'phonenum';
</%init>
- Previous message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi myaccount_menu.html, 1.15.4.1, 1.15.4.2 provision_svc_phone.html, NONE, 1.1.2.2 selfservice.cgi, 1.46.2.5, 1.46.2.6 ws_list.html, 1.1.2.4, 1.1.2.5
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.409, 1.410 agent.pm, 1.23, 1.24 cust_pay_pending.pm, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list