chg: [templates] Individuals and Organisations updated

remotes/origin/main
iglocska 2020-06-19 00:42:42 +02:00
parent 5d36c7d730
commit 1da22d28d8
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
5 changed files with 7 additions and 14 deletions

View File

@ -1,10 +1,7 @@
<?php
$modelForForm = 'Individuals';
echo $this->element('genericElements/Form/genericForm', array(
'form' => $this->Form,
'data' => array(
'entity' => $individual,
'title' => __('Add new individual'),
'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.'),
'model' => 'Organisations',
'fields' => array(

View File

@ -3,7 +3,7 @@ echo $this->element(
'/genericElements/SingleViews/single_view',
[
'title' => __('Individual View'),
'data' => $individual,
'data' => $entity,
'fields' => [
[
'key' => __('ID'),

View File

@ -1,10 +1,6 @@
<?php
$modelForForm = 'Organisations';
echo $this->element('genericElements/Form/genericForm', array(
'form' => $this->Form,
'data' => array(
'entity' => $organisation,
'title' => __('Add new organisation'),
'description' => __('Organisations can be equivalent to legal entities or specific individual teams within such entities. Their purpose is to relate individuals to their affiliations and for release control of information using the Trust Circles.'),
'model' => 'Organisations',
'fields' => array(

View File

@ -36,7 +36,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
'name' => __('Members'),
'data_path' => 'alignments',
'element' => 'count_summary',
'url' => '/individuals/index/?organisation_id={{url_data}}',
'url' => '/individuals/index/?Organisations.id={{url_data}}',
'url_data_path' => 'id'
],
[

View File

@ -1,10 +1,10 @@
<?php
echo $this->element(
'/genericElements/SingleViews/single_view',
array(
[
'title' => __('Organisation View'),
'data' => $organisation,
'fields' => array(
'data' => $entity,
'fields' => [
[
'key' => __('ID'),
'path' => 'id'
@ -43,7 +43,7 @@ echo $this->element(
'path' => 'alignments',
'scope' => 'organisations'
]
),
],
'children' => []
)
]
);