diff --git a/common/placeholders.js b/common/placeholders.js index e230a763..e394ed2c 100644 --- a/common/placeholders.js +++ b/common/placeholders.js @@ -32,7 +32,14 @@ const placeholders = [ label: 'Signature', type: placeholderTypes.ATTACHMENT, format: () => '' - } + }, + { + id: 'items', + label: 'Donation Receipt Information', + type: placeholderTypes.EMAIL, + required: true, + format: value => table(value) + }, ] function getPagePlaceholders() { @@ -59,6 +66,16 @@ function getPlaceholders(types) { return placeholders } +function table(value) { + let tableFinal = `
Item | Value |
"${value[i].name}" | "${value[i].value}" |
Total: | "${total}" |
is committed to protecting your personal information by following responsible information handling practices and in keeping with privacy laws. All information remains strictly confidential as outlined by 's Privacy Policy that can be accessed at .
-If you have any questions or concerns, feel free to contact us.
` +If you have any questions or concerns, feel free to contact us.
+` }, { identifier: pageIdentifiers.DONATION_RECEIPT, title: 'Donation Receipt', type: pageTypes.EMAIL, subject: 'Receipt for Your Donation to
', body: `Dear ,
-` +Here you have a list of the donations our organization recibed from you:
+` }] const commonFields = [