templates/forms/whistleBlowerContact.html.twig line 1

Open in your IDE?
  1. {% extends "layout/default.html.twig" %}
  2. {% block content %}
  3.     <main id="main-content" role="main" class="{{ not editmode ? 'main-content' }} content-block js-content-visibility content-visibility--auto">
  4.         {% if not editmode %}
  5.             {{ include('navigation/breadcrumb.html.twig') }}
  6.         {% endif %}
  7.         <section class="contact-form-area container">
  8.             <div class="row mb-5">
  9.                 <div class="col-md-7">
  10.                     {{ include('includes/title-blocks/title-block.html.twig', {subtitleStyle: 'text-gradient-primary'}) }}
  11.                 </div>
  12.             </div>
  13.             <div class="row mt-5">
  14.                 <div class="col-md-12">
  15.                     {% if editmode %}
  16.                         {% embed('includes/editmode-settings.html.twig') %}
  17.                             {% block settings %}
  18.                                 <div>
  19.                                     E-Mail document admin:
  20.                                     {{ pimcore_relation('email-admin', {
  21.                                         "types": ["document"],
  22.                                         "subtypes": {
  23.                                             "document": ["email"],
  24.                                         }
  25.                                     }) }}
  26.                                 </div><br>
  27.                                 <div>
  28.                                     E-Mail address admin:
  29.                                     {{ pimcore_input('admin-address') }}
  30.                                 </div><br>
  31.                                 <div>
  32.                                     Success page:
  33.                                     {{ pimcore_relation('success', {
  34.                                         "types": ["document"],
  35.                                         "subtypes": {
  36.                                             "document": ["page", "link"],
  37.                                         }
  38.                                     }) }}
  39.                                 </div>
  40.                             {% endblock %}
  41.                         {% endembed %}
  42.                     {% endif %}
  43.                     {{ include('includes/atoms/flash-messages.html.twig', {
  44.                         styleModifier: 'mb-3'
  45.                     }) }}
  46.                     <form action="" class="contact-form js-reload-form js-form-validation js-elhc-form" data-form-validation-default-submit="false" method="POST">
  47.                         <div class="js-reload-form__loading" hidden>
  48.                             {{ include('includes/overlays/loading-overlay.html.twig') }}
  49.                         </div>
  50.                         <div class="row gy-4">
  51.                             {% for inputKey, inputName in el_hash_cash().createStamp() %}
  52.                                 <input type="hidden" name="{{ inputKey }}" value="{{ inputName }}">
  53.                             {% endfor %}
  54.                             <div class="row">
  55.                                 <div class="col-md-3 col-sm-4 col-6">
  56.                                     {{ include('includes/form_elements/select.html.twig', {
  57.                                         id: 'salutation',
  58.                                         name: 'salutation',
  59.                                         label: 'form.salutation'|trans,
  60.                                         className: 'form-group',
  61.                                         inputWrapperModifier: "has-value",
  62.                                         options: [{
  63.                                             label: '',
  64.                                             value: '',
  65.                                             selected: true
  66.                                         }, {
  67.                                             label: 'form.salutation.male'|trans,
  68.                                             value: 'male'
  69.                                         }, {
  70.                                             label: 'form.salutation.female'|trans,
  71.                                             value: 'female'
  72.                                         }, {
  73.                                             label: 'form.salutation.divers'|trans,
  74.                                             value: 'divers'
  75.                                         }]
  76.                                     }) }}
  77.                                 </div>
  78.                             </div>
  79.                             <div class="col-md-4">
  80.                                 {{ include('includes/form_elements/select.html.twig', {
  81.                                     id: 'company',
  82.                                     name: 'company',
  83.                                     label: 'form.company'|trans,
  84.                                     className: 'form-group',
  85.                                     inputWrapperModifier: "has-value",
  86.                                     options: [{
  87.                                         label: 'form.company.none'|trans,
  88.                                         value: 'form.company.none'|trans,
  89.                                         selected: true
  90.                                     }, {
  91.                                         label: 'form.company.holding'|trans,
  92.                                         value: 'form.company.holding'|trans,
  93.                                     }, {
  94.                                         label: 'form.company.construction'|trans,
  95.                                         value: 'form.company.construction'|trans,
  96.                                     }, {
  97.                                         label: 'form.company.loader'|trans,
  98.                                         value: 'form.company.loader'|trans,
  99.                                     }]
  100.                                 }) }}
  101.                             </div>
  102.                             <div class="col-md-4 col-sm-6 col-6">
  103.                                 {{ include('includes/form_elements/form-control.html.twig', {
  104.                                     label: 'form.name'|trans,
  105.                                     placeholder: 'form.name'|trans,
  106.                                     id: "name",
  107.                                     name: "name"
  108.                                 }) }}
  109.                             </div>
  110.                             <div class="col-md-4">
  111.                                 {{ include('includes/form_elements/form-control.html.twig', {
  112.                                     label: 'form.email'|trans,
  113.                                     placeholder: 'form.email'|trans,
  114.                                     id: "email",
  115.                                     name: "email",
  116.                                     type: "email"
  117.                                 }) }}
  118.                             </div>
  119.                             <div class="col-md-7">
  120.                                 {{ include('includes/form_elements/text-area.html.twig', {
  121.                                     label: 'form.message'|trans,
  122.                                     placeholder: 'form.message'|trans,
  123.                                     id: "message",
  124.                                     name: "message"
  125.                                 }) }}
  126.                                 <div class="text-small--grey help-form--row">{{ 'form.pflichtfelder'|trans }}</div>
  127.                             </div>
  128.                         </div>
  129.                         <div class="text-center form-button">
  130.                             <button type="submit" class="btn btn-primary">{{ 'form.submit'|trans }}</button>
  131.                         </div>
  132.                     </form>
  133.                 </div>
  134.             </div>
  135.         </section>
  136.         {{ include('includes/areablock.html.twig') }}
  137.     </main>
  138. {% endblock %}