summaryrefslogtreecommitdiff
path: root/httemplate/edit/elements/svc_Common.html
diff options
context:
space:
mode:
authorivan <ivan>2010-03-01 19:29:19 +0000
committerivan <ivan>2010-03-01 19:29:19 +0000
commit5b29227d64e62b6f056c4bcec0a3e0a82269a3e5 (patch)
tree9a093dd76ac07557689370a73b6b75c42d28defb /httemplate/edit/elements/svc_Common.html
parentc03e828b32cd5a4fd264f89d42a80a02edbfb5ea (diff)
enable manual selection from inventory dropdowns for svc_broadband, svc_external & svc_phone, RT#7010
Diffstat (limited to 'httemplate/edit/elements/svc_Common.html')
-rw-r--r--httemplate/edit/elements/svc_Common.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/edit/elements/svc_Common.html b/httemplate/edit/elements/svc_Common.html
index 6173ba7f1..0ffb4319f 100644
--- a/httemplate/edit/elements/svc_Common.html
+++ b/httemplate/edit/elements/svc_Common.html
@@ -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' ) {