<div class="newsletterFormWrap">

    <form action="/newsletter/" method="post" class="newsletterForm">

        {% if settings.USE_NAME_FIELDS == true %}
            <div class="row{% if newsletter_details.errors.newsletter_first_name %} errorWrap showError{% endif %}">
                <div class="inputWrap">
                    <input type="text" name="newsletter_first_name" class="text" placeholder="First Name" value="{{ newsletter_details.request.newsletter_first_name }}" />
                </div>
                {% if newsletter_details.errors.newsletter_first_name %}
                    <div class="validationMessage">{{ newsletter_details.errors.newsletter_first_name }}</div>
                {% endif %}
            </div> <!-- .row -->

            <div class="row{% if newsletter_details.errors.newsletter_surname %} errorWrap showError{% endif %}">
                <div class="inputWrap">
                    <input type="text" name="newsletter_surname" class="text" placeholder="Surname" value="{{ newsletter_details.request.newsletter_surname }}" />
                </div>
                {% if newsletter_details.errors.newsletter_surname %}
                    <div class="validationMessage">{{ newsletter_details.errors.newsletter_surname }}</div>
                {% endif %}
            </div> <!-- .row -->
        {% endif %}

        <div class="row {% if newsletter_details.errors.newsletter_email %} errorWrap showError{% endif %}">
            <div class="inputWrap">
                <input type="email" name="newsletter_email" class="text" placeholder="Enter email address" value="{{ newsletter_details.request.newsletter_email }}" />
            </div>
            {% if newsletter_details.errors.newsletter_email %}
                <div class="validationMessage">{{ newsletter_details.errors.newsletter_email }}</div>
            {% endif %}
        </div> <!-- .row -->

        <button type="submit" name="signup" class="button">Sign up</button>
        <input type="hidden" name="newsletter_action" value="newsletter_subscribe"/>
        <input type="text" name="answer" value="" class="answer"/>
    </form>

</div> <!-- .newsletterFormWrap -->