<div class="slide bg-dark-bg content-block">
<div class="container container-narrow">
{{ include('Includes/title-block.html.twig', {
title: title|default('') ? title : "convention-detail.Partner anfragen"|trans,
subtitle: subtitle|default('') ? subtitle : "convention-detail.Partner anfragen subtitle"|trans,
isCentered: true,
isWhite: true,
styleModifier: 'js-fade-in'
}) }}
{% if formSendData is defined and not formSendData is empty %}
{% if formSendData['success'] %}
<div class="alert alert-success">
<strong>{{ 'error.Senden erfolgreich'|trans }}</strong>
</div>
{% elseif not formSendData['errors'] is empty %}
<div class="alert alert-danger">
<strong>{{ 'error.Es sind Fehler aufgetreten'|trans }}</strong>
</div>
{% endif %}
{% endif %}
<form action="/404" method="post" data-action="{{ app.request.pathInfo }}" class="js-action-changer js-form-validation mt-5 text-white">
<input type="hidden" name="isSend" value="1">
<input type="hidden" name="partner" value="{{ id|default(null) }}">
<div class="row js-datepicker-range">
<div class="col-6">
{{ include('Form/Includes/date-picker.html.twig', {
"id": "arrival",
"name": "arrival",
"label": "convention-detail.Anreise"|trans,
"min": carbon().today().toDateTimeString(),
"value": carbon().today().toDateTimeString(),
"numberOfMonths": 2,
"styleModifier": 'js-datepicker-range__from form-group--sm',
"inputHiddenModifier": "js-floating-label",
"inputWrapperModifier": "position-relative datepicker-container",
"labelModifier": "floating-label",
errors: errors['anreise'] is defined ? [errors['anreise']] : null,
}) }}
</div>
<div class="col-6">
{{ include('Form/Includes/date-picker.html.twig', {
"id": "departure",
"name": "departure",
"label": "convention-detail.Abreise"|trans,
"value": carbon().today().addDays(4).toDateTimeString(),
"min": carbon().today().toDateTimeString(),
"numberOfMonths": 2,
"styleModifier": "js-datepicker-range__to form-group--sm",
"inputHiddenModifier": "js-floating-label",
"inputWrapperModifier": "position-relative datepicker-container",
"labelModifier": "floating-label",
errors: errors['abreise'] is defined ? [errors['abreise']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'company',
name: 'company',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Firma'|trans,
required: true,
errors: errors['company'] is defined ? [errors['company']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'participants',
name: 'participants',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Teilnehmer'|trans,
type: 'number',
required: true,
errors: errors['participants'] is defined ? [errors['participants']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/select.html.twig', {
id: 'salutation',
inputModifier: "js-floating-label",
labelModifier: "floating-label",
inputWrapperModifier: "select__input-wrapper position-relative",
name: "salutation",
required: true,
label: 'convention-detail.Anrede'|trans,
styleModifier: 'form-group--sm',
options: [
{
"label": "",
"value": "",
"disabled": true,
"selected": true,
"class": "sr-only"
}, {
"label": 'convention-detail.Frau'|trans,
"value": 'convention-detail.Frau'|trans,
"class": '',
}, {
"label": 'convention-detail.Herr'|trans,
"value": 'convention-detail.Herr'|trans,
"class": ""
},],
errors: errors['salutation'] is defined ? [errors['salutation']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'firstname',
name: 'firstname',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Vorname'|trans,
required: true,
errors: errors['firstname'] is defined ? [errors['firstname']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'lastname',
name: 'lastname',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Nachname'|trans,
required: true,
errors: errors['lastname'] is defined ? [errors['lastname']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'street',
name: 'street',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Straße'|trans,
required: true,
errors: errors['street'] is defined ? [errors['street']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'zip',
name: 'zip',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.PLZ'|trans,
required: true,
errors: errors['zip'] is defined ? [errors['zip']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'city',
name: 'city',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Ort'|trans,
required: true,
errors: errors['city'] is defined ? [errors['city']] : null,
}) }}
</div>
<div class="col-md-12">
{{ include('Form/Includes/select.html.twig', {
id: 'country',
inputModifier: "js-floating-label",
labelModifier: "floating-label",
inputWrapperModifier: "select__input-wrapper position-relative",
name: "country",
required: true,
label: 'convention-detail.Land'|trans,
styleModifier: 'form-group--sm',
options: getCountrySelectData(app.request.locale),
errors: errors['country'] is defined ? [errors['country']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'phone',
name: 'phone',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Telefon'|trans,
required: true,
errors: errors['phone'] is defined ? [errors['phone']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'email',
name: 'email',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.E-Mmail'|trans,
required: true,
errors: errors['email'] is defined ? [errors['email']] : null,
}) }}
</div>
<div class="col-12">
{{ include('Form/Includes/radio-group.html.twig', {
"title": "convention-detail.Wie möchten Sie kontaktiert werden?"|trans,
"titleStyleModifier": "h6",
"id": "contactType",
"name": "contactType",
"options": [
{
"label": "convention-detail.per Telefon"|trans,
"value": "1"
}, {
"label": "convention-detail.per E-mail"|trans,
"value": "2"
}
]
}) }}
</div>
<div class="col-12">
{{ include('Form/Includes/text-area.html.twig', {
id: 'message',
name: 'message',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'convention-detail.Ihre Nachricht'|trans,
required: false
}) }}
</div>
</div>
<div class="text-right small mb-1">
*{{'convention-detail.Pflichtfelder'|trans}}
</div>
<div>{{ 'convention-detail.Ich stimme den <a href="#">Datenschutzbestimmungen</a> zu.'|trans|raw }}</div>
<div class="text-center mt-4">
<button type="submit" class="btn btn-primary-light">{{'convention-detail.Kontaktanfrage sende'|trans}}</button>
</div>
</form>
</div>
</div>