chg: [view] templates added for new permission role
- also fixed an issue with the signature of the component import in CRUDcomponentfeature/docker-ci
parent
611a0b4903
commit
0e8a6cbe1c
|
@ -12,7 +12,7 @@ use Cake\Http\Exception\NotFoundException;
|
|||
|
||||
class CRUDComponent extends Component
|
||||
{
|
||||
protected $components = ['RestResponse'];
|
||||
public $components = ['RestResponse'];
|
||||
|
||||
public function initialize(array $config): void
|
||||
{
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
'type' => 'checkbox',
|
||||
'label' => 'Full admin privilege'
|
||||
],
|
||||
[
|
||||
'field' => 'perm_sync',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Sync permission'
|
||||
],
|
||||
[
|
||||
'field' => 'is_default',
|
||||
'type' => 'checkbox',
|
||||
|
|
|
@ -47,6 +47,12 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
|||
'data_path' => 'perm_admin',
|
||||
'element' => 'boolean'
|
||||
],
|
||||
[
|
||||
'name' => __('Sync'),
|
||||
'sort' => 'perm_sync',
|
||||
'data_path' => 'perm_sync',
|
||||
'element' => 'boolean'
|
||||
],
|
||||
[
|
||||
'name' => 'Default',
|
||||
'sort' => 'is_default',
|
||||
|
|
|
@ -17,6 +17,11 @@ echo $this->element(
|
|||
'path' => 'perm_admin',
|
||||
'type' => 'boolean'
|
||||
],
|
||||
[
|
||||
'key' => __('Sync permission'),
|
||||
'path' => 'perm_sync',
|
||||
'type' => 'boolean'
|
||||
],
|
||||
[
|
||||
'key' => __('Default role'),
|
||||
'path' => 'is_default',
|
||||
|
|
Loading…
Reference in New Issue