--- trunk/lib/Strix/View/User.pm 2008/07/11 09:35:32 94
+++ trunk/lib/Strix/View/User.pm 2008/07/11 10:29:31 95
@@ -100,6 +100,11 @@
| if $self->_layout eq 'table';
return qq|
+
@@ -108,6 +113,9 @@
|;
});
+
+ return qq|
$out| . $self->render_buttons . qq| |
| if $self->_layout eq 'columns';
+
$self->render_wrapper_class( $out, 'editform' );
}
@@ -119,6 +127,7 @@
my ( $name, $field_name, $label, $val ) = @_;
return if $name =~ /^_/;
return qq|
$label | $val |
| if $self->_layout eq 'table';
+ return qq|
$val | | if $self->_layout eq 'columns';
return qq|
$label
@@ -127,6 +136,7 @@
|;
});
+ return qq|
$out| . $self->render_buttons . qq| |
| if $self->_layout eq 'columns';
$self->render_wrapper_class( $out, 'view' );
}
@@ -168,7 +178,7 @@
use Moose::Util::TypeConstraints;
-enum 'Layouts' => qw( div table );
+enum 'Layouts' => qw( div table columns );
has _layout => (
is => 'rw',