templates/home/contact.html.twig line 1

Open in your IDE?
  1. {% extends baseTemplateName(app.request) %}
  2. {% block title_suffix %}Kontakt{% endblock %}
  3. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  4. {% block head_scripts %}
  5.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  6. {% endblock %}
  7. {% block body %}
  8.     <h2 class="mb-3">Kontakt aufnehmen ... und Hilfe erhalten</h2>
  9.     <h4>Bitte fülle dieses Formular aus</h4>
  10.     <p>Unsere Antwort erfolgt per E-Mail. Bitte achte daher auf eine gültige E-Mail Adresse, damit wir dich auch
  11.         erreichen können!</p>
  12.     <div class="align-items-center bg-grey-10 py-2 pb-lg-2 mx-0 mb-4">
  13.         {% if emailSent or failure %}
  14.             {% set class = failure ? "alert alert-danger" : "alert alert-success" %}
  15.             <div class="col-12 {{ class }}">
  16.                 <strong>Vielen Dank!</strong>
  17.                 {% if failure %}
  18.                     <p>Das hat leider nicht geklappt. Bitte versuche es nochmal oder schicke uns eine E-Mail an support@frivol.com</p>
  19.                 {% else %}
  20.                     <p>Deine Nachricht wurde gespeichert und wird von einem Mitarbeiter aus dem Support bearbeitet.
  21.                         Wir bitten um Geduld, besonders nachts, an Wochenenden und Feiertagen.</p>
  22.                 {% endif %}
  23.             </div>
  24.         {% endif %}
  25.         {% if emailSent == false %}
  26.             {{ form_start(form, {'attr': {'class': 'col-12', 'id': 'contact_form'}}) }}
  27.             {{ form_row(form.firstName) }}
  28.             {{ form_row(form.lastName) }}
  29.             {{ form_row(form.email) }}
  30.             {{ form_row(form.phone) }}
  31.             {{ form_row(form.webmId) }}
  32.             {{ form_row(form.topic) }}
  33.             {{ form_row(form.message) }}
  34.             {{ form_row(form.info) }}
  35.             <div id="contactFormContent" style="visibility:hidden;">
  36.                 {{ form_row(form.submit, {'attr': {'disabled':'disabled'}}) }}
  37.             </div>
  38.             <div class="g-recaptcha" data-sitekey="{{ RECAPTCHA_FORM_KEY }}" data-callback="recaptchaCallback"></div>
  39.             {{ form_end(form) }}
  40.         {% endif %}
  41.     </div>
  42.     <h4>Europäischer Support:</h4>
  43.     <img src="{{ asset('build/images/contactInfo.png')}}" data-callback="contactCallback" class="company-contact-info" />
  44.     <div class="row-fluid">
  45.         <div class="span12">
  46.             <h5>Online-Streitbeilegung (Art. 14 Abs. 1 ODR-Verordnung):</h5>
  47.             <p>
  48.                 Die Europäische Kommission stellt unter <a href="http://ec.europa.eu/consumers/odr" target="_blank">
  49.                     http://ec.europa.eu/consumers/odr</a> eine Plattform zur Online-Streitbeilegung bereit.
  50.             </p>
  51.         </div>
  52.     </div>
  53. {% endblock %}
  54. {% block javascripts %}
  55.     {{ parent() }}
  56.     <script>
  57.         function recaptchaCallback() {
  58.             $("#contactFormContent").css("visibility", "visible");
  59.             $('#contact_form_submit').removeAttr('disabled');
  60.         }
  61.     </script>
  62. {% endblock %}