new: [individuals] also contain metafields

pull/34/head
iglocska 2020-11-20 11:49:31 +01:00
parent 0dbb5f07ca
commit 62d9a73673
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 8 additions and 6 deletions

View File

@ -8,6 +8,8 @@ use Cake\Validation\Validator;
class IndividualsTable extends AppTable
{
public $metaFields = 'individual';
public function initialize(array $config): void
{
parent::initialize($config);

View File

@ -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')
)