X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-text.html;h=21279339e57193090675c0b9bc4d39068222c92f;hp=f71f2f7fb768417f622dc8d294a3363be7ca0bd4;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hpb=477015901c379f8cd6ba46cfaa4a9ae284ae582d diff --git a/httemplate/elements/tr-input-text.html b/httemplate/elements/tr-input-text.html index f71f2f7fb..21279339e 100644 --- a/httemplate/elements/tr-input-text.html +++ b/httemplate/elements/tr-input-text.html @@ -1,19 +1,6 @@ <% include('tr-td-label.html', @_ ) %> - > - - <% $opt{'prefix'} %> - <% $maxlength %> - <% $style %> - <% $opt{disabled} %> - <% $onchange %> - ><% $opt{'postfix'} %> - - + <% $cell_style %> ID="<% $opt{input_id} || $opt{id}.'_input0' %>"><% include('input-text.html', @_ ) %> @@ -21,35 +8,8 @@ my %opt = @_; -my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value}; - -my $onchange = $opt{'onchange'} - ? 'onChange="'. $opt{'onchange'}. '(this)"' - : ''; - -my $size = $opt{'size'} - ? 'SIZE="'. $opt{'size'}. '"' - : ''; - -my $maxlength = $opt{'maxlength'} - ? 'MAXLENGTH="'. $opt{'maxlength'}. '"' - : ''; - -$opt{'disabled'} = &{ $opt{'disabled'} }( \%opt ) - if ref($opt{'disabled'}) eq 'CODE'; -$opt{'disabled'} = 'DISABLED' - if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah? - -my @style = (); - -push @style, 'text-align: '. $opt{'text-align'} - if $opt{'text-align'}; - -push @style, 'background-color: #dddddd' - if $opt{'disabled'}; - -my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : ''; - my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; +my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : ''; +