--- lib/Arh/View/UnitPictures.pm 2007/12/10 14:56:12 28 +++ lib/Arh/View/UnitPictures.pm 2007/12/10 15:16:52 29 @@ -65,7 +65,7 @@ form { if ( $record->current_user_can('delete') && $self->current_user->editing ) { - hyperlink( + outs_raw( $delete->button( label => _("Delete picture"), class => "float-crud-button button-delete", onclick => { @@ -75,8 +75,7 @@ refresh_self => 1, args => { id => $id }, }, - as_button => 1, - ); + )); }; img { attr { src => "/static/pics/" . $record->picture->filename } } tt{ $record->picture->filename }