templates/juki/HitsoTicketsBundle/Front/Ticket/index.html.twig line 1

Open in your IDE?
  1. {% extends 'HitsoCommonBundle::layout.html.twig' %}
  2. {% form_theme form '@HitsoCommon/Common/form_fields.html.twig' %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link rel="stylesheet" href="{{ asset('juki/source/css/contact-critical.css') }}">
  6.     <link rel="preload" as="style" href="{{ preload(asset('juki/source/css/contact-critical.css')) }}">
  7.     <link rel="preload" href="{{ preload(asset('juki/source/css/contact.css')) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
  8. {% endblock %}
  9. {% block body_class %}{{ parent() }} page--contact{% endblock %}
  10. {% block content %}
  11.     <main class="main">
  12.         <div class="contact">
  13.             {% include 'HitsoTicketsBundle:Front/Common:info.html.twig' %}
  14.             {% include 'HitsoTicketsBundle:Front/Common:map.html.twig' %}
  15.             <!-- form -->
  16.             <section class="contact__form" id="contact_form">
  17.                 <h2 class="section-title section-title--h1 text-center">
  18.                     Stay in touch!
  19.                 </h2>
  20.                 <p class="section-lead text-center">
  21.                     We are here for you, just ask
  22.                 </p>
  23.                 {{ form_start(form, {'attr': {"v-cloak": 1,'class': 'contact__form-form','id': 'contactForm'}}) }}
  24.                     <div class="field" :class="{'field--error' : errors.firstName}">
  25.                         {{ form_label(form.authorFirstName) }}
  26.                         {{ form_row(form.authorFirstName) }}
  27.                         <span class="field-msg" v-if="errors.firstName">${ errors.firstName }{{ form_errors(form.authorFirstName) }}</span>
  28.                     </div>
  29.                     <div class="field" :class="{'field--error' : errors.lastName}">
  30.                         {{ form_label(form.authorLastName) }}
  31.                         {{ form_row(form.authorLastName) }}
  32.                         <span class="field-msg" v-if="errors.lastName">${ errors.lastName }{{ form_errors(form.authorLastName) }}</span>
  33.                     </div>
  34.                     <div class="field" :class="{'field--error' : errors.email}">
  35.                         {{ form_label(form.authorEmail) }}
  36.                         {{ form_row(form.authorEmail) }}
  37.                         <span class="field-msg" v-if="errors.email">${ errors.email }{{ form_errors(form.authorEmail) }}</span>
  38.                     </div>
  39.                     <div class="field" :class="{'field--error' : errors.name}">
  40.                         {{ form_label(form.name) }}
  41.                         {{ form_row(form.name) }}
  42.                         <span class="field-msg" v-if="errors.name">${ errors.name }{{ form_errors(form.name) }}</span>
  43.                     </div>
  44.                     <div class="field" :class="{'field--error' : errors.content}">
  45.                         {{ form_label(form.content) }}
  46.                         {{ form_row(form.content) }}
  47.                         <span class="field-msg" v-if="errors.content">${ errors.content }{{ form_errors(form.content) }}</span>
  48.                     </div>
  49.                     <button class="contact__form-submit btn btn--secondary" :class="{'btn--loading' : isSending}" @click.prevent="send">Send message</button>
  50.                 {{ form_end(form) }}
  51.             </section>
  52.         </div>
  53.     </main>
  54. {% endblock %}
  55. {% block footer_javascripts %}
  56.     <script src="{{ asset('juki/source/js/contact.js') }}" defer></script>
  57. {% endblock %}