Thank you. That is a nice trick.But I did go through the source code myself already and it indeed seems there is some way of adding a <legend> tag, but the question is how? What I have now is: package MyApp::Form::Book;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Model::DBIC';
use namespace::autoclean;
has '+item_class' => ( default =>'Books' );
has '+name' => ( default => 'book_form' );
has_field 'title' => ( minlength => 5, maxlength => 40, required => 1,
+ css_class => 'my-css-class' );
has_field 'rating' => ( type => 'Integer', range_start => 1, range_end
+ => 5 );
has_field 'authors' => ( type => 'Multiple', label_column => 'last_nam
+e', required => 1 );
has_field 'submit' => ( type => 'Submit', value => 'Submit' );
__PACKAGE__->meta->make_immutable;
1;
And I have no clue how to add the legend tag.
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|