{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div >
<label>Registration-Successpage</label>
{{ pimcore_relation("successpage",{
"types": ["document"],
"subtypes": {
"document": ["page"],
},
width: 350
}) }}
</div>
<div>
<label>Confirmationpage (used for generating confirmation link)</label>
{{ pimcore_relation("confirmationpage",{
"types": ["document"],
"subtypes": {
"document": ["page"],
},
width: 350
}) }}
</div>
<div>
<label>Usermail</label>
{{ pimcore_relation("usermail",{
"types": ["document"],
"subtypes": {
"document": ["email"],
},
width: 350
}) }}
</div>
<div>
<label>Adminmail<small> (is sent, if a user that is already registered in a other region )</small></label>
{{ pimcore_relation("notificationmail",{
"types": ["document"],
"subtypes": {
"document": ["email"],
},
width: 350
}) }}
</div>
{% endblock %}
{% endembed %}
<div class="slide bg-dark-bg content-block">
<div class="container container-narrow">
{% if success|default(null) %}
<div class="alert-success">
{{ 'press-registration.success' }}
</div>
{% endif %}
{% if isRegisteredForRegion %}
<div class="alert alert-info">
<h4>
{{ "press-registration.User bereits registriert"|trans }}
</h4>
</div>
{% else %}
{% if not reducedForm %}
<div class="mb-3 text-center text-white">
{{ 'press-registration.Bereits registriert'|trans }}
<br>
<button class="btn btn-link js-nav__show-overlay mt-2" aria-label="Öffnen" title="Öffnen" data-nav-overlay-target="#loginOverlay" data-event-tracking-category="Navbar" data-event-tracking-action="Login" data-event-tracking-label="/de/press/login">
{{ 'press-registration.Zum Login'|trans }}
</button>
</div>
{% endif %}
<form action="/404" data-action="{{ app.request.pathInfo }}" method="post" class="js-action-changer js-form-validation mt-5 text-white">
<div class="content-block">
{% set title = "press-registration.1 Ihre Kontaktdaten"|trans %}
{% if reducedForm %}
{% set title = "press-registration.Für weiteres Portal anmelden"|trans %}
{% endif %}
{{ include('Includes/title-block.html.twig', {
title: title,
subtitle: null,
isCentered: true,
isWhite: true,
styleModifier: 'js-fade-in'
}) }}
<div class="row">
{% if not reducedForm|default(false) %}
<div class="col-md-12">
{{ include('Form/Includes/form-control.html.twig', {
id: 'company',
name: 'company',
value: app.request.get('company', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.company'|trans,
type: 'text',
required: true,
errors: errors['company'] is defined ? [errors['company']] : 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-contact.Anrede'|trans,
styleModifier: 'form-group--sm',
options: [
{
label: "",
value: "",
disabled: true,
selected: not app.request.get('salutation'),
class: "sr-only"
}, {
label: 'press.Frau'|trans,
value: 'press.Frau'|trans,
selected: app.request.get('salutation') and app.request.get('salutation') == 'press.Frau'|trans,
class: '',
}, {
label: 'press.Herr'|trans,
value: 'press.Herr'|trans,
selected: app.request.get('salutation') and app.request.get('salutation') == 'press.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: 'title',
name: 'title',
value: app.request.get('title', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.title'|trans,
type: 'text',
required: false,
errors: errors['title'] is defined ? [errors['title']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'firstname',
name: 'firstname',
value: app.request.get('firstname', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.firstname'|trans,
type: 'text',
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',
value: app.request.get('lastname', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.lastname'|trans,
type: 'text',
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',
value: app.request.get('street', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.street'|trans,
type: 'text',
required: true,
errors: errors['street'] is defined ? [errors['street']] : null,
}) }}
</div>
<div class="col-md-2">
{{ include('Form/Includes/form-control.html.twig', {
id: 'zip',
name: 'zip',
value: app.request.get('zip', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.zip'|trans,
type: 'text',
required: true,
errors: errors['zip'] is defined ? [errors['zip']] : null,
}) }}
</div>
<div class="col-md-4">
{{ include('Form/Includes/form-control.html.twig', {
id: 'city',
name: 'city',
value: app.request.get('city', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.city'|trans,
type: 'text',
required: true,
errors: errors['city'] is defined ? [errors['city']] : null,
}) }}
</div>
<div class="col-md-6">
{{ 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: 'press-registration.Land'|trans,
styleModifier: 'form-group--sm',
options: getCountrySelectData(app.request.locale, app.request.get('country', '')),
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',
value: app.request.get('phone', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.phone'|trans,
type: 'text',
required: true,
errors: errors['phone'] is defined ? [errors['phone']] : null,
}) }}
</div>
{% endif %}
<div class="col-12">
{{ include('Form/Includes/text-area.html.twig', {
name: 'usage',
id: 'usage',
value: app.request.get('usage', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.Nutzungszweck'|trans,
required: true,
errors: errors['usage'] is defined ? [errors['usage']] : null,
}) }}
</div>
<div class="col-12">
{{ include('Form/Includes/text-area.html.twig', {
name: 'message',
id: 'message',
value: app.request.get('message', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.Ihre Nachricht'|trans,
required: false,
errors: errors['message'] is defined ? [errors['message']] : null,
}) }}
</div>
</div>
</div>
{% if not reducedForm|default(false) %}
<div class="content-block">
{{ include('Includes/title-block.html.twig', {
title: "press-registration.2 Ihre gwünschten Anmeldedaten"|trans,
subtitle: null,
isCentered: true,
isWhite: true,
styleModifier: 'js-fade-in'
}) }}
<div class="row">
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'email',
name: 'email',
value: app.request.get('email', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.E-Mail'|trans,
type: 'text',
required: true,
errors: errors['email'] is defined ? [errors['email']] : null,
}) }}
</div>
<div class="col-md-6">
{{ include('Form/Includes/form-control.html.twig', {
id: 'password',
name: 'password',
value: '',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press-registration.Passwort'|trans,
type: 'password',
required: true,
errors: errors['password'] is defined ? [errors['password']] : null,
}) }}
</div>
</div>
</div>
{% endif %}
<div class="text-right small mb-1">
*{{'convention-contact.Pflichtfelder'|trans}}
</div>
{{ include('Form/Includes/form-control.html.twig', {
type: 'hidden',
name: 'gdpr-text',
id: 'gdpr-text',
value: 'press-registration.Ich stimme den <a href="#">Datenschutzbestimmungen</a> zu.'|trans
}) }}
<div>{{ 'press-registration.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">{{ 'press-registration.Registrieren'|trans }}</button>
</div>
<div class="text-center small mt-5 text-muted">
{{ 'press-registration.Datenverarbeitung'|trans }}
</div>
</form>
{% endif %}
</div>
</div>