[Jifty-commit] r4248 - in jifty/trunk: lib/Jifty/View/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Oct 17 11:46:27 EDT 2007
Author: jesse
Date: Wed Oct 17 11:46:27 2007
New Revision: 4248
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
Log:
r68165 at pinglin: jesse | 2007-10-17 16:35:39 +0100
added a bit more semantic markup to the crud view
Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm Wed Oct 17 11:46:27 2007
@@ -323,10 +323,12 @@
div {
{ class is 'crud read item inline' };
my @fields = $self->display_columns($update);
- render_action( $update, \@fields, { render_mode => 'read' } );
-
+ foreach my $field (@fields) {
+ div { { class is 'view-argument-'.$field};
+ render_param( $update => $field, render_mode => 'read' );
+ };
+ }
show ('./view_item_controls', $record, $update);
-
hr {};
};
@@ -449,13 +451,14 @@
my ( $page ) = get(qw(page ));
my $item_path = get('item_path') || $self->fragment_for("view");
my $collection = $self->_current_collection();
+ div { {class is 'crud-'.$self->object_type};
show('./search_region');
show( './paging_top', $collection, $page );
show( './list_items', $collection, $item_path );
show( './paging_bottom', $collection, $page );
show( './new_item_region');
-
+ };
};
=head2 per_page
@@ -643,7 +646,11 @@
private template 'edit_item' => sub {
my $self = shift;
my $action = shift;
- render_action($action, [$self->display_columns($action)]);
+ foreach my $field ($self->display_columns($action)) {
+ div { { class is 'update-argument-'.$field}
+ render_param($action, $field) ;
+ }
+ }
};
=head1 new_item
More information about the Jifty-commit
mailing list