Update API webform
This commit is contained in:
parent
56c11e6187
commit
77e8362d12
2 changed files with 106 additions and 21 deletions
|
@ -192,6 +192,8 @@ file:
|
||||||
delete_temporary_managed_files: true
|
delete_temporary_managed_files: true
|
||||||
format: { }
|
format: { }
|
||||||
mail:
|
mail:
|
||||||
|
roles:
|
||||||
|
- staff
|
||||||
default_to_mail: '[site:mail]'
|
default_to_mail: '[site:mail]'
|
||||||
default_from_mail: '[site:mail]'
|
default_from_mail: '[site:mail]'
|
||||||
default_from_name: '[site:name]'
|
default_from_name: '[site:name]'
|
||||||
|
@ -211,7 +213,6 @@ mail:
|
||||||
<p>Submitted by: [webform_submission:user]</p>
|
<p>Submitted by: [webform_submission:user]</p>
|
||||||
<p>Submitted values are:</p>
|
<p>Submitted values are:</p>
|
||||||
[webform_submission:values]
|
[webform_submission:values]
|
||||||
roles: { }
|
|
||||||
test:
|
test:
|
||||||
types: |
|
types: |
|
||||||
checkbox:
|
checkbox:
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
uuid: ec5ed05c-7d47-45df-aa42-eb90c5bda2c9
|
uuid: ec5ed05c-7d47-45df-aa42-eb90c5bda2c9
|
||||||
langcode: en
|
langcode: en
|
||||||
status: open
|
status: open
|
||||||
dependencies: { }
|
dependencies:
|
||||||
|
module:
|
||||||
|
- stripe_webform
|
||||||
open: null
|
open: null
|
||||||
close: null
|
close: null
|
||||||
weight: 0
|
weight: 0
|
||||||
|
@ -13,21 +15,39 @@ title: 'Upgrading to Drupal 9 using the Migrate API'
|
||||||
description: ''
|
description: ''
|
||||||
category: Purchase
|
category: Purchase
|
||||||
elements: |
|
elements: |
|
||||||
signup:
|
course_summary:
|
||||||
'#type': webform_wizard_page
|
'#type': processed_text
|
||||||
'#title': Signup
|
'#text': |
|
||||||
'#next_button_label': 'Get tickets'
|
## Upgrading to Drupal 9 using the Migrate API
|
||||||
|
|
||||||
|
* Lead instructor: **Mauricio Dinarte**
|
||||||
|
* Date: **2020 July 17**
|
||||||
|
* Cost: **$500**
|
||||||
|
|
||||||
|
'#format': markdown
|
||||||
|
name:
|
||||||
|
'#type': textfield
|
||||||
|
'#title': Name
|
||||||
email:
|
email:
|
||||||
'#type': email
|
'#type': email
|
||||||
'#title': E-mail
|
'#title': E-mail
|
||||||
purchase:
|
'#required': true
|
||||||
'#type': webform_wizard_page
|
payment:
|
||||||
'#title': Purchase
|
'#type': stripe
|
||||||
|
'#title': Payment
|
||||||
|
'#format_items': ul
|
||||||
|
'#format_items_html': ''
|
||||||
|
'#format_items_text': ''
|
||||||
|
'#stripe_selectors_name': ':input[name="name"]'
|
||||||
optional_info_for_your_receipt:
|
optional_info_for_your_receipt:
|
||||||
'#type': textarea
|
'#type': textarea
|
||||||
'#title': 'Optional info for your receipt'
|
'#title': 'Optional info for your receipt'
|
||||||
'#placeholder': 'Your company name, purchase order, etc. Leave blank if you don''t need it.'
|
'#placeholder': 'Your company name, purchase order, etc. Leave blank if you don''t need it.'
|
||||||
'#autocomplete': 'off'
|
'#autocomplete': 'off'
|
||||||
|
actions:
|
||||||
|
'#type': webform_actions
|
||||||
|
'#title': 'Submit button(s)'
|
||||||
|
'#submit__label': Purchase
|
||||||
css: ''
|
css: ''
|
||||||
javascript: ''
|
javascript: ''
|
||||||
settings:
|
settings:
|
||||||
|
@ -119,12 +139,15 @@ settings:
|
||||||
draft_loaded_message: ''
|
draft_loaded_message: ''
|
||||||
draft_pending_single_message: ''
|
draft_pending_single_message: ''
|
||||||
draft_pending_multiple_message: ''
|
draft_pending_multiple_message: ''
|
||||||
confirmation_type: page
|
confirmation_type: inline
|
||||||
confirmation_title: ''
|
confirmation_title: ''
|
||||||
confirmation_message: ''
|
confirmation_message: |
|
||||||
|
Thank you [webform_submission:values:name]! You're registered for:<br />
|
||||||
|
[webform_submission:values:course_summary:html]<br />
|
||||||
|
We've sent an e-mail to [webform_submission:values:email].
|
||||||
confirmation_url: ''
|
confirmation_url: ''
|
||||||
confirmation_attributes: { }
|
confirmation_attributes: { }
|
||||||
confirmation_back: true
|
confirmation_back: false
|
||||||
confirmation_back_label: ''
|
confirmation_back_label: ''
|
||||||
confirmation_back_attributes: { }
|
confirmation_back_attributes: { }
|
||||||
confirmation_exclude_query: false
|
confirmation_exclude_query: false
|
||||||
|
@ -196,5 +219,66 @@ access:
|
||||||
roles: { }
|
roles: { }
|
||||||
users: { }
|
users: { }
|
||||||
permissions: { }
|
permissions: { }
|
||||||
handlers: { }
|
handlers:
|
||||||
|
stripe:
|
||||||
|
id: stripe
|
||||||
|
label: Stripe
|
||||||
|
handler_id: stripe
|
||||||
|
status: true
|
||||||
|
conditions: { }
|
||||||
|
weight: 0
|
||||||
|
settings:
|
||||||
|
amount: '500'
|
||||||
|
stripe_element: payment
|
||||||
|
plan_id: ''
|
||||||
|
quantity: ''
|
||||||
|
currency: usd
|
||||||
|
description: ''
|
||||||
|
email: ''
|
||||||
|
metadata: ''
|
||||||
|
stripe_customer_create: ''
|
||||||
|
stripe_charge_create: ''
|
||||||
|
stripe_subscription_create: ''
|
||||||
|
email:
|
||||||
|
id: email
|
||||||
|
label: Email
|
||||||
|
handler_id: email
|
||||||
|
status: true
|
||||||
|
conditions: { }
|
||||||
|
weight: 0
|
||||||
|
settings:
|
||||||
|
states:
|
||||||
|
- completed
|
||||||
|
to_mail: '[webform_submission:values:email:raw]'
|
||||||
|
to_options: { }
|
||||||
|
cc_mail: ''
|
||||||
|
cc_options: { }
|
||||||
|
bcc_mail: _default
|
||||||
|
bcc_options: { }
|
||||||
|
from_mail: _default
|
||||||
|
from_options: { }
|
||||||
|
from_name: _default
|
||||||
|
subject: 'Training registration for [source-title]'
|
||||||
|
body: |
|
||||||
|
Thank you for registering!<br />
|
||||||
|
<br />
|
||||||
|
[webform_submission:values]<br />
|
||||||
|
|
||||||
|
excluded_elements:
|
||||||
|
payment_information: payment_information
|
||||||
|
optional_info_for_your_receipt: optional_info_for_your_receipt
|
||||||
|
ignore_access: false
|
||||||
|
exclude_empty: true
|
||||||
|
exclude_empty_checkbox: false
|
||||||
|
exclude_attachments: false
|
||||||
|
html: true
|
||||||
|
attachments: false
|
||||||
|
twig: false
|
||||||
|
debug: false
|
||||||
|
reply_to: ''
|
||||||
|
return_path: ''
|
||||||
|
sender_mail: ''
|
||||||
|
sender_name: ''
|
||||||
|
theme_name: ''
|
||||||
|
parameters: { }
|
||||||
variants: { }
|
variants: { }
|
||||||
|
|
Loading…
Reference in a new issue