/[A3C]/lib/A3C/View.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/A3C/View.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 120 by dpavlin, Thu May 15 19:08:08 2008 UTC revision 142 by dpavlin, Fri May 30 23:47:29 2008 UTC
# Line 100  template 'people' => page { Line 100  template 'people' => page {
100          h1 { _('Find people') }          h1 { _('Find people') }
101    
102          my $action = new_action(          my $action = new_action(
103                  class   => 'SearchPerson',                  class   => 'SearchhrEduPerson',
104                  moniker => 'search-users',                  moniker => 'search-users',
105                  sticky_on_success => 1,                  sticky_on_success => 1,
106                  sticky_on_failure => 1,                  sticky_on_failure => 1,
# Line 138  template 'sync' => page { Line 138  template 'sync' => page {
138          );          );
139    
140          form {          form {
141                  render_action( $action => [ 'cn' ] );                  render_action( $action => [ 'org_uid' ] );
142                  form_submit( label => _('Sync Organization') );                  form_submit( label => _('Sync Organization') );
143          };          };
144    
# Line 154  template 'sync' => page { Line 154  template 'sync' => page {
154          }          }
155    
156  };  };
157    
158    # mount other views
159    use A3C::View::Organization;
160    
161    # we can't really use following form because Jifty would upper case first
162    # letter of model and try to find A3C::Model::HrEduOrg which doesn't exit!
163    #Jifty::View::Declare::CRUD->mount_view('hrEduOrg', 'A3C::View::Organization', '/organizations');
164    alias A3C::View::Organization under '/organizations', {
165            object_type => 'hrEduOrg',
166    };
167    
168    use A3C::View::Strix;
169    alias A3C::View::Strix under '/strix';
170    
171    1;

Legend:
Removed from v.120  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.26