summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-06-06 21:49:26 -0700
committerMark Wells <mark@freeside.biz>2013-06-06 21:49:26 -0700
commit9e431d19bdbc1194db6dcef31d1317cbf2a2176c (patch)
tree1632bc3bc88af786676fa93c83a910d1b6976fb2 /httemplate/edit
parent5b95c313db51d90197c76d3d644290c66e80149b (diff)
restore select-hardware field behavior, from #21442
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/elements/part_svc_column.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/httemplate/edit/elements/part_svc_column.html b/httemplate/edit/elements/part_svc_column.html
index fbea9bd6d..1c5b45314 100644
--- a/httemplate/edit/elements/part_svc_column.html
+++ b/httemplate/edit/elements/part_svc_column.html
@@ -207,15 +207,20 @@ that field.
NAME="<%$name%>"
ID="<%$name%>"
VALUE="<%$value%>">
-% # inventory class selection
+% my $mode = 'inventory';
+% my $multiple = 1;
+% if ( $def->{'type'} eq 'select-hardware' ) {
+% $mode = 'hardware';
+% $multiple = 0;
+% }
<& /elements/select-table.html,
'field' => $name.'_classnum',
'id' => $name.'_select',
- 'table' => 'inventory_class',
+ 'table' => $mode.'_class',
'name_col' => 'classname',
'curr_value' => $value,
- 'empty_label' => 'Select inventory class',
- 'multiple' => 1,
+ 'empty_label' => "Select $mode class",
+ 'multiple' => 0,
&>
% }
</TD>