davewood/catalystx-resource — pull request #2 by marcelgruenauer (2013-01-24 23:19:54+00:00)
Title: Also pass "ctx => $c" to the form

So it's possible to set the submit button's value depending on whether it's a create or an update:

sub field_list {
[ submit => { type => 'Submit', value =>
$_[0]->ctx->stash->{set_create_msg} ? 'Create' : 'Update' }
]
}