templates/Press/Includes/pressRegistrationForm.html.twig line 1

Open in your IDE?
  1. {% embed 'Includes/editmode-settings.html.twig' %}
  2.     {% block additionalInfo %}
  3.         <div >
  4.             <label>Registration-Successpage</label>
  5.             {{ pimcore_relation("successpage",{
  6.                 "types": ["document"],
  7.                 "subtypes": {
  8.                     "document": ["page"],
  9.                 },
  10.                 width: 350
  11.             }) }}
  12.         </div>
  13.         <div>
  14.             <label>Confirmationpage (used for generating confirmation link)</label>
  15.             {{ pimcore_relation("confirmationpage",{
  16.                 "types": ["document"],
  17.                 "subtypes": {
  18.                     "document": ["page"],
  19.                 },
  20.                 width: 350
  21.             }) }}
  22.         </div>
  23.         <div>
  24.             <label>Usermail</label>
  25.             {{ pimcore_relation("usermail",{
  26.                 "types": ["document"],
  27.                 "subtypes": {
  28.                     "document": ["email"],
  29.                 },
  30.                 width: 350
  31.             }) }}
  32.         </div>
  33.         <div>
  34.             <label>Adminmail<small> (is sent, if a user that is already registered in a other region )</small></label>
  35.             {{ pimcore_relation("notificationmail",{
  36.                 "types": ["document"],
  37.                 "subtypes": {
  38.                     "document": ["email"],
  39.                 },
  40.                 width: 350
  41.             }) }}
  42.         </div>
  43.     {% endblock %}
  44. {% endembed %}
  45. <div class="slide bg-dark-bg content-block">
  46.     <div class="container container-narrow">
  47.         {% if success|default(null) %}
  48.             <div class="alert-success">
  49.                 {{ 'press-registration.success' }}
  50.             </div>
  51.         {% endif %}
  52.         {% if isRegisteredForRegion %}
  53.             <div class="alert alert-info">
  54.                 <h4>
  55.                     {{ "press-registration.User bereits registriert"|trans }}
  56.                 </h4>
  57.             </div>
  58.         {% else %}
  59.             {% if not reducedForm %}
  60.                 <div class="mb-3 text-center text-white">
  61.                     {{ 'press-registration.Bereits registriert'|trans }}
  62.                     <br>
  63.                     <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">
  64.                         {{ 'press-registration.Zum Login'|trans }}
  65.                     </button>
  66.                 </div>
  67.             {% endif %}
  68.             <form action="/404" data-action="{{ app.request.pathInfo }}" method="post" class="js-action-changer js-form-validation mt-5 text-white">
  69.                 <div class="content-block">
  70.                     {% set title = "press-registration.1 Ihre Kontaktdaten"|trans %}
  71.                     {% if reducedForm %}
  72.                         {% set title = "press-registration.Für weiteres Portal anmelden"|trans %}
  73.                     {% endif %}
  74.                     {{ include('Includes/title-block.html.twig', {
  75.                         title: title,
  76.                         subtitle: null,
  77.                         isCentered: true,
  78.                         isWhite:  true,
  79.                         styleModifier: 'js-fade-in'
  80.                     }) }}
  81.                     <div class="row">
  82.                         {% if not reducedForm|default(false) %}
  83.                             <div class="col-md-12">
  84.                                 {{ include('Form/Includes/form-control.html.twig', {
  85.                                     id: 'company',
  86.                                     name: 'company',
  87.                                     value: app.request.get('company', ''),
  88.                                     inputModifier: 'js-floating-label',
  89.                                     inputWrapperModifier: 'position-relative',
  90.                                     labelModifier: 'floating-label',
  91.                                     label: 'press-registration.company'|trans,
  92.                                     type: 'text',
  93.                                     required: true,
  94.                                     errors: errors['company'] is defined ? [errors['company']] : null,
  95.                                 }) }}
  96.                             </div>
  97.                             <div class="col-md-6">
  98.                                 {{ include('Form/Includes/select.html.twig', {
  99.                                     id: 'salutation',
  100.                                     inputModifier: "js-floating-label",
  101.                                     labelModifier: "floating-label",
  102.                                     inputWrapperModifier: "select__input-wrapper position-relative",
  103.                                     name: "salutation",
  104.                                     required: true,
  105.                                     label: 'convention-contact.Anrede'|trans,
  106.                                     styleModifier: 'form-group--sm',
  107.                                     options: [
  108.                                         {
  109.                                             label: "",
  110.                                             value: "",
  111.                                             disabled: true,
  112.                                             selected: not app.request.get('salutation'),
  113.                                             class: "sr-only"
  114.                                         }, {
  115.                                             label: 'press.Frau'|trans,
  116.                                             value: 'press.Frau'|trans,
  117.                                             selected: app.request.get('salutation') and app.request.get('salutation') == 'press.Frau'|trans,
  118.                                             class: '',
  119.                                         }, {
  120.                                             label: 'press.Herr'|trans,
  121.                                             value: 'press.Herr'|trans,
  122.                                             selected: app.request.get('salutation') and app.request.get('salutation') == 'press.Herr'|trans,
  123.                                             class: ""
  124.                                         },],
  125.                                     errors: errors['salutation'] is defined ? [errors['salutation']] : null,
  126.                                 }) }}
  127.                             </div>
  128.                             <div class="col-md-6">
  129.                                 {{ include('Form/Includes/form-control.html.twig', {
  130.                                     id: 'title',
  131.                                     name: 'title',
  132.                                     value: app.request.get('title', ''),
  133.                                     inputModifier: 'js-floating-label',
  134.                                     inputWrapperModifier: 'position-relative',
  135.                                     labelModifier: 'floating-label',
  136.                                     label: 'press-registration.title'|trans,
  137.                                     type: 'text',
  138.                                     required: false,
  139.                                     errors: errors['title'] is defined ? [errors['title']] : null,
  140.                                 }) }}
  141.                             </div>
  142.                             <div class="col-md-6">
  143.                                 {{ include('Form/Includes/form-control.html.twig', {
  144.                                     id: 'firstname',
  145.                                     name: 'firstname',
  146.                                     value: app.request.get('firstname', ''),
  147.                                     inputModifier: 'js-floating-label',
  148.                                     inputWrapperModifier: 'position-relative',
  149.                                     labelModifier: 'floating-label',
  150.                                     label: 'press-registration.firstname'|trans,
  151.                                     type: 'text',
  152.                                     required: true,
  153.                                     errors: errors['firstname'] is defined ? [errors['firstname']] : null,
  154.                                 }) }}
  155.                             </div>
  156.                             <div class="col-md-6">
  157.                                 {{ include('Form/Includes/form-control.html.twig', {
  158.                                     id: 'lastname',
  159.                                     name: 'lastname',
  160.                                     value: app.request.get('lastname', ''),
  161.                                     inputModifier: 'js-floating-label',
  162.                                     inputWrapperModifier: 'position-relative',
  163.                                     labelModifier: 'floating-label',
  164.                                     label: 'press-registration.lastname'|trans,
  165.                                     type: 'text',
  166.                                     required: true,
  167.                                     errors: errors['lastname'] is defined ? [errors['lastname']] : null,
  168.                                 }) }}
  169.                             </div>
  170.                             <div class="col-md-6">
  171.                                 {{ include('Form/Includes/form-control.html.twig', {
  172.                                     id: 'street',
  173.                                     name: 'street',
  174.                                     value: app.request.get('street', ''),
  175.                                     inputModifier: 'js-floating-label',
  176.                                     inputWrapperModifier: 'position-relative',
  177.                                     labelModifier: 'floating-label',
  178.                                     label: 'press-registration.street'|trans,
  179.                                     type: 'text',
  180.                                     required: true,
  181.                                     errors: errors['street'] is defined ? [errors['street']] : null,
  182.                                 }) }}
  183.                             </div>
  184.                             <div class="col-md-2">
  185.                                 {{ include('Form/Includes/form-control.html.twig', {
  186.                                     id: 'zip',
  187.                                     name: 'zip',
  188.                                     value: app.request.get('zip', ''),
  189.                                     inputModifier: 'js-floating-label',
  190.                                     inputWrapperModifier: 'position-relative',
  191.                                     labelModifier: 'floating-label',
  192.                                     label: 'press-registration.zip'|trans,
  193.                                     type: 'text',
  194.                                     required: true,
  195.                                     errors: errors['zip'] is defined ? [errors['zip']] : null,
  196.                                 }) }}
  197.                             </div>
  198.                             <div class="col-md-4">
  199.                                 {{ include('Form/Includes/form-control.html.twig', {
  200.                                     id: 'city',
  201.                                     name: 'city',
  202.                                     value: app.request.get('city', ''),
  203.                                     inputModifier: 'js-floating-label',
  204.                                     inputWrapperModifier: 'position-relative',
  205.                                     labelModifier: 'floating-label',
  206.                                     label: 'press-registration.city'|trans,
  207.                                     type: 'text',
  208.                                     required: true,
  209.                                     errors: errors['city'] is defined ? [errors['city']] : null,
  210.                                 }) }}
  211.                             </div>
  212.                             <div class="col-md-6">
  213.                                 {{ include('Form/Includes/select.html.twig', {
  214.                                     id: 'country',
  215.                                     inputModifier: "js-floating-label",
  216.                                     labelModifier: "floating-label",
  217.                                     inputWrapperModifier: "select__input-wrapper position-relative",
  218.                                     name: "country",
  219.                                     required: true,
  220.                                     label: 'press-registration.Land'|trans,
  221.                                     styleModifier: 'form-group--sm',
  222.                                     options: getCountrySelectData(app.request.locale, app.request.get('country', '')),
  223.                                     errors: errors['country'] is defined ? [errors['country']] : null,
  224.                                 }) }}
  225.                             </div>
  226.                             <div class="col-md-6">
  227.                                 {{ include('Form/Includes/form-control.html.twig', {
  228.                                     id: 'phone',
  229.                                     name: 'phone',
  230.                                     value: app.request.get('phone', ''),
  231.                                     inputModifier: 'js-floating-label',
  232.                                     inputWrapperModifier: 'position-relative',
  233.                                     labelModifier: 'floating-label',
  234.                                     label: 'press-registration.phone'|trans,
  235.                                     type: 'text',
  236.                                     required: true,
  237.                                     errors: errors['phone'] is defined ? [errors['phone']] : null,
  238.                                 }) }}
  239.                             </div>
  240.                         {% endif %}
  241.                         <div class="col-12">
  242.                             {{ include('Form/Includes/text-area.html.twig', {
  243.                                 name: 'usage',
  244.                                 id: 'usage',
  245.                                 value: app.request.get('usage', ''),
  246.                                 inputModifier: 'js-floating-label',
  247.                                 inputWrapperModifier: 'position-relative',
  248.                                 labelModifier: 'floating-label',
  249.                                 label: 'press-registration.Nutzungszweck'|trans,
  250.                                 required: true,
  251.                                 errors: errors['usage'] is defined ? [errors['usage']] : null,
  252.                             }) }}
  253.                         </div>
  254.                         <div class="col-12">
  255.                             {{ include('Form/Includes/text-area.html.twig', {
  256.                                 name: 'message',
  257.                                 id: 'message',
  258.                                 value: app.request.get('message', ''),
  259.                                 inputModifier: 'js-floating-label',
  260.                                 inputWrapperModifier: 'position-relative',
  261.                                 labelModifier: 'floating-label',
  262.                                 label: 'press-registration.Ihre Nachricht'|trans,
  263.                                 required: false,
  264.                                 errors: errors['message'] is defined ? [errors['message']] : null,
  265.                             }) }}
  266.                         </div>
  267.                     </div>
  268.                 </div>
  269.                 {% if not reducedForm|default(false) %}
  270.                     <div class="content-block">
  271.                         {{ include('Includes/title-block.html.twig', {
  272.                             title: "press-registration.2 Ihre gwünschten Anmeldedaten"|trans,
  273.                             subtitle: null,
  274.                             isCentered: true,
  275.                             isWhite:  true,
  276.                             styleModifier: 'js-fade-in'
  277.                         }) }}
  278.                         <div class="row">
  279.                             <div class="col-md-6">
  280.                                 {{ include('Form/Includes/form-control.html.twig', {
  281.                                     id: 'email',
  282.                                     name: 'email',
  283.                                     value: app.request.get('email', ''),
  284.                                     inputModifier: 'js-floating-label',
  285.                                     inputWrapperModifier: 'position-relative',
  286.                                     labelModifier: 'floating-label',
  287.                                     label: 'press-registration.E-Mail'|trans,
  288.                                     type: 'text',
  289.                                     required: true,
  290.                                     errors: errors['email'] is defined ? [errors['email']] : null,
  291.                                 }) }}
  292.                             </div>
  293.                             <div class="col-md-6">
  294.                                 {{ include('Form/Includes/form-control.html.twig', {
  295.                                     id: 'password',
  296.                                     name: 'password',
  297.                                     value: '',
  298.                                     inputModifier: 'js-floating-label',
  299.                                     inputWrapperModifier: 'position-relative',
  300.                                     labelModifier: 'floating-label',
  301.                                     label: 'press-registration.Passwort'|trans,
  302.                                     type: 'password',
  303.                                     required: true,
  304.                                     errors: errors['password'] is defined ? [errors['password']] : null,
  305.                                 }) }}
  306.                             </div>
  307.                         </div>
  308.                     </div>
  309.                 {% endif %}
  310.                 <div class="text-right small mb-1">
  311.                     *{{'convention-contact.Pflichtfelder'|trans}}
  312.                 </div>
  313.                 {{ include('Form/Includes/form-control.html.twig', {
  314.                     type: 'hidden',
  315.                     name: 'gdpr-text',
  316.                     id: 'gdpr-text',
  317.                     value: 'press-registration.Ich stimme den <a href="#">Datenschutzbestimmungen</a> zu.'|trans
  318.                 }) }}
  319.                 <div>{{ 'press-registration.Ich stimme den <a href="#">Datenschutzbestimmungen</a> zu.'|trans|raw }}</div>
  320.                 <div class="text-center mt-4">
  321.                     <button type="submit" class="btn btn-primary-light">{{ 'press-registration.Registrieren'|trans }}</button>
  322.                 </div>
  323.                 <div class="text-center small mt-5 text-muted">
  324.                     {{ 'press-registration.Datenverarbeitung'|trans }}
  325.                 </div>
  326.             </form>
  327.         {% endif %}
  328.     </div>
  329. </div>