event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / tr-input-text.html
1 <% include('tr-td-label.html', @_ ) %>
2
3   <TD <% $style %>>
4
5     <% $opt{'prefix'} %><INPUT TYPE  = "<% $opt{type} || 'text' %>"
6                                NAME  = "<% $opt{field} %>"
7                                ID    = "<% $opt{id} %>"
8                                VALUE = "<% $opt{curr_value} || $opt{value} %>"
9                                <% $size %>
10                                <% $onchange %>
11                         >
12
13   </TD>
14
15 </TR>
16
17 <%init>
18
19 my %opt = @_;
20
21 my $onchange = $opt{'onchange'}
22                  ? 'onChange="'. $opt{'onchange'}. '(this)"'
23                  : '';
24
25 my $size = $opt{'size'}
26              ? 'SIZE="'. $opt{'size'}. '"'
27              : '';
28
29 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
30
31 </%init>