Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
saltonmassally committed Aug 1, 2017
2 parents f094bbf + a48edd1 commit b32e527
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
25 changes: 18 additions & 7 deletions webform_cac/src/Element/ContactCac.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,25 @@ public static function getCompositeElements() {
'#type' => 'number',
'#title' => t('Shares %'),
];
$elements['occupation'] = [
'#type' => 'textfield',
'#title' => t('Occupation'),
];
$elements['other_directorship'] = [
'#type' => 'textfield',
'#title' => t('Particulars of other Directorship'),
];
$elements['appointment_date'] = [
'#type' => 'date',
'#title' => t('Date of Appointment'),
];







/* $elements['identification_fid'] = [
'#title' => t('Identification'),
'#type' => 'managed_file',
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
],
];*/


return $elements;
Expand Down
6 changes: 6 additions & 0 deletions webform_cac/src/Plugin/WebformElement/WebformContactCaC.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ protected function formatTextItemValue(array $element, WebformSubmissionInterfac
if (!empty($value['phone'])) {
$lines['phone'] = $value['phone'];
}
if (!empty($value['occupation'])) {
$lines['occupation'] = $value['occupation'];
}
if (!empty($value['other_directorship'])) {
$lines['other_directorship'] = $value['other_directorship'];
}
return $lines;
}

Expand Down

0 comments on commit b32e527

Please sign in to comment.