projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b95c31
)
restore select-hardware field behavior, from #21442
author
Mark Wells
<mark@freeside.biz>
Fri, 7 Jun 2013 04:49:26 +0000
(21:49 -0700)
committer
Mark Wells
<mark@freeside.biz>
Fri, 7 Jun 2013 04:49:26 +0000
(21:49 -0700)
httemplate/edit/elements/part_svc_column.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/elements/part_svc_column.html
b/httemplate/edit/elements/part_svc_column.html
index
fbea9bd
..
1c5b453
100644
(file)
--- 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%>">
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',
<& /elements/select-table.html,
'field' => $name.'_classnum',
'id' => $name.'_select',
- 'table' =>
'inventory
_class',
+ 'table' =>
$mode.'
_class',
'name_col' => 'classname',
'curr_value' => $value,
'name_col' => 'classname',
'curr_value' => $value,
- 'empty_label' =>
'Select inventory class'
,
- 'multiple' =>
1
,
+ 'empty_label' =>
"Select $mode class"
,
+ 'multiple' =>
0
,
&>
% }
</TD>
&>
% }
</TD>