--- lib/Arh/View/UnitPictures.pm 2008/04/08 21:34:16 66 +++ lib/Arh/View/UnitPictures.pm 2008/04/08 23:22:22 67 @@ -31,7 +31,7 @@ my $fragment_for_new_picture = $self->fragment_for('new_picture'); my $collection = $self->_current_collection(); # XXX show just pictures from current unit - $collection->limit( column => 'unit', value => $unit ) if $unit; + $collection->limit( column => 'unit', value => $unit ); warn "## list page: $page unit: $unit fragment_for_new_picture: $fragment_for_new_picture item_path: $item_path"; @@ -70,7 +70,6 @@ { class is 'single-picture' }; if ( $record->current_user_can('delete') && $self->current_user->editing ) { - form { outs_raw( $delete->button( label => _("Delete picture"), class => "float-crud-button button-delete", @@ -82,7 +81,6 @@ args => { id => $id }, }, )); - } }; img { attr { src => "/static/pics/thumb/" . $record->thumbnail } }; @@ -115,7 +113,7 @@ warn "## attach_to = $attach_to"; - form { + div { render_action( $create => [ 'campaign', 'content', 'type' ] ); outs_raw( $create->hidden( unit => $unit ) ); form_submit( label => _('Add picture') );