*
* Generated from standaloneusers/xml/schema/CRM/Standaloneusers/Role.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d5053ae97fba22b13adecdce76ebb30f)
+ * (GenCodeChecksum:afe744210fe5b5d38bf16ae05677a749)
*/
use CRM_Standaloneusers_ExtensionUtil as E;
*/
public static $_log = TRUE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'add' => 'civicrm/admin/role',
+ 'update' => 'civicrm/admin/role#?Role1=[id]',
+ ];
+
/**
* Unique Role ID
*
'dataType' => 'String',
'label' => E::ts('Label'),
'sortable' => TRUE,
- 'link' => [
- 'path' => '/civicrm/admin/role#?Role1=[id]',
- 'entity' => '',
- 'action' => '',
- 'join' => '',
- 'target' => '',
- ],
+ 'editable' => TRUE,
],
[
'type' => 'field',
'rewrite' => '',
'alignment' => '',
],
+ [
+ 'size' => 'btn-xs',
+ 'links' => [
+ [
+ 'entity' => 'Role',
+ 'action' => 'update',
+ 'join' => '',
+ 'target' => 'crm-popup',
+ 'icon' => 'fa-pencil',
+ 'text' => E::ts('Edit'),
+ 'style' => 'default',
+ 'path' => '',
+ 'condition' => [],
+ ],
+ ],
+ 'type' => 'menu',
+ 'icon' => 'fa-bars',
+ 'alignment' => 'text-right',
+ ],
],
'actions' => TRUE,
'classes' => [
'table',
'table-striped',
],
+ 'toolbar' => [
+ [
+ 'text' => E::ts('Add Role'),
+ 'target' => 'crm-popup',
+ 'icon' => 'fa-plus',
+ 'style' => 'primary',
+ 'entity' => 'Role',
+ 'action' => 'add',
+ ],
+ ],
],
'acl_bypass' => FALSE,
],
--
-- Generated from drop.tpl
-- DO NOT EDIT. Generated by CRM_Core_CodeGen
----- /*******************************************************
+--
+-- /*******************************************************
+-- *
+-- * Clean up the existing tables
-- *
--- * Clean up the existing tables-- *
-- *******************************************************/
SET FOREIGN_KEY_CHECKS=0;
<comment>A Role holds a set of permissions. Roles may be granted to Users.</comment>
<log>true</log>
+ <paths>
+ <add>civicrm/admin/role</add>
+ <update>civicrm/admin/role#?Role1=[id]</update>
+ </paths>
+
<field>
<name>id</name>
<type>int unsigned</type>