summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-input-text.html
diff options
context:
space:
mode:
authorivan <ivan>2008-06-28 23:03:10 +0000
committerivan <ivan>2008-06-28 23:03:10 +0000
commit9c7dee35f91a386fcce14cb6c3e9d23ba3eee8af (patch)
treeb21b3ca250947289caaecdeba659bc37257bf464 /httemplate/elements/tr-input-text.html
parenta1871d3d13c1dafa93b956762c0d23728d261da7 (diff)
get DIDs from globalpops
Diffstat (limited to 'httemplate/elements/tr-input-text.html')
-rw-r--r--httemplate/elements/tr-input-text.html44
1 files changed, 1 insertions, 43 deletions
diff --git a/httemplate/elements/tr-input-text.html b/httemplate/elements/tr-input-text.html
index f71f2f7..14f1425 100644
--- a/httemplate/elements/tr-input-text.html
+++ b/httemplate/elements/tr-input-text.html
@@ -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 <% $cell_style %>><% include('input-text.html', @_ ) %></TD>
</TR>
@@ -21,35 +8,6 @@
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'}. '"' : '';
</%init>