<commit_before>{% extends "shop/base.html" %}
{% load shop_tags mezzanine_tags i18n future %}

{% block meta_title %}{% trans "Checkout" %} - {{ step_title }}{% endblock %}
{% block title %}{% trans "Checkout" %} - {% trans "Step" %} {{ step }} {% trans "of" %} {{ steps|length }}{% endblock %}
{% block body_id %}checkout{% endblock %}

{% block extra_head %}
<script>
var _gaq = [['_trackPageview', '{{ request.path }}{{ step_url }}/']];
$(function() {$('.middle :input:visible:enabled:first').focus();});
</script>
{% endblock %}

{% block breadcrumb_menu %}
{% for step in steps %}
<li>
    {% if step.title == step_title %}
    <strong>{{ step.title }}</strong>
    {% else %}
    {{ step.title }}
    {% endif %}
</li>
{% endfor %}
<li>{% trans "Complete" %}</li>
{% endblock %}

{% block main %}

{% block before-form %}{% endblock %}
<div class="row">
<form method="post" class="col-md-8 checkout-form">
    {% csrf_token %}

    {% block fields %}{% endblock %}
    
    {% block nav-buttons %}
        {% if request.cart.has_items %}
            <div class="form-actions">
                {% if step == steps|length %}
                    <input type="submit" class="btn btn-lg btn-primary pull-right" value="{% trans "Next" %}">
                {% else %}
                    <input type="submit" class="btn btn-lg btn-primary pull-right" value="{% trans "Complete" %}">
                {% endif %}
                {% if not CHECKOUT_STEP_FIRST %}
                    <input type="submit" class="btn btn-lg btn-default pull-left" name="back" value="{% trans "Back" %}">
                {% endif %}
            </div>
        {% else %}
            <p>{% trans "Your cart is empty." %}</p>
            <p>{% trans "This may be due to your session timing out after a period of inactivity." %}</p>
            <p>{% trans "We apologize for the inconvenience." %}</p>
            <br>
            <p><a class="btn btn-lg btn-primary" href="/">{% trans "Continue Shopping" %}</a></p>
        {% endif %}
    {% endblock %}
<commit_msg>Oops, got 'Complete' and 'Next' wrong way around...<commit_after>{% extends "shop/base.html" %}
{% load shop_tags mezzanine_tags i18n future %}

{% block meta_title %}{% trans "Checkout" %} - {{ step_title }}{% endblock %}
{% block title %}{% trans "Checkout" %} - {% trans "Step" %} {{ step }} {% trans "of" %} {{ steps|length }}{% endblock %}
{% block body_id %}checkout{% endblock %}

{% block extra_head %}
<script>
var _gaq = [['_trackPageview', '{{ request.path }}{{ step_url }}/']];
$(function() {$('.middle :input:visible:enabled:first').focus();});
</script>
{% endblock %}

{% block breadcrumb_menu %}
{% for step in steps %}
<li>
    {% if step.title == step_title %}
    <strong>{{ step.title }}</strong>
    {% else %}
    {{ step.title }}
    {% endif %}
</li>
{% endfor %}
<li>{% trans "Complete" %}</li>
{% endblock %}

{% block main %}

{% block before-form %}{% endblock %}
<div class="row">
<form method="post" class="col-md-8 checkout-form">
    {% csrf_token %}

    {% block fields %}{% endblock %}
    
    {% block nav-buttons %}
        {% if request.cart.has_items %}
            <div class="form-actions">
                {% if step == steps|length %}
                    <input type="submit" class="btn btn-lg btn-primary pull-right" value="{% trans "Complete" %}">
                {% else %}
                    <input type="submit" class="btn btn-lg btn-primary pull-right" value="{% trans "Next" %}">
                {% endif %}
                {% if not CHECKOUT_STEP_FIRST %}
                    <input type="submit" class="btn btn-lg btn-default pull-left" name="back" value="{% trans "Back" %}">
                {% endif %}
            </div>
        {% else %}
            <p>{% trans "Your cart is empty." %}</p>
            <p>{% trans "This may be due to your session timing out after a period of inactivity." %}</p>
            <p>{% trans "We apologize for the inconvenience." %}</p>
            <br>
            <p><a class="btn btn-lg btn-primary" href="/">{% trans "Continue Shopping" %}</a></p>
        {% endif %}
    {% endblock %}

{'fraction_non_alphanumeric': 0.20485436893203884, 'fraction_numerical': 0.0014563106796116505, 'mean_word_length': 2.4485355648535565, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4321948', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1254, 'n_words': 345}