--- lib/Arh/View/UnitPictures.pm 2008/04/07 15:03:03 63 +++ lib/Arh/View/UnitPictures.pm 2008/04/07 15:50:57 64 @@ -66,12 +66,11 @@ warn "## view id: $id unit $unit"; - form { - img { attr { src => "/static/pics/thumb/" . $record->thumbnail } } - tt { $record->filename } - span { $record->type->name }; + div { + { 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", @@ -83,7 +82,13 @@ args => { id => $id }, }, )); + } }; + + img { attr { src => "/static/pics/thumb/" . $record->thumbnail } }; + span { $record->type->name }; + tt { $record->filename }; + }; }; @@ -113,6 +118,8 @@ form { render_action( $create => [ 'campaign', 'content', 'type' ] ); outs_raw( $create->hidden( unit => $unit ) ); + form_submit( label => _('Add picture') ); +=for firefox-only hyperlink( label => _("Add picture"), class => "float-crud-button button-add", @@ -133,6 +140,7 @@ ], as_button => 1, ); +=cut }; };