chg: [templates] org fields added to user templates

pull/79/head
iglocska 2021-11-24 01:25:57 +01:00
parent e5e4e74cae
commit 81ab202917
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
3 changed files with 21 additions and 0 deletions

View File

@ -14,6 +14,12 @@
'field' => 'username', 'field' => 'username',
'autocomplete' => 'off' 'autocomplete' => 'off'
], ],
[
'field' => 'organisation_id',
'type' => 'dropdown',
'label' => __('Associated organisation'),
'options' => $dropdownData['organisation']
],
[ [
'field' => 'password', 'field' => 'password',
'label' => __('Password'), 'label' => __('Password'),

View File

@ -51,6 +51,13 @@ echo $this->element('genericElements/IndexTable/index_table', [
'sort' => 'username', 'sort' => 'username',
'data_path' => 'username', 'data_path' => 'username',
], ],
[
'name' => __('Organisation'),
'sort' => 'organisation.name',
'data_path' => 'organisation.name',
'url' => '/organisations/view/{{0}}',
'url_vars' => ['organisation.id']
],
[ [
'name' => __('Email'), 'name' => __('Email'),
'sort' => 'individual.email', 'sort' => 'individual.email',

View File

@ -21,6 +21,14 @@ echo $this->element(
'path' => 'individual.email' 'path' => 'individual.email'
], ],
[ [
'type' => 'generic',
'key' => __('Organisation'),
'path' => 'organisation.name',
'url' => '/organisations/view/{{0}}',
'url_vars' => 'organisation.id'
],
[
'type' => 'generic',
'key' => __('Role'), 'key' => __('Role'),
'path' => 'role.name', 'path' => 'role.name',
'url' => '/roles/view/{{0}}', 'url' => '/roles/view/{{0}}',