{{ forms.textareaField({
label: 'Extra User Attributes'|t('webhooks'),
instructions: 'List of additional attributes for the logged-in user that should be included in the webhook body.'|t('webhooks') ~ ' ' ~ '(Place separate attributes on new lines.)'|t('webhooks'),
id: 'user-attributes',
name: 'userAttributes',
placeholder: 'photo.url',
class: 'code nicetext',
value: webhook.userAttributes,
errors: webhook.getErrors('userAttributes')
}) }}
{{ forms.textareaField({
label: 'Extra Sender Attributes'|t('webhooks'),
instructions: 'List of additional attributes for the event sender that should be included in the webhook body.'|t('webhooks') ~ ' ' ~ '(Place separate attributes on new lines.)'|t('webhooks'),
id: 'sender-attributes',
name: 'senderAttributes',
placeholder: 'author.email',
class: 'code nicetext',
value: webhook.senderAttributes,
errors: webhook.getErrors('senderAttributes')
}) }}
{{ forms.textareaField({
label: 'Extra Event Attributes'|t('webhooks'),
instructions: 'List of additional attributes for the event properties that should be included in the webhook body.'|t('webhooks') ~ ' ' ~ '(Place separate attributes on new lines.)'|t('webhooks'),
id: 'event-attributes',
name: 'eventAttributes',
class: 'code nicetext',
value: webhook.eventAttributes,
errors: webhook.getErrors('eventAttributes')
}) }}
{{ forms.textareaField({
label: 'Payload Template'|t('webhooks'),
instructions: 'Enter a custom Twig template that outputs the payload body. An `event` variable will be present, set to the event that was triggered.'|t('webhooks'),
id: 'json-payload-template',
name: 'payloadTemplate',
class: 'code nicetext',
rows: 10,
value: webhook.payloadTemplate,
errors: webhook.getErrors('payloadTemplate')
}) }}