chg: [templates] org fields added to user templates
parent
e5e4e74cae
commit
81ab202917
|
@ -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'),
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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}}',
|
||||||
|
|
Loading…
Reference in New Issue