templates/tenants/tenant1/parts/support-form.html.twig line 1

Open in your IDE?
  1. <form id="SupportForm" method="post" class="form-aside {% if route in ['support'] %}form-aside_top-line form-aside_flow{% endif %}">
  2.     <input type="hidden" name="_csrf_token" value="{{ csrf_token('SupportForm') }}" >
  3.     <input type="hidden" name="societyInit" value="{% if route == 'sign_up_society' %}1{% else %}0{% endif %}" >
  4.     <div class="form-aside__header">
  5.         <h3 class="form-aside__title">{% if route == 'sign_up_society' %}Contact our Development Team{% else %}Support{% if app.request.get('type') == 'press' %} Press+{% endif %}{% endif %}</h3>
  6.     </div>
  7.     <div class="form-aside__grid grid-form">
  8.         <div class="grid-form__item grid-form__item_big input-wrapper">
  9.             <label class="input-wrapper__label" for="name">Your Name *</label>
  10.             <input autocomplete="off" data-required id="name" type="text" name="name" data-error="This field is required." placeholder="" value="{% if app.user is not null %}{{ app.user.fieldsArrayAssoc.firstName ?? ''}} {{ app.user.fieldsArrayAssoc.lastName ?? '' }}{% endif %}" class="input">
  11.         </div>
  12.         <div class="grid-form__item grid-form__item_big input-wrapper">
  13.             <label class="input-wrapper__label" for="email">Email Address *</label>
  14.             <input autocomplete="off" data-required="email" id="email" type="text" name="email" data-error="{{ 'EmailFieldMessages.requiredAndIsInvalid'|transByTenant }}" placeholder="" value="{% if app.user is not null %}{{ app.user.email }}{% endif %}" class="input">
  15.         </div>
  16.         <div class="grid-form__item grid-form__item_big input-wrapper">
  17.             <label class="input-wrapper__label" for="subject">Subject *</label>
  18.             <input autocomplete="off" data-required id="subject" type="text" name="subject" data-error="This field is required." placeholder="" class="input">
  19.         </div>
  20.         <div class="grid-form__item grid-form__item_big input-wrapper">
  21.             <label class="input-wrapper__label" for="message">Your Message *</label>
  22.             <textarea autocomplete="off" data-required id="message" name="message" data-error="This field is required." placeholder="" class="input" rows="10"></textarea>
  23.         </div>
  24.     </div>
  25.     <div class="form-aside__footer footer-aside">
  26.         <button id="sendSupportForm" class="footer-aside__button button button_bold" type="submit">Send</button>
  27.     </div>
  28.     <div class="form-aside__error-message errorText" style="text-align: center"></div>
  29. </form>