]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Template/Plugin/L.pm
button_tag nicht als input_tag implementieren
[mfinanz.git] / SL / Template / Plugin / L.pm
index eff4548488d009e39ca861367f39e4f15c886954..320c75ed218ca6f83a6ccdabe955f75436b4eddf 100644 (file)
@@ -196,7 +196,10 @@ sub button_tag {
   my ($self, $onclick, $value, @slurp) = @_;
   my %attributes = _hashify(@slurp);
 
-  return $self->input_tag(undef, $value, %attributes, type => 'button', onclick => $onclick);
+  $attributes{id}   ||= $self->name_to_id($attributes{name}) if $attributes{name};
+  $attributes{type} ||= 'button';
+
+  return $self->html_tag('input', undef, %attributes, value => $value, onclick => $onclick);
 }
 
 sub options_for_select {