<form data-request="onSubscription" data-request-success="alert('{{ text_messages }}');$('#subscriptionForm').trigger('reset');" id="subscriptionForm">
    <div class="form-group">
        <label for="subscribersName">{{ text_name }}</label>
        <input name="name" type="text" class="form-control" id="subscribersName" required>
    </div>

    <div class="form-group">
        <label for="subscribersEmail">{{ text_email }}</label>
        <input name="email" type="email" class="form-control" id="subscribersEmail" required>
    </div>

    {% if category_count == 0 %}
    <input type="hidden" name="category" value="0">
    {% else %}
    <div class="form-group">
        <label>{{ text_category }}</label>
        {% for category in category_list %}
        <div class="checkbox">
            <label>
                <input type="checkbox" name="category[]" value="{{ category.id }}"> {{ category.name }}
            </label>
        </div>
        {% endfor %}
    </div>
    {% endif %}

    <button type="submit" class="btn btn-default">{{ text_button }}</button>
</form>
