From 5f44290f58b33b341961587bdba386055578f06d Mon Sep 17 00:00:00 2001 From: Susanne Moog Date: Mon, 17 Dec 2018 10:49:37 +0100 Subject: [PATCH] [FEATURE] Add TCCE registration form --- Configuration/Yaml/Backend.yaml | 7 + Configuration/Yaml/Frontend.yaml | 6 + .../Private/Forms/TCCERegistration.form.yaml | 510 ++++++++++++++++++ ext_typoscript_setup.txt | 15 + 4 files changed, 538 insertions(+) create mode 100644 Configuration/Yaml/Backend.yaml create mode 100644 Configuration/Yaml/Frontend.yaml create mode 100644 Resources/Private/Forms/TCCERegistration.form.yaml create mode 100644 ext_typoscript_setup.txt diff --git a/Configuration/Yaml/Backend.yaml b/Configuration/Yaml/Backend.yaml new file mode 100644 index 0000000..50a2dbe --- /dev/null +++ b/Configuration/Yaml/Backend.yaml @@ -0,0 +1,7 @@ +TYPO3: + CMS: + Form: + persistenceManager: + allowSaveToExtensionPaths: true + allowedExtensionPaths: + 1483353751: EXT:certifications/Resources/Private/Forms/ diff --git a/Configuration/Yaml/Frontend.yaml b/Configuration/Yaml/Frontend.yaml new file mode 100644 index 0000000..341795c --- /dev/null +++ b/Configuration/Yaml/Frontend.yaml @@ -0,0 +1,6 @@ +TYPO3: + CMS: + Form: + persistenceManager: + allowedExtensionPaths: + 1483353751: EXT:certifications/Resources/Private/Forms/ \ No newline at end of file diff --git a/Resources/Private/Forms/TCCERegistration.form.yaml b/Resources/Private/Forms/TCCERegistration.form.yaml new file mode 100644 index 0000000..03a6ebe --- /dev/null +++ b/Resources/Private/Forms/TCCERegistration.form.yaml @@ -0,0 +1,510 @@ + +renderingOptions: + submitButtonLabel: Order now for 200 EUR +type: Form +identifier: certificationRegistration +label: 'TCCE Certification Registration' +prototypeName: hubspot +finishers: + - + options: + subject: 'Your registration for the TYPO3 Editor Certification' + recipientAddress: '{text-3}' + recipientName: '{text-1} {text-2}' + senderAddress: certification@typo3.org + senderName: 'TYPO3 Certification Team' + replyToAddress: '' + carbonCopyAddress: '' + blindCarbonCopyAddress: 2705124@bcc.hubspot.com + format: html + attachUploads: false + identifier: EmailToSender + - + options: + subject: 'TCCE Order by {text-1} {text-2}' + recipientAddress: certification@typo3.org + recipientName: 'TYPO3 Certifcation Team' + senderAddress: noreply@typo3.com + senderName: 'TYPO3.org Cert Order Form' + replyToAddress: '' + carbonCopyAddress: '' + blindCarbonCopyAddress: 2705124@bcc.hubspot.com + format: html + attachUploads: false + translation: + language: '' + identifier: EmailToReceiver + - + options: + message: 'Thank you for your order! We will start processing it right away and get back to you soon.' + identifier: Confirmation + - + identifier: Hubspot +renderables: + - + renderingOptions: + previousButtonLabel: 'Previous step' + nextButtonLabel: 'Next step' + type: Page + identifier: page-1 + label: 'TCCE Certification Order' + renderables: + - + properties: + hubspotProperty: pipeline + hubspotTable: deal + value: e2ba2c70-a4a1-4ac4-a362-671cfed285bc + defaultValue: e2ba2c70-a4a1-4ac4-a362-671cfed285bc + type: Hidden + identifier: hidden-2 + label: Pipeline + - + properties: + hubspotProperty: closed_won_reason + hubspotTable: deal + value: 'Certification Order Form typo3.org' + defaultValue: 'Certification Order Form typo3.org' + type: Hidden + identifier: hidden-3 + label: 'Closed Won Reason' + - + properties: + hubspotProperty: dealname + hubspotTable: deal + value: 'TCCE Online Certification' + defaultValue: 'TCCE Online Certification' + type: Hidden + identifier: hidden-4 + label: 'Deal Name' + - + properties: + hubspotProperty: product_type + hubspotTable: deal + value: Certification + defaultValue: Certification + type: Hidden + identifier: product_type + label: 'Product Type' + - + properties: + hubspotProperty: product_version + hubspotTable: deal + value: 'contact.1.0' + defaultValue: 'contact.1.0' + type: Hidden + identifier: product_version + label: 'Product Version' + - + properties: + hubspotProperty: product_period + hubspotTable: deal + value: 1 + defaultValue: 1 + type: Hidden + identifier: product_period + label: 'Product Period' + - + properties: + hubspotProperty: product_plan + hubspotTable: deal + value: 'TCCE' + defaultValue: 'TCCE' + type: Hidden + identifier: product_plan + label: 'Product Period' + - + properties: + hubspotProperty: dealstage + hubspotTable: deal + value: 2fb67a6f-e037-46e5-a452-0493f958e5b4 + defaultValue: 2fb67a6f-e037-46e5-a452-0493f958e5b4 + type: Hidden + identifier: dealstage + label: 'Deal stage' + - + properties: + hubspotProperty: amount + hubspotTable: deal + defaultValue: 200 + type: Hidden + identifier: amount + label: Amount + - + type: GridRow + identifier: gridrow-1 + label: 'Grid: Row' + renderables: + - + properties: + hubspotProperty: contact.1.firstname + hubspotTable: contact + fluidAdditionalAttributes: + placeholder: 'First Name' + required: required + elementDescription: '' + defaultValue: '' + type: Text + identifier: text-1 + label: 'First Name' + validators: + - + identifier: NotEmpty + - + properties: + hubspotProperty: contact.1.lastname + hubspotTable: contact + fluidAdditionalAttributes: + placeholder: 'Last Name' + required: required + elementDescription: '' + defaultValue: '' + type: Text + identifier: text-2 + label: 'Last Name' + validators: + - + identifier: NotEmpty + - + properties: + hubspotProperty: contact.1.email + hubspotTable: contact + fluidAdditionalAttributes: + placeholder: test@example.com + required: required + elementDescription: '' + defaultValue: '' + type: Text + identifier: text-3 + label: Email + validators: + - + identifier: NotEmpty + - + identifier: EmailAddress + - + properties: + hubspotProperty: contact.1.address + hubspotTable: contact + fluidAdditionalAttributes: + placeholder: 'Inspiring Street 3' + required: required + elementDescription: 'Street and Number' + defaultValue: '' + type: Text + identifier: text-4 + label: Address + validators: + - + identifier: NotEmpty + - + type: GridRow + identifier: gridrow-2 + label: 'Grid: Row' + renderables: + - + properties: + hubspotProperty: contact.1.city + hubspotTable: contact + fluidAdditionalAttributes: + placeholder: City + required: required + elementDescription: '' + defaultValue: '' + type: Text + identifier: text-5 + label: City + validators: + - + identifier: NotEmpty + - + properties: + hubspotProperty: contact.1.zip + hubspotTable: contact + fluidAdditionalAttributes: + required: required + placeholder: '45213 / EC1 1B' + elementDescription: '' + defaultValue: '' + type: Text + identifier: text-6 + label: 'Zip Code' + validators: + - + identifier: NotEmpty + - + properties: + hubspotProperty: contact.1.country + hubspotTable: contact + options: + 0: 'please select' + -1: '------------------------------------------------------------------' + Austria: Austria + Czech_Republic: 'Czech Republic' + Belgium: Belgium + Denmark: Denmark + Finland: Finland + France: France + Germany: Germany + India: India + Italy: Italy + Norway: Norway + Poland: Poland + Romania: Romania + Russia: Russia + Spain: Spain + Sweden: Sweden + Switzerland: Switzerland + Netherlands: 'The Netherlands' + United_Kingdom: 'United Kingdom' + United_States: 'United States of America' + -2: '------------------------------------------------------------------' + Andorra: Andorra + Afghanistan: Afghanistan + Albania: Albania + Algeria: Algeria + American_Samoa: 'American Samoa' + Angola: Angola + Anguilla: Anguilla + Antarctica: Antarctica + Antigua_and_Barbuda: 'Antigua and Barbuda' + Argentina: Argentina + Armenia: Armenia + Aruba: Aruba + Australia: Australia + Azerbaijan: Azerbaijan + Bahrain: Bahrain + Bangladesh: Bangladesh + Barbados: Barbados + Belarus: Belarus + Belize: Belize + Benin: Benin + Bermuda: Bermuda + Bhutan: Bhutan + Bolivia: Bolivia + Bonaire_Sint_Eustatius_and_Saba: 'Bonaire, Sint Eustatius and Saba' + Bosnia_and_Herzegovina: 'Bosnia and Herzegovina' + Botswana: Botswana + Bouvet_Island: 'Bouvet Island' + Brazil: Brazil + British_Indian_Ocean_Territory: 'British Indian Ocean Territory' + British_Virgin_Islands: 'British Virgin Islands' + Brunei: Brunei + Bulgaria: Bulgaria + Burkina_Faso: 'Burkina Faso' + Burundi: Burundi + Cambodia: Cambodia + Cameroon: Cameroon + Canada: Canada + Cape_Verde: 'Cape Verde' + Cayman_Islands: 'Cayman Islands' + Central_African_Republic: 'Central African Republic' + Chad: Chad + Chile: Chile + China: China + Christmas_Island: 'Christmas Island' + Cocos_Keeling_Islands: 'Cocos (Keeling) Islands' + Colombia: Colombia + Comoros: Comoros + Congo-Brazzaville: Congo-Brazzaville + Congo: Congo + Cook_Islands: 'Cook Islands' + Costa_Rica: 'Costa Rica' + Côte_d’Ivoire: 'Côte d’Ivoire' + Croatia: Croatia + Cuba: Cuba + Curaçao: Curaçao + Cyprus: Cyprus + Djibouti: Djibouti + Dominica: Dominica + Dominican_Republic: 'Dominican Republic' + Ecuador: Ecuador + Egypt: Egypt + El_Salvador: 'El Salvador' + Equatorial_Guinea: 'Equatorial Guinea' + Eritrea: Eritrea + Estonia: Estonia + Ethiopia: Ethiopia + Falkland_Islands: 'Falkland Islands' + Faroes: Faroes + Fiji: Fiji + French_Guiana: 'French Guiana' + French_Polynesia: 'French Polynesia' + French_Southern_Territories: 'French Southern Territories' + Gabon: Gabon + Gambia: Gambia + Georgia: Georgia + Ghana: Ghana + Gibraltar: Gibraltar + Greece: Greece + Greenland: Greenland + Grenada: Grenada + Guadeloupe: Guadeloupe + Guam: Guam + Guatemala: Guatemala + Guernsey: Guernsey + Guinea-Bissau: Guinea-Bissau + Guinea: Guinea + Guyana: Guyana + Haiti: Haiti + Heard_Island_and_McDonald_Islands: 'Heard Island and McDonald Islands' + Honduras: Honduras + Hong_Kong_SAR_of_China: 'Hong Kong SAR of China' + Hungary: Hungary + Iceland: Iceland + Indonesia: Indonesia + Iran: Iran + Iraq: Iraq + Ireland: Ireland + Isle_of_Man: 'Isle of Man' + Israel: Israel + Jamaica: Jamaica + Japan: Japan + Jersey: Jersey + Jordan: Jordan + Kazakhstan: Kazakhstan + Kenya: Kenya + Kiribati: Kiribati + Kuwait: Kuwait + Kyrgyzstan: Kyrgyzstan + Laos: Laos + Latvia: Latvia + Lebanon: Lebanon + Lesotho: Lesotho + Liberia: Liberia + Libya: Libya + Liechtenstein: Liechtenstein + Lithuania: Lithuania + Luxembourg: Luxembourg + Macao_SAR_of_China: 'Macao SAR of China' + Macedonia: Macedonia + Madagascar: Madagascar + Malawi: Malawi + Malaysia: Malaysia + Maldives: Maldives + Mali: Mali + Malta: Malta + Marshall_Islands: 'Marshall Islands' + Martinique: Martinique + Mauritania: Mauritania + Mauritius: Mauritius + Mayotte: Mayotte + Mexico: Mexico + Micronesia: Micronesia + Moldova: Moldova + Monaco: Monaco + Mongolia: Mongolia + Montenegro: Montenegro + Montserrat: Montserrat + Morocco: Morocco + Mozambique: Mozambique + Myanmar: Myanmar + Namibia: Namibia + Nauru: Nauru + Nepal: Nepal + Netherlands_Antilles: 'Netherlands Antilles' + New_Caledonia: 'New Caledonia' + New_Zealand: 'New Zealand' + Nicaragua: Nicaragua + Niger: Niger + Nigeria: Nigeria + Niue: Niue + Norfolk_Island: 'Norfolk Island' + North_Korea: 'North Korea' + Northern_Marianas: 'Northern Marianas' + Oman: Oman + Pakistan: Pakistan + Palau: Palau + Palestine: Palestine + Panama: Panama + Papua_New_Guinea: 'Papua New Guinea' + Paraguay: Paraguay + Peru: Peru + Philippines: Philippines + Pitcairn_Islands: 'Pitcairn Islands' + Portugal: Portugal + Puerto_Rico: 'Puerto Rico' + Qatar: Qatar + Reunion: Reunion + Rwanda: Rwanda + Saint_Barthélemy: 'Saint Barthélemy' + Saint_Helena_Ascension_and_Tristan_da_Cunha: 'Saint Helena, Ascension and Tristan da Cunha' + Saint_Kitts_and_Nevis: 'Saint Kitts and Nevis' + Saint_Lucia: 'Saint Lucia' + Saint_Martin: 'Saint Martin' + Saint_Pierre_and_Miquelon: 'Saint Pierre and Miquelon' + Saint_Vincent_and_the_Grenadines: 'Saint Vincent and the Grenadines' + Samoa: Samoa + San_Marino: 'San Marino' + São_Tomé_e_Príncipe: 'São Tomé e Príncipe' + Saudi_Arabia: 'Saudi Arabia' + Senegal: Senegal + Serbia_and_Montenegro: 'Serbia and Montenegro' + Serbia: Serbia + Seychelles: Seychelles + Sierra_Leone: 'Sierra Leone' + Singapore: Singapore + Sint_Maarten: 'Sint Maarten' + Slovakia: Slovakia + Slovenia: Slovenia + Solomon_Islands: 'Solomon Islands' + Somalia: Somalia + South_Africa: 'South Africa' + South_Georgia_and_the_South_Sandwich_Islands: 'South Georgia and the South Sandwich Islands' + South_Korea: 'South Korea' + South_Sudan: 'South Sudan' + Sri_Lanka: 'Sri Lanka' + Sudan: Sudan + Suriname: Suriname + Svalbard: Svalbard + Swaziland: Swaziland + Syria: Syria + Taiwan: Taiwan + Tajikistan: Tajikistan + Tanzania: Tanzania + Thailand: Thailand + The_Bahamas: 'The Bahamas' + Timor-Leste: Timor-Leste + Togo: Togo + Tokelau: Tokelau + Tonga: Tonga + Trinidad_and_Tobago: 'Trinidad and Tobago' + Tunisia: Tunisia + Turkey: Turkey + Turkmenistan: Turkmenistan + Turks_and_Caicos_Islands: 'Turks and Caicos Islands' + Tuvalu: Tuvalu + Uganda: Uganda + Ukraine: Ukraine + United_Arab_Emirates: 'United Arab Emirates' + United_States_Minor_Outlying_Islands: 'United States Minor Outlying Islands' + Uruguay: Uruguay + US_Virgin_Islands: 'US Virgin Islands' + Uzbekistan: Uzbekistan + Vanuatu: Vanuatu + Vatican_City: 'Vatican City' + Venezuela: Venezuela + Vietnam: Vietnam + Wallis_and_Futuna: 'Wallis and Futuna' + Western_Sahara: 'Western Sahara' + Yemen: Yemen + Zambia: Zambia + Zimbabwe: Zimbabwe + type: SingleSelect + identifier: singleselect-3 + label: Country + - + type: GridRow + identifier: gridrow-3 + label: 'Grid: Row' + renderables: + - + properties: + options: + 'true': 'Yes' + 'false': 'No' + hubspotProperty: contact.1.allow_listing_at_certified_people_listing + hubspotTable: contact + type: SingleSelect + identifier: listing + defaultValue: 'true' + label: 'List me on typo3.org if I succeed' diff --git a/ext_typoscript_setup.txt b/ext_typoscript_setup.txt new file mode 100644 index 0000000..9ab4cb9 --- /dev/null +++ b/ext_typoscript_setup.txt @@ -0,0 +1,15 @@ +module.tx_form { + settings { + yamlConfigurations { + 1483353762 = EXT:certifications/Configuration/Yaml/Backend.yaml + } + } +} + +plugin.tx_form { + settings { + yamlConfigurations { + 1483353762 = EXT:certifications/Configuration/Yaml/Frontend.yaml + } + } +} \ No newline at end of file -- GitLab