Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 77037
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: h.dudeness [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.40007
Fixed in: (no value)



Subject: Label class
Download (untitled) / with headers
text/plain 794b
HTML::FormHandler::Widget::Wrapper::Bootstrap perl5 (revision 5 version 8 subversion 8) 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux Has adding attributes to labels changed? I have tried: has_field 'email' => ( type => 'Email', required => 1, html_attr => { class => '{required:true}' }, label_attr => { class => [ 'required' ] } ); and has_field 'email' => ( type => 'Email', required => 1, html_attr => { class => '{required:true}' }, label_class => 'required' ); and has_field 'email' => ( type => 'Email', required => 1, html_attr => { class => '{required:true}' }, label_class => ['required'] ); None seem to output the class with HTML::FormHandler::Widget::Wrapper::Bootstrap
Subject: Re: [rt.cpan.org #77037] Label class
Date: Mon, 07 May 2012 15:12:07 -0400
To: bug-HTML-FormHandler [...] rt.cpan.org
From: Gerda Shank <gerda.shank [...] gmail.com>
Download (untitled) / with headers
text/plain 156b
The 'Bootstrap' wrapper never did support customizing the label. However I've added that in the repo and it will be available in the next release. Gerda
From: h.dudeness [...] gmail.com
Download (untitled) / with headers
text/plain 736b
On Mon May 07 15:12:18 2012, gerda.shank@gmail.com wrote: Show quoted text
> The 'Bootstrap' wrapper never did support customizing the label. However > I've added that in the repo and it will be available in the next release. > > Gerda >
Thanks for taking the time to respond. Is there a mailing list that I can use because I am not sure if this is a bug. after_element does not seem to render with with 'HTML::FormHandler::Widget::Wrapper::Bootstrap'; has '+widget_wrapper' => ( default => 'Bootstrap' ); I tried this: has_field 'first_name' => ( type => 'Text', label => 'First Name', required => 1, html_attr => { class => '{required:true}' }, css_class => 'required', after_element => sub { return 'test'; } );
Download (untitled) / with headers
text/plain 239b
'after_element' is a tag and must be set with a tag: has_field 'first_name' => ( type => 'Text', label => 'First Name', required => 1, tags => { after_element => sub { return 'test'; } } );


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.