new: [individuals] also contain metafields
parent
0dbb5f07ca
commit
62d9a73673
|
@ -8,6 +8,8 @@ use Cake\Validation\Validator;
|
|||
|
||||
class IndividualsTable extends AppTable
|
||||
{
|
||||
public $metaFields = 'individual';
|
||||
|
||||
public function initialize(array $config): void
|
||||
{
|
||||
parent::initialize($config);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
$modelForForm = 'Individuals';
|
||||
echo $this->element('genericElements/Form/genericForm', array(
|
||||
'data' => array(
|
||||
'description' => __('Individuals are natural persons. They are meant to describe the basic information about an individual that may or may not be a user of this community. Users in genral require an individual object to identify the person behind them - however, no user account is required to store information about an individual. Individuals can have affiliations to organisations and broods as well as cryptographic keys, using which their messages can be verified and which can be used to securely contact them.'),
|
||||
|
@ -8,6 +7,11 @@
|
|||
array(
|
||||
'field' => 'email'
|
||||
),
|
||||
array(
|
||||
'field' => 'uuid',
|
||||
'label' => 'UUID',
|
||||
'type' => 'uuid'
|
||||
),
|
||||
array(
|
||||
'field' => 'first_name'
|
||||
),
|
||||
|
@ -16,13 +20,9 @@
|
|||
),
|
||||
array(
|
||||
'field' => 'position'
|
||||
),
|
||||
array(
|
||||
'field' => 'uuid',
|
||||
'label' => 'UUID',
|
||||
'type' => 'uuid'
|
||||
)
|
||||
),
|
||||
'metaFields' => empty($metaFields) ? [] : $metaFields,
|
||||
'submit' => array(
|
||||
'action' => $this->request->getParam('action')
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue