X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-text.html;h=c8bec5ea6704ec21fcb64435c8306ffc9f181ed9;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=ac21cb577fdcd9327adbcbdc39f56995009b6bbb;hpb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;p=freeside.git diff --git a/httemplate/elements/tr-input-text.html b/httemplate/elements/tr-input-text.html index ac21cb577..c8bec5ea6 100644 --- a/httemplate/elements/tr-input-text.html +++ b/httemplate/elements/tr-input-text.html @@ -5,10 +5,12 @@ <% $opt{'prefix'} %> + <% $maxlength %> + <% $align %> <% $onchange %> - > + ><% $opt{'postfix'} %> @@ -18,6 +20,8 @@ my %opt = @_; +my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value}; + my $onchange = $opt{'onchange'} ? 'onChange="'. $opt{'onchange'}. '(this)"' : ''; @@ -26,6 +30,15 @@ my $size = $opt{'size'} ? 'SIZE="'. $opt{'size'}. '"' : ''; +my $maxlength = $opt{'maxlength'} + ? 'MAXLENGTH="'. $opt{'maxlength'}. '"' + : ''; + +my $align = $opt{'text-align'} + ? 'STYLE="text-align: '. $opt{'text-align'}. '"' + : ''; + + my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';