This commit was generated by cvs2svn to compensate for changes in r6252,
[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 = "<% $value |h %>"
9                                <% $size %>
10                                <% $maxlength %>
11                                <% $align %>
12                                <% $onchange %>
13                         ><% $opt{'postfix'} %>
14
15   </TD>
16
17 </TR>
18
19 <%init>
20
21 my %opt = @_;
22
23 my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
24
25 my $onchange = $opt{'onchange'}
26                  ? 'onChange="'. $opt{'onchange'}. '(this)"'
27                  : '';
28
29 my $size = $opt{'size'}
30              ? 'SIZE="'. $opt{'size'}. '"'
31              : '';
32
33 my $maxlength = $opt{'maxlength'}
34                 ? 'MAXLENGTH="'. $opt{'maxlength'}. '"'
35                 : '';
36
37 my $align = $opt{'text-align'}
38                 ? 'STYLE="text-align: '. $opt{'text-align'}. '"'
39                 : '';
40
41
42 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
43
44 </%init>