[freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.10, 1.11 edit.html, 1.43, 1.44
Ivan,,,
ivan at wavetail.420.am
Mon Mar 1 11:29:21 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv20158/httemplate/edit/elements
Modified Files:
svc_Common.html edit.html
Log Message:
enable manual selection from inventory dropdowns for svc_broadband, svc_external & svc_phone, RT#7010
Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -w -d -r1.43 -r1.44
--- edit.html 30 Jan 2010 07:38:32 -0000 1.43
+++ edit.html 1 Mar 2010 19:29:18 -0000 1.44
@@ -284,7 +284,7 @@
%
% #select-table, checkboxes-table
% $include_common{$_} = $f->{$_}
-% foreach grep exists($f->{$_}), qw( table name_col );
+% foreach grep exists($f->{$_}), qw( table name_col value_col );
%
% #checkboxes-table
% $include_common{$_} = $f->{$_}
Index: svc_Common.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/svc_Common.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- svc_Common.html 13 Feb 2010 02:53:43 -0000 1.10
+++ svc_Common.html 1 Mar 2010 19:29:18 -0000 1.11
@@ -64,6 +64,16 @@
$f->{'value'} = $columndef->columnvalue;
} elsif ( $flag eq 'A' ) {
$f->{'type'} = 'hidden';
+ } elsif ( $flag eq 'M' ) {
+ $f->{'type'} = 'select-table';
+ $f->{'table'} = 'inventory_item';
+ $f->{'name_col'} = 'item';
+ $f->{'value_col'} = 'item';
+ $f->{'hashref'} = {
+ 'classnum' => $columndef->columnvalue,
+ 'svcnum' => '',
+ };
+ $f->{'empty_label'} = 'Select inventory item';
}
if ( $f->{'type'} eq 'select-svc_pbx' ) {
More information about the freeside-commits
mailing list