Add the multiline config module
This commit is contained in:
parent
c39a172690
commit
2aef6eb122
71 changed files with 1891 additions and 126 deletions
|
@ -17,7 +17,35 @@ id: contact
|
|||
title: Contact
|
||||
description: 'Basic email contact webform.'
|
||||
category: ''
|
||||
elements: "introduction:\n '#type': webform_markup\n '#admin_title': Introduction\n '#markup': 'You – our clients, colleagues, and crazed adoring fans – are the reason we do what we do. We'd love to hear from you.'\nname:\n '#title': 'Your Name'\n '#type': textfield\n '#required': true\n '#default_value': '[current-user:display-name]'\nemail:\n '#title': 'Your Email'\n '#type': email\n '#required': true\n '#default_value': '[current-user:mail]'\nsubject:\n '#title': Subject\n '#type': textfield\n '#required': true\n '#test': 'Testing contact webform from [site:name]'\nmessage:\n '#title': Message\n '#type': textarea\n '#required': true\n '#test': 'Please ignore this email.'\nactions:\n '#type': webform_actions\n '#title': 'Submit button(s)'\n '#submit__label': 'Send message'"
|
||||
elements: |
|
||||
introduction:
|
||||
'#type': webform_markup
|
||||
'#admin_title': Introduction
|
||||
'#markup': 'You – our clients, colleagues, and crazed adoring fans – are the reason we do what we do. We'd love to hear from you.'
|
||||
name:
|
||||
'#title': 'Your Name'
|
||||
'#type': textfield
|
||||
'#required': true
|
||||
'#default_value': '[current-user:display-name]'
|
||||
email:
|
||||
'#title': 'Your Email'
|
||||
'#type': email
|
||||
'#required': true
|
||||
'#default_value': '[current-user:mail]'
|
||||
subject:
|
||||
'#title': Subject
|
||||
'#type': textfield
|
||||
'#required': true
|
||||
'#test': 'Testing contact webform from [site:name]'
|
||||
message:
|
||||
'#title': Message
|
||||
'#type': textarea
|
||||
'#required': true
|
||||
'#test': 'Please ignore this email.'
|
||||
actions:
|
||||
'#type': webform_actions
|
||||
'#title': 'Submit button(s)'
|
||||
'#submit__label': 'Send message'
|
||||
css: ''
|
||||
javascript: ''
|
||||
settings:
|
||||
|
@ -192,7 +220,14 @@ handlers:
|
|||
from_options: { }
|
||||
from_name: '[webform_submission:values:name:raw]'
|
||||
subject: '[webform_submission:values:subject:raw]'
|
||||
body: "Hi Agarics, \r\n\r\nYou got a new message.\r\n\r\n<p>Submitted on {{ webform_token('[webform_submission:created]', webform_submission) }}</p>\r\n<p>Submitted values are:</p>\r\n{{ webform_token('[webform_submission:values]', webform_submission) }}\r\n"
|
||||
body: |
|
||||
Hi Agarics,
|
||||
|
||||
You got a new message.
|
||||
|
||||
<p>Submitted on {{ webform_token('[webform_submission:created]', webform_submission) }}</p>
|
||||
<p>Submitted values are:</p>
|
||||
{{ webform_token('[webform_submission:values]', webform_submission) }}
|
||||
excluded_elements: { }
|
||||
ignore_access: false
|
||||
exclude_empty: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue