projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enable manual selection from inventory dropdowns for svc_broadband, svc_external...
[freeside.git]
/
httemplate
/
edit
/
elements
/
edit.html
diff --git
a/httemplate/edit/elements/edit.html
b/httemplate/edit/elements/edit.html
index
fd73e03
..
5f41ba0
100644
(file)
--- a/
httemplate/edit/elements/edit.html
+++ b/
httemplate/edit/elements/edit.html
@@
-40,8
+40,10
@@
Example:
'disabled' => 0,
'onchange' => 'javascript_function',
'disabled' => 0,
'onchange' => 'javascript_function',
- #m2 stuff only tested w/selectlayers so far
- #might work w/select too, dunno others
+ 'include_opt_callback' => sub { #my $ = @_;
+ ( 'option' => 'value', );
+ },
+
'm2name_table' => 'table_name',
'm2name_namecol' => 'name_column',
#OR#
'm2name_table' => 'table_name',
'm2name_namecol' => 'name_column',
#OR#
@@
-278,7
+280,7
@@
Example:
%
% #select-table, checkboxes-table
% $include_common{$_} = $f->{$_}
%
% #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->{$_}
%
% #checkboxes-table
% $include_common{$_} = $f->{$_}
@@
-293,6
+295,10
@@
Example:
% $include_common{'colspan'} = $f->{colspan} if $f->{colspan};
% }
%
% $include_common{'colspan'} = $f->{colspan} if $f->{colspan};
% }
%
+% if ( $f->{include_opt_callback} ) {
+% %include_common = ( %include_common, &{ $f->{include_opt_callback} } );
+% }
+%
% my $layer_prefix_on = '';
%
% my $include_sub = sub {
% my $layer_prefix_on = '';
%
% my $include_sub = sub {