--- lib/A3C/View.pm 2008/05/20 09:47:59 122 +++ lib/A3C/View.pm 2008/06/03 15:32:14 149 @@ -116,11 +116,13 @@ if ( my $search = $action->result->content('search') ) { div { sprintf(_('Found %d results'), $search->count ) } - ol { + table { while (my $user = $search->next) { - li { - span { $user->cn } - tt { $user->uid } + row { + cell { $user->cn } + cell { tt { $user->uid } } + cell { tt { $user->hrEduPersonUniqueID } } + cell { $user->hrEduPersonHomeOrg } } } } @@ -154,3 +156,18 @@ } }; + +# 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', +}; + +use A3C::View::Strix; +alias A3C::View::Strix under '/strix'; + +1;