projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE...
[freeside.git]
/
httemplate
/
elements
/
select-table.html
diff --git
a/httemplate/elements/select-table.html
b/httemplate/elements/select-table.html
index
9f26a35
..
3f6c880
100644
(file)
--- a/
httemplate/elements/select-table.html
+++ b/
httemplate/elements/select-table.html
@@
-9,6
+9,7
@@
Example:
##
'table' => 'table_name',
'name_col' => 'name_column', #or method if you pass an order_by
##
'table' => 'table_name',
'name_col' => 'name_column', #or method if you pass an order_by
+ # order_by is currently broken, though
#strongly recommended (you want your forms to be "sticky" on errors, right?)
'curr_value' => 'current_value',
#strongly recommended (you want your forms to be "sticky" on errors, right?)
'curr_value' => 'current_value',
@@
-70,6
+71,7
@@
Example:
NAME = "<% $opt{'element_name'} || $opt{'field'} || $key %>"
ID = "<% $opt{'id'} || $key %>"
<% $onchange %>
NAME = "<% $opt{'element_name'} || $opt{'field'} || $key %>"
ID = "<% $opt{'id'} || $key %>"
<% $onchange %>
+ <% $size %>
<% $opt{'element_etc'} %>
>
<% $opt{'element_etc'} %>
>
@@
-88,6
+90,7
@@
Example:
<OPTION VALUE=""><% $opt{'empty_label'} || 'all' %>
% }
<OPTION VALUE=""><% $opt{'empty_label'} || 'all' %>
% }
+% # XXX fix this eventually, when we have time to test it
% foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
% || $a->$key() <=> $b->$key()
% }
% foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
% || $a->$key() <=> $b->$key()
% }
@@
-212,4
+215,6
@@
unless ( !ref($value) && $value < 1 # !$value #ignore negatives too
my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : ();
my @post_options = $opt{post_options} ? @{ $opt{post_options} } : ();
my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : ();
my @post_options = $opt{post_options} ? @{ $opt{post_options} } : ();
+my $size = $opt{'size'} ? 'SIZE=' . $opt{'size'} : '';
+
</%init>
</%init>