logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: [FormBuilder] name template variable for Catalyst::Plugin::FormBuilder: msg#00021

Subject: Re: [FormBuilder] name template variable for Catalyst::Plugin::FormBuilder
> So we can loop through from general to specific, set up the 
> forms with conf files, get a hash for forms and the most 
> specific one is still named 'form' for the template.

    sub edit : Local Form(/books/edit,/searchform) {

OK, so, now it works, I think.  If you specify multiple forms, 
the first becomes 'form' and all of them are available in 
'forms'.

It makes 'forms' multi-level, so '/books/edit' would be 
available as $c->forms->{books}->{edit} or in the template as 
forms.books.edit. 

Please let me know what you think.  I haven't written tests.

Mark

Attachment: Catalyst_Plugin_FormBuilder_multipleforms.diff
Description: Catalyst_Plugin_FormBuilder_multipleforms.diff

Attachment: FormBuilder.pm
Description: FormBuilder.pm

_______________________________________________
FBusers mailing list
FBusers@xxxxxxxxxxxxxxx
http://www.formbuilder.org/mailman/listinfo/fbusers

Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>