Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / elements / tr-input-text.html
index 49ae166..2127933 100644 (file)
@@ -1,19 +1,6 @@
 <% include('tr-td-label.html', @_ ) %>
 
-  <TD <% $cell_style %>>
-
-    <% $opt{'prefix'} %><INPUT TYPE  = "<% $opt{type} || 'text' %>"
-                               NAME  = "<% $opt{field} %>"
-                               ID    = "<% $opt{id} %>"
-                               VALUE = "<% $value |h %>"
-                               <% $size %>
-                               <% $maxlength %>
-                               <% $style %>
-                               <% $opt{disabled} %>
-                               <% $onchange %>
-                        ><% $opt{'postfix'} %>
-
-  </TD>
+  <TD <% $colspan %> <% $cell_style %> ID="<% $opt{input_id} || $opt{id}.'_input0' %>"><% include('input-text.html', @_ ) %></TD>
 
 </TR>
 
@@ -21,33 +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'}. '"'
-                : '';
-
-my @style = ();
-
-push @style, 'text-align: '. $opt{'text-align'}
-  if $opt{'text-align'};
-
-push @style, 'background-color: #dddddd'
-  if $opt{'disabled'};
-
-$opt{'disabled'} = 'DISABLED'
-  if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
-
-my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';
-
 my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
 
+my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : '';
+
 </%init>