{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('contact_us', 'contact_us') }%}
{% block migalhas %}
<a href="{{ path('home') }}">{{ getLanguage('home', 'contact_us') }}</a> / <span>{{ getLanguage('contact_us', 'contact_us') }}</span>
{% endblock %}
{% endembed %}
<div class="contact">
<div class="container">
<div class="box">
<div class="contact-info">
<h3>{{ getLanguage('need_help', 'contact_us') }}<br>{{ getLanguage('contact_us_excl', 'contact_us') }}</h3>
<p class="desc">{{ getLanguage('keeping_in_touch', 'contact_us') }}</p>
{% if getConfig('address') or (getConfig('address_neighborhood') and getConfig('address_city') and getConfig('address_state')) or
getConfig('address_zip_code') %}
<dl class="contact-address">
<dt>{{ getLanguage('where_are_we', 'contact_us') }}</dt>
<dd>
{% if getConfig('address') %}
<p>{{ getConfig('address') }}{% if getConfig('address_number') %}, {{ getConfig('address_number') }}{% endif %}</p>
{% endif %}
{% if getConfig('address_neighborhood') and getConfig('address_city') and getConfig('address_state') %}
<p>{{ getConfig('address_neighborhood') }}, {{ getConfig('address_city') }} - {{ getConfig('address_state') }}</p>
{% endif %}
{% if getConfig('address_zip_code') %}
<p>{{ getConfig('address_zip_code') }}</p>
{% endif %}
</dd>
</dl>
{% endif %}
{% if client.document %}
<dl class="contact-document">
<dt>CNPJ</dt>
<dd>
<p>{{ client.document }}</p>
</dd>
</dl>
{% endif %}
{% if client.email or getConfig('phone') %}
<dl class="contact-email-phone">
<dt>{{ getLanguage('support', 'contact_us') }}</dt>
<dd>
{% if client.email %}
<p>{{ client.email }}</p>
{% endif %}
{% if getConfig('phone') %}
<p>{{ getConfig('phone') }}</p>
{% endif %}
</dd>
</dl>
{% endif %}
{% if getConfig('attendance_schedule') %}
<dl class="contact-schedule">
<dt>{{ getLanguage('operation', 'contact_us') }}</dt>
<dd>
<p>{{ getConfig('attendance_schedule') }}</p>
</dd>
</dl>
{% endif %}
</div>
<div class="contact-form">
<form id="formContact" action="{{ path('contactPost') }}" class="form-geral">
<div class="cp">
<label for="name">{{ getLanguage('name', 'contact_us') }}</label>
<input type="text" name="name" required="required" {% if user %} value="{{ user.name }}" {% endif %} placeholder="{{ getLanguage('type_your_name', 'contact_us') }}">
</div>
<div class="cp">
<label for="email">E-mail</label>
<input type="email" name="email" required="required" {% if user %} value="{{ user.email }}" {% endif %} placeholder="{{ getLanguage('type_your_email', 'contact_us') }}">
</div>
<div class="cp">
<label for="subject">{{ getLanguage('subject', 'contact_us') }}</label>
<input type="text" name="subject" required="required" placeholder="{{ getLanguage('want_to_ask_about', 'contact_us') }}">
</div>
<div class="cp">
<label for="message">{{ getLanguage('message', 'contact_us') }}</label>
<textarea name="message" required="required" placeholder="{{ getLanguage('want_to_ask', 'contact_us') }}"></textarea>
</div>
{% include 'website/includes/captcha-form.html.twig' with { formName: 'formContact' } %}
<div class="actions">
<button type="button" id="btnFormContact" class="btn-continuar-peq btn-load">
<span>{{ getLanguage('send_message', 'contact_us') }}</span>
<span>{{ getLanguage('wait', 'util') }}… <i class="loader">{{ ico('loader-wish') }}</i></span>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}