Connect contact forms with buspro api
This commit is contained in:
@@ -7,12 +7,16 @@ label: Kontaktformular
|
||||
prototypeName: contactform
|
||||
finishers:
|
||||
-
|
||||
identifier: BpnApiFinisher
|
||||
options:
|
||||
subject: 'Kontaktanfrage von {text-1}'
|
||||
apiToken: foobarbaz
|
||||
-
|
||||
options:
|
||||
subject: 'Kontaktanfrage von {vorname} {name}'
|
||||
recipientAddress: [email protected]
|
||||
recipientName: 'E&P Reisen'
|
||||
senderAddress: '{text-4}'
|
||||
senderName: '{text-1}'
|
||||
senderAddress: '{email}'
|
||||
senderName: '{vorname} {name}'
|
||||
replyToAddress: [email protected]
|
||||
carbonCopyAddress: ''
|
||||
blindCarbonCopyAddress: ''
|
||||
@@ -38,11 +42,11 @@ renderables:
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-1
|
||||
label: Name
|
||||
identifier: vorname
|
||||
label: Vorname
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Vor- & Nachname'
|
||||
placeholder: 'Vorname'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
@@ -51,21 +55,34 @@ renderables:
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-2
|
||||
label: Anschrift
|
||||
identifier: name
|
||||
label: Nachname
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Straße & Nr.'
|
||||
placeholder: 'Nachname'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
m: m
|
||||
w: w
|
||||
d: d
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
type: SingleSelect
|
||||
identifier: geschlecht
|
||||
label: Gender
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-3
|
||||
label: 'PLZ, Ort'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-4
|
||||
identifier: email
|
||||
label: E-Mail
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
@@ -78,16 +95,35 @@ renderables:
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-5
|
||||
identifier: strasse
|
||||
label: Straße
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Straße & Nr.'
|
||||
elementDescription: ''
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: plz
|
||||
label: 'PLZ'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: ort
|
||||
label: 'Ort'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: telefon
|
||||
label: Telefon
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Textarea
|
||||
identifier: textarea-1
|
||||
identifier: message
|
||||
label: 'Deine Kontaktanfrage'
|
||||
-
|
||||
type: Checkbox
|
||||
identifier: checkbox-1
|
||||
identifier: privacypolicyaccepted
|
||||
label: 'Ich habe die Datenschutzbestimmungen gelesen und akzeptiere sie'
|
||||
properties:
|
||||
elementDescription: ''
|
||||
|
||||
@@ -76,6 +76,9 @@
|
||||
<trans-unit id="tx_eptheme.message.contactForm.name.1221560718">
|
||||
<target>Bitte angeben</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_eptheme.message.contactForm.firstName.1221560718">
|
||||
<target>Bitte angeben</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_eptheme.message.contactForm.email.1221560718">
|
||||
<target>Bitte angeben</target>
|
||||
</trans-unit>
|
||||
|
||||
@@ -75,6 +75,9 @@
|
||||
<trans-unit id="tx_eptheme.message.contactForm.name.1221560718">
|
||||
<source>Bitte angeben</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_eptheme.message.contactForm.firstName.1221560718">
|
||||
<source>Bitte angeben</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_eptheme.message.contactForm.email.1221560718">
|
||||
<source>Bitte angeben</source>
|
||||
</trans-unit>
|
||||
|
||||
@@ -18,6 +18,18 @@
|
||||
<div class="help-block"
|
||||
v-show="formErrors.name" v-html="formErrors.name"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.firstName }">
|
||||
<label for="firstName" class="control-label">Vorname*</label>
|
||||
<f:form.textfield class="form-control" property="firstName"/>
|
||||
<div class="help-block"
|
||||
v-show="formErrors.firstName" v-html="formErrors.firstName"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.gender }">
|
||||
<label for="gender" class="control-label">Gender*</label>
|
||||
<f:form.select class="form-control" property="gender" options="{m: 'M', w: 'W', d: 'D'}"/>
|
||||
<div class="help-block"
|
||||
v-show="formErrors.gender" v-html="formErrors.gender"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.company }">
|
||||
<label for="company" class="control-label">Firma/Verein</label>
|
||||
<f:form.textfield class="form-control" property="company"/>
|
||||
|
||||
@@ -12,12 +12,24 @@
|
||||
pageUid="{settings.defaultAjaxUid}" class="border"
|
||||
additionalAttributes="{'v-show': '!success', '@submit.prevent': 'submitForm()'}">
|
||||
<f:form.hidden property="pageUrl"/>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.gender }">
|
||||
<label for="gender" class="control-label">Geschlecht</label>
|
||||
<f:form.select options="{m: 'm', w: 'w', d: 'd'}" property="gender" />
|
||||
<div class="help-block"
|
||||
v-show="formErrors.gender" v-html="formErrors.gender"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.name }">
|
||||
<label for="name" class="control-label">Name</label>
|
||||
<f:form.textfield class="form-control" property="name"/>
|
||||
<div class="help-block"
|
||||
v-show="formErrors.name" v-html="formErrors.name"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.firstName }">
|
||||
<label for="firstName" class="control-label">Vorname</label>
|
||||
<f:form.textfield class="form-control" property="firstName"/>
|
||||
<div class="help-block"
|
||||
v-show="formErrors.firstName" v-html="formErrors.firstName"></div>
|
||||
</div>
|
||||
<div class="form-group" :class="{ 'has-error': formErrors.email }">
|
||||
<label for="email" class="control-label">E-Mail</label>
|
||||
<f:form.textfield class="form-control" property="email"/>
|
||||
|
||||
Reference in New Issue
Block a user