2020-06-19 00:42:10 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element('genericElements/Form/genericForm', [
|
|
|
|
'data' => [
|
|
|
|
'description' => __('Roles define global rules for a set of users, including first and foremost access controls to certain functionalities.'),
|
|
|
|
'model' => 'Roles',
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'field' => 'name'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'field' => 'perm_admin',
|
|
|
|
'type' => 'checkbox',
|
2024-07-19 17:09:38 +02:00
|
|
|
'label' => 'Site admin privilege (instance management)'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'field' => 'perm_community',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => 'Community admin privilege (data admin)'
|
2020-06-19 00:42:10 +02:00
|
|
|
],
|
2023-09-12 09:26:07 +02:00
|
|
|
[
|
|
|
|
'field' => 'perm_group_admin',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => 'Organisation Group admin privilege'
|
|
|
|
],
|
2021-10-01 13:19:26 +02:00
|
|
|
[
|
|
|
|
'field' => 'perm_org_admin',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => 'Organisation admin privilege'
|
|
|
|
],
|
2021-06-28 23:27:21 +02:00
|
|
|
[
|
|
|
|
'field' => 'perm_sync',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => 'Sync permission'
|
|
|
|
],
|
2020-06-19 00:42:10 +02:00
|
|
|
[
|
|
|
|
'field' => 'is_default',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => 'Default role'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'submit' => [
|
|
|
|
'action' => $this->request->getParam('action')
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]);
|
|
|
|
?>
|
|
|
|
</div>
|