--- lib/A3C/View.pm 2008/04/12 10:29:30 83 +++ lib/A3C/View.pm 2008/05/20 09:47:59 122 @@ -13,13 +13,13 @@ h1 { _('Statistics') } - my $orgs = A3C::Model::OrganizationCollection->new; + my $orgs = A3C::Model::hrEduOrgCollection->new; $orgs->unlimit; dt { _('Number of schools in system') } dd { $orgs->count } - my $people = A3C::Model::PersonCollection->new; + my $people = A3C::Model::hrEduPersonCollection->new; $people->unlimit; dt { _('Number of persons in system') } @@ -27,7 +27,7 @@ my $by_towns = A3C::SQL->new({ query => qq{ select count(uid),l - from organizations + from hr_edu_orgs inner join towns on towns.name = l group by l order by count desc @@ -48,7 +48,7 @@ count(uid) as schools, county, count(distinct municipality) as municipalities - from organizations + from hr_edu_orgs inner join towns on towns.name = l group by county order by schools desc @@ -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') ); };