NAME

Maypole::FormBuilder::Model::Base

METHODS

setup_form_mode

Returns a form spec for the selected form mode. The mode defaults to $r->action. You can set a different mode in the args hash to the as_form call. Mostly, this method is responsible for setting the action parameter of the form.

Override this in model classes to configure custom modes, and call

$proto->SUPER::setup_form_mode( $r, $args )

in the custom method if it doesn't know the mode.

Modes supported here are:

list
addnew
addnew_to_editlist
search
do_search

Exported Methods

view

Just sets the view template.

edit

Just sets the edit template.

AUTHOR

David Baird, <cpan@riverside-cms.co.uk>

BUGS

Please report any bugs or feature requests to bug-maypole-formbuilder@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Maypole-FormBuilder. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2005 David Baird, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.