Skip to content

Commit

Permalink
EmailAddresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 26, 2024
1 parent cb2c371 commit d77c602
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/src/Model/Table/AdHocAttributesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class AdHocAttributesTable extends Table {
use \App\Lib\Traits\ValidationTrait;
use \App\Lib\Traits\SearchFilterTrait;
use \App\Lib\Traits\QueryModificationTrait;

use \App\Lib\Traits\AutoViewVarsTrait;

/**
* Provide the default layout
*
Expand Down
40 changes: 34 additions & 6 deletions app/templates/EmailAddresses/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,44 @@
*/

if($vv_action == 'add' || $vv_action == 'edit' || $vv_action == 'view') {
print $this->Field->control('mail');
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'mail'
]]);

print $this->Field->control('type_id', ['default' => $vv_default_type]);
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'type_id',
'options' => [
'default' => $vv_default_type
]
]]);

print $this->Field->control('description');
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'description'
]]);

// XXX CFM-129 need to implement verification
print $this->Field->control('verified', ['readonly' => true]);
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'verified',
'options' => [
'readonly' => true
]
]]);

print $this->Field->control('frozen');
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'frozen'
]]);

print $this->Field->sourceControl($vv_obj);
}

if($vv_action == 'edit' || $vv_action == 'view') {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'source',
'entity' => $vv_obj
]]);
}

0 comments on commit d77c602

Please sign in to comment.