--- lib/Arh/View/Units.pm 2007/12/06 16:57:13 27 +++ lib/Arh/View/Units.pm 2007/12/10 14:56:12 28 @@ -32,12 +32,13 @@ $editing = 0 unless $self->current_user->editing; warn "## editing ",$editing ? 'ok' : 'DENIED'; + div { { class is 'unit' } if ( $editing ) { form { outs_raw($delete->button( - label => _('Delete'), - class => 'float-crud-button', + label => _('Delete unit'), + class => 'float-crud-button button-delete', onclick => { submit => $delete, confirm => _('Really delete?'), @@ -50,6 +51,7 @@ }; }; + form { foreach my $f ( $self->display_columns ) { if ( $f eq 'material' ) { @@ -81,6 +83,11 @@ }; } }; + + }; # div class unit + + show('/unitpictures/fragment', $record); + hr {}; };