mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#3420 [advs-module] Add fast edit
This commit is contained in:
parent
ac3f51194a
commit
228b529728
@ -44,4 +44,5 @@ return [
|
|||||||
'publish' => 'Publish',
|
'publish' => 'Publish',
|
||||||
'import' => 'Import',
|
'import' => 'Import',
|
||||||
'new_status' => 'New Status',
|
'new_status' => 'New Status',
|
||||||
|
'fast_edit' => 'Fast Edit',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -25,11 +25,19 @@ class AdvTableButtons
|
|||||||
return ($entry->getStatus() == 'approved') ? "danger" : "success";
|
return ($entry->getStatus() == 'approved') ? "danger" : "success";
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'edit',
|
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'text' => false,
|
'text' => false,
|
||||||
'href' => false,
|
'href' => false,
|
||||||
'dropdown' => [
|
'dropdown' => [
|
||||||
|
'edit' => [
|
||||||
|
'icon' => null,
|
||||||
|
'href' => function (EntryInterface $entry) {
|
||||||
|
return route('visiosoft.module.advs::edit_adv', [$entry->id]);
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'fast_edit' => [
|
||||||
|
'href' => '/admin/advs/edit/{entry.id}'
|
||||||
|
],
|
||||||
'change_owner' => [
|
'change_owner' => [
|
||||||
'data-toggle' => 'modal',
|
'data-toggle' => 'modal',
|
||||||
'data-target' => '#modal',
|
'data-target' => '#modal',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user