65 |
div { |
div { |
66 |
{ class is 'form_field' }; |
{ class is 'form_field' }; |
67 |
if ( $record->current_user_can('delete') && $self->current_user->editing ) { |
if ( $record->current_user_can('delete') && $self->current_user->editing ) { |
68 |
hyperlink( |
outs_raw( $delete->button( |
69 |
label => _("Delete material"), |
label => _("Delete material"), |
70 |
class => "float-crud-button button-delete", |
class => "float-crud-button button-delete", |
71 |
onclick => { |
onclick => { |
76 |
args => { id => $id }, |
args => { id => $id }, |
77 |
}, |
}, |
78 |
as_button => 1, |
as_button => 1, |
79 |
); |
)); |
80 |
}; |
}; |
81 |
label { { class is 'label' } _("Material") }; |
label { { class is 'label' } _("Material") }; |
82 |
span { $record->material->name }; |
span { $record->material->name }; |