{% if show_dummy_data == true %}
    {% set form_details = {
        'self': '/contact',
        'errors': {},
        'request': {
            'full_name': '',
            'email': '',
            'message': ''
        }
    } %}
{% endif %}

<form action="{{ form_details.self }}" method="post" class="contactForm js_contactForm" novalidate onSubmit="ga('send', 'event', 'Contact Enquiry', 'Enquiry Sent');">

    <h4>Get in touch</h4>

    {{ form_field({
        'type': 'text',
        'errors': form_details.errors,
        'label': 'Full name',
        'placeholder': 'Full name',
        'required': true,
        'id': 'contactFormFullname',
        'name': 'full_name',
        'class': 'text',
        'value': form_details.request.full_name
    })|raw }}

    {{ form_field({
        'type': 'email',
        'errors': form_details.errors,
        'label': 'Email address',
        'placeholder': 'Email address',
        'required': true,
        'id': 'contactFormEmail',
        'name': 'email',
        'class': 'text',
        'value': form_details.request.email
    })|raw }}

    {{ form_field({
        'type': 'select',
        'errors': form_details.errors,
        'id': 'contactFormReason',
        'name': 'reason',
        'label': 'Reason',
        'values': {
            'general': 'General enquiry',
            'orders': 'I need help with my order',
            'complaint': 'I would like to make a complaint'
        },
        'value': 'general'
    })|raw }}

    {{ form_field({
        'type': 'textarea',
        'errors': form_details.errors,
        'label': 'Message',
        'placeholder': 'Enter message here',
        'required': true,
        'id': 'contactFormMessage',
        'name': 'message',
        'class': 'text',
        'value': form_details.request.message
    })|raw }}

    <input type="hidden" name="submit" value="true" />
    <input type="text" name="answer" value="" class="answer" />
    
    <input type="hidden" value="" id="recaptcha" name="recaptcha">
    
    <button type="submit" name="trigger" class="buttonAlt">Send message</button>

</form>
