{% load i18n %}

<div id="voucher_form_container" class="voucher_form">
    <form id="voucher_form" action="{% url 'basket:vouchers-add' %}" method="post">
        {% csrf_token %}
        <div class="code">
            <input id="id_code" name="code" type="text">
            <button type="submit"
                    id="apply-voucher-button"
                    class="btn btn-default"
                    data-loading-text="{% trans 'Applying...' %}"
                    data-track-type="click"
                    data-track-event="edx.bi.ecommerce.basket.voucher_applied"
                    data-track-category="voucher-application"
                    data-voucher-code="{{ voucher_code }}">
                {% trans "Apply" %}
            </button>
        </div>
    </form>
</div>
