in reply to Re: HTML::FormHandler rendering
in thread HTML::FormHandler rendering (somewhat SOLVED)
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:
And I have no clue how to add the legend tag.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;
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: HTML::FormHandler rendering
by Anonymous Monk on May 15, 2010 at 23:53 UTC | |
by CountZero (Bishop) on May 16, 2010 at 07:54 UTC |