--- lib/A3C/View/Organization.pm 2008/05/30 20:56:18 137 +++ lib/A3C/View/Organization.pm 2008/05/30 21:02:04 138 @@ -1,5 +1,15 @@ package A3C::View::Organization; +=head1 NAME + +A3C::View::Organization + +=head1 DESCRIPTION + +Provide search and display form using table + +=cut + use strict; use warnings; @@ -109,25 +119,23 @@ sub per_page { 10 } -# in Jifty's template, it's included on bottom of list template 'new' => page { my $self = shift; - title is $self->object_type; - - my $record_class = $self->record_class; - my $action = $record_class->as_create_action; - - #warn "action = ",dump( $action ); - form { - { class is 'crud create item' }; - foreach my $field ($self->create_columns($action)) { - render_param($action, $field) ; - } - form_submit( label => _('Create') ); + render_region( + name => $self->object_type.'-list', + path => $self->fragment_base_path.'/new-list' + ); } +}; +# in Jifty's template, it's included on bottom of list +template 'new-list' => sub { + div { + { class is 'list' }; + } + show( './new_item_region'); }; 1;