diff options
Diffstat (limited to 'httemplate/elements/tr-input-text.html')
-rw-r--r-- | httemplate/elements/tr-input-text.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/httemplate/elements/tr-input-text.html b/httemplate/elements/tr-input-text.html new file mode 100644 index 000000000..ac21cb577 --- /dev/null +++ b/httemplate/elements/tr-input-text.html @@ -0,0 +1,31 @@ +<% include('tr-td-label.html', @_ ) %> + + <TD <% $style %>> + + <% $opt{'prefix'} %><INPUT TYPE = "<% $opt{type} || 'text' %>" + NAME = "<% $opt{field} %>" + ID = "<% $opt{id} %>" + VALUE = "<% $opt{curr_value} || $opt{value} %>" + <% $size %> + <% $onchange %> + > + + </TD> + +</TR> + +<%init> + +my %opt = @_; + +my $onchange = $opt{'onchange'} + ? 'onChange="'. $opt{'onchange'}. '(this)"' + : ''; + +my $size = $opt{'size'} + ? 'SIZE="'. $opt{'size'}. '"' + : ''; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + +</%init> |