NAME
App::Manoc::ControllerRole::ObjectForm - Role for editing objects with a form
VERSION
version 2.99.3
ACTIONS
object_form_create
object_form_edit
object_form
Private action which handle creation and editing of resources. Form defaults can be injected using form_defaults in stash. Form is created by get_form method unless already set in stash->{form}.
object_form_ajax_response
object_form_delete
Private action which handle deleting of resources.
object_form_delete_ajax_response
METHODS
get_form
Create a new form using form_class configuration parameter.
get_form_success_url
Get the URL to redirect after successful editing. Use form_success_url or try to use the view action in the current namespace.
delete_object
Delete the object using its delete
method.
get_delete_failure_url
Default is the view action in current namespace.
get_delete_success_url
Default is the list action in current namespace.
AUTHORS
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.