116 |
|
|
117 |
if ( my $search = $action->result->content('search') ) { |
if ( my $search = $action->result->content('search') ) { |
118 |
div { sprintf(_('Found %d results'), $search->count ) } |
div { sprintf(_('Found %d results'), $search->count ) } |
119 |
ol { |
table { |
120 |
while (my $user = $search->next) { |
while (my $user = $search->next) { |
121 |
li { |
row { |
122 |
span { $user->cn } |
cell { $user->cn } |
123 |
tt { $user->uid } |
cell { tt { $user->uid } } |
124 |
|
cell { tt { $user->hrEduPersonUniqueID } } |
125 |
|
cell { $user->hrEduPersonHomeOrg } |
126 |
} |
} |
127 |
} |
} |
128 |
} |
} |
156 |
} |
} |
157 |
|
|
158 |
}; |
}; |
159 |
|
|
160 |
|
# mount other views |
161 |
|
use A3C::View::Organization; |
162 |
|
|
163 |
|
# we can't really use following form because Jifty would upper case first |
164 |
|
# letter of model and try to find A3C::Model::HrEduOrg which doesn't exit! |
165 |
|
#Jifty::View::Declare::CRUD->mount_view('hrEduOrg', 'A3C::View::Organization', '/organizations'); |
166 |
|
alias A3C::View::Organization under '/organizations', { |
167 |
|
object_type => 'hrEduOrg', |
168 |
|
}; |
169 |
|
|
170 |
|
use A3C::View::Strix; |
171 |
|
alias A3C::View::Strix under '/strix'; |
172 |
|
|
173 |
|
1; |