moving to tabsets and ordered everything

This commit is contained in:
Doug Bell 2009-11-17 14:00:07 -06:00
parent 631f6ad267
commit db785fbc02
5 changed files with 48 additions and 38 deletions

View file

@ -119,18 +119,21 @@ Return the HTML for the form
=cut
override 'toHtml' => sub {
sub toHtml {
my ( $self ) = @_;
my @attrs = qw{ action method name enctype };
my $attrs = join " ", map { qq{$_="} . $self->$_ . qq{"} } grep { $self->$_ } @attrs;
my $html = sprintf '<form %s>', $attrs;
$html .= super();
# Add individual objects
$html .= join "", map { $_->toHtml } @{$self->objects};
$html .= '</form>';
return $html;
};
}
#----------------------------------------------------------------------------