#3420 [advs-module] Add fast edit

This commit is contained in:
Diatrex 2021-02-23 17:17:28 +03:00
parent ac3f51194a
commit 228b529728
2 changed files with 10 additions and 1 deletions

View File

@ -44,4 +44,5 @@ return [
'publish' => 'Publish',
'import' => 'Import',
'new_status' => 'New Status',
'fast_edit' => 'Fast Edit',
];

View File

@ -25,11 +25,19 @@ class AdvTableButtons
return ($entry->getStatus() == 'approved') ? "danger" : "success";
},
],
'edit',
'settings' => [
'text' => false,
'href' => false,
'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' => [
'data-toggle' => 'modal',
'data-target' => '#modal',