--- lib/A3C/View.pm 2008/04/01 19:44:31 57 +++ lib/A3C/View.pm 2008/04/10 21:33:37 71 @@ -9,12 +9,8 @@ use Data::Dump qw/dump/; -template '/skole' => page { - h1 { _('Schools in system') }; - show 'skole_sve'; -}; - -private template 'skole_sve' => sub { +template 'ldap' => page { + h1 { _('LDAP data about Schools in system') }; my $ldap = A3C::LDAP->new; div { $ldap->search( @@ -36,13 +32,18 @@ } }; -template '/search-users' => page { +template 'people' => page { + + h1 { _('Find people') } my $action = new_action( - class => 'SearchUser', - moniker => 'search-users' + class => 'SearchPerson', + moniker => 'search-users', + sticky_on_success => 1, + sticky_on_failure => 1, ); + form { render_action( $action => [ 'uid_contains', 'cn_contains' ] ); form_submit( label => _('Find someone') ); @@ -64,7 +65,9 @@ }; -template '/sync' => page { +template 'sync' => page { + + h1 { _('Sync school from LDAP') } my $action = new_action( class => 'SyncOrganization',