--- lib/A3C/View.pm 2008/05/15 19:08:08 120 +++ lib/A3C/View.pm 2008/05/22 20:48:42 125 @@ -100,7 +100,7 @@ h1 { _('Find people') } my $action = new_action( - class => 'SearchPerson', + class => 'SearchhrEduPerson', moniker => 'search-users', sticky_on_success => 1, sticky_on_failure => 1, @@ -138,7 +138,7 @@ ); form { - render_action( $action => [ 'cn' ] ); + render_action( $action => [ 'org_uid' ] ); form_submit( label => _('Sync Organization') ); }; @@ -154,3 +154,15 @@ } }; + +# mount other views +use A3C::View::Organization; + +# we can't really use following form because Jifty would upper case first +# letter of model and try to find A3C::Model::HrEduOrg which doesn't exit! +#Jifty::View::Declare::CRUD->mount_view('hrEduOrg', 'A3C::View::Organization', '/organizations'); +alias A3C::View::Organization under '/organizations', { + object_type => 'hrEduOrg', +}; + +1;