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( |
hyperlink( |
69 |
label => _("Delete"), |
label => _("Delete material"), |
70 |
class => "float-crud-button", |
class => "float-crud-button button-delete", |
71 |
onclick => { |
onclick => { |
72 |
submit => $delete, |
submit => $delete, |
73 |
confirm => _('Really delete?'), |
confirm => _('Really delete?'), |
105 |
div { |
div { |
106 |
{ class is 'form_field' }; |
{ class is 'form_field' }; |
107 |
hyperlink( |
hyperlink( |
108 |
label => _("Add"), |
label => _("Add material"), |
109 |
class => "float-crud-button", |
class => "float-crud-button button-add", |
110 |
onclick => [ |
onclick => [ |
111 |
{ |
{ |
112 |
submit => $create, |
submit => $create, |