Hello!

I'm trying to use Catalyst::Controller::HTML::FormFu

Code is quite simple for this time
=== from controller ===
sub add : Local FormConfig {
   my ($self, $c) = @_;
   my $form : Stashed;
}
=== cut ===

=== TT template ===
[% META title = 'Add user' %]
[% Form.render %]
=== cut ===

=== YML template ===
---
elements:
 - type: Text
   name: login
   label: 'Login:'
 - type: Password
   name: pass1
   label: 'Password:'
 - type: Password
   name: pass2
   label: 'Repeat password:'
 - type: Submit

=== cut ===

However, form does not get rendered. form.render works, but should Form.render be better?

And can I produce much nicer forms as FormBuilder do by default?

Alex.


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to