diff options
Diffstat (limited to 'httemplate/elements/tr-textarea.html')
-rw-r--r-- | httemplate/elements/tr-textarea.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/httemplate/elements/tr-textarea.html b/httemplate/elements/tr-textarea.html new file mode 100644 index 000000000..ae2ef81b6 --- /dev/null +++ b/httemplate/elements/tr-textarea.html @@ -0,0 +1,30 @@ +<% include('tr-td-label.html', @_ ) %> + + <TD <% $cell_style %>> + + <TEXTAREA NAME = "<% $opt{field} %>" + ID = "<% $opt{id} %>" + <% $rows %> + <% $cols %> + <% $onchange %> + ><% $curr_value |h %></TEXTAREA> + + </TD> + +</TR> + +<%init> + +my %opt = @_; + +my $onchange = $opt{'onchange'} + ? 'onChange="'. $opt{'onchange'}. '(this)"' + : ''; + +my $rows = $opt{'rows'} ? 'ROWS="'.$opt{'rows'}.'"' : ''; +my $cols = $opt{'cols'} ? 'COLS="'.$opt{'cols'}.'"' : ''; + +my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; +my $curr_value = $opt{'curr_value'}; + +</%init> |