added JS for Delete

This commit is contained in:
2018-08-14 04:12:25 +05:30
parent 499efd7087
commit 334c120a35
3 changed files with 28 additions and 2 deletions

View File

@ -38,6 +38,7 @@ class CRM_EntityTemplates_Page_EntityTemplates extends CRM_Core_Page_Basic {
'name' => ts('Delete'),
'url' => 'civicrm/entity/templates',
'qs' => 'action=delete&id=%%id%%',
'ref' => 'delete-entity-template',
'title' => ts('Delete template'),
],
];
@ -91,6 +92,7 @@ class CRM_EntityTemplates_Page_EntityTemplates extends CRM_Core_Page_Basic {
$action = array_sum(array_keys($this->links()));
foreach ($results['values'] as $values) {
$rows[] = [
'id' => $values['id'],
'title' => $values['title'],
'links' => CRM_Core_Action::formLink(
self::links(),