Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clickable row option for grid actions #15859

Merged
merged 6 commits into from Oct 11, 2019

Enable clickable_row on grid that need it

  • Loading branch information
jolelievre committed Oct 7, 2019
commit fd38963bcd3356b61fd9e3e38408a7d3d09998ce
@@ -112,6 +112,7 @@ protected function getColumns()
'route' => 'admin_backups_download_view',
'route_param_name' => 'downloadFileName',
'route_param_field' => 'file_name',
'clickable_row' => true,
])
)
->add(
@@ -338,6 +338,7 @@ private function getRowActions()
'route_param_name' => 'categoryId',
'route_param_field' => 'id_category',
'accessibility_checker' => $this->categoryForViewAccessibilityChecker,
'clickable_row' => true,
])
)
->add(
@@ -348,6 +349,7 @@ private function getRowActions()
'route' => 'admin_categories_edit',
'route_param_name' => 'categoryId',
'route_param_field' => 'id_category',
'clickable_row' => true, // Will only apply if first link action is filtered
])
)
->add(
@@ -157,6 +157,7 @@ protected function getColumns()
'route' => 'admin_cms_pages_index',
'route_param_name' => 'id_cms_category',
'route_param_field' => 'id_cms_category',
'clickable_row' => true,
])
)
->add((new LinkRowAction('edit'))
@@ -176,6 +176,7 @@ protected function getColumns()
'route' => 'admin_cms_pages_edit',
'route_param_name' => 'cmsPageId',
'route_param_field' => 'id_cms',
'clickable_row' => true,
])
)
->add((new SubmitRowAction('delete'))
@@ -141,6 +141,7 @@ protected function getColumns()
'route' => 'admin_contacts_edit',
'route_param_name' => 'contactId',
'route_param_field' => 'id_contact',
'clickable_row' => true,
])
)
->add(
@@ -120,6 +120,7 @@ protected function getColumns()
'route' => 'admin_currencies_edit',
'route_param_name' => 'currencyId',
'route_param_field' => 'id_currency',
'clickable_row' => true,
])
)
->add((new SubmitRowAction('delete'))
@@ -226,6 +226,7 @@ protected function getColumns()
'route' => 'admin_customers_view',
'route_param_name' => 'customerId',
'route_param_field' => 'id_customer',
'clickable_row' => true,
])
)
->add((new DeleteCustomerRowAction('delete'))
@@ -163,6 +163,7 @@ protected function getColumns()
'route' => 'admin_employees_edit',
'route_param_name' => 'employeeId',
'route_param_field' => 'id_employee',
'clickable_row' => true,
])
)
->add(
@@ -157,6 +157,7 @@ protected function getColumns()
'route' => 'admin_languages_edit',
'route_param_name' => 'languageId',
'route_param_field' => 'id_lang',
'clickable_row' => true,
])
)
->add(
@@ -131,6 +131,7 @@ protected function getColumns()
'route' => 'admin_manufacturer_addresses_edit',
'route_param_name' => 'addressId',
'route_param_field' => 'id_address',
'clickable_row' => true,
])
)
->add((new SubmitRowAction('delete'))
@@ -130,6 +130,7 @@ protected function getColumns()
'route' => 'admin_manufacturers_view',
'route_param_name' => 'manufacturerId',
'route_param_field' => 'id_manufacturer',
'clickable_row' => true,
])
)
->add((new LinkRowAction('edit'))
@@ -115,6 +115,7 @@ protected function getColumns()
'route' => 'admin_metas_edit',
'route_param_name' => 'metaId',
'route_param_field' => 'id_meta',
'clickable_row' => true,
])
)
->add(
@@ -131,6 +131,7 @@ protected function getColumns()
'route' => 'admin_profiles_edit',
'route_param_name' => 'profileId',
'route_param_field' => 'id_profile',
'clickable_row' => true,
])
)
->add((new SubmitRowAction('delete'))
@@ -143,6 +143,7 @@ protected function getColumns()
'route' => 'admin_sql_requests_view',
'route_param_name' => 'sqlRequestId',
'route_param_field' => 'id_request_sql',
'clickable_row' => true,
])
)
->add(
@@ -126,6 +126,7 @@ protected function getColumns()
'route' => 'admin_suppliers_view',
'route_param_name' => 'supplierId',
'route_param_field' => 'id_supplier',
'clickable_row' => true,
])
)
->add((new LinkRowAction('edit'))
@@ -120,6 +120,7 @@ protected function getColumns()
'route' => 'admin_taxes_edit',
'route_param_name' => 'taxId',
'route_param_field' => 'id_tax',
'clickable_row' => true,
])
)
->add(
@@ -150,6 +150,7 @@ protected function getColumns()
'route' => 'admin_webservice_keys_edit',
'route_param_name' => 'webserviceKeyId',
'route_param_field' => 'id_webservice_account',
'clickable_row' => true,
])
)
->add(
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.