<commit_before>{% extends "checkout/layout.html" %}
{% load currency_filters %}
{% load i18n %}

{% block title %}
{% trans "Confirmation of order" %} {{ order.number }} | {{ block.super }}
{% endblock title %}

{% block checkout-nav %}{% endblock %}


{% block content %}
<div class="sub-header">
	<h1>{% blocktrans with order_num=order.number %}
		Confirmation for order #{{ order_num }}
		{% endblocktrans %}</h1>
</div>
<p>{% trans "Your order has been placed and a confirmation email has ben sent - your order number is" %}
<span class="label label-success">{{ order.number }}</span></p>
<p>{% trans "Please make a note of this reference or print this page and quote it in any communication with us regarding your order." %}</p>

<div class="row-fluid">
    <div class="span6">
		{% block shipping_info %}
        <div class="well well-info">
			<h3>{% trans "Shipping" %}</h3>
			<p>{% trans "Your order will be delivered to:" %}</p>
            {% for line in order.shipping_address.active_address_fields %}
            {{ line }}<br/>
            {% endfor %}
        </div>
		{% endblock %}
    </div>
    <div class="span6">
		{% block payment_info %}
        <div class="well well-success">
			<h3>{% trans "Payment" %}</h3>
            {% for source in order.sources.all %}
            {{ source }}
            {% endfor %}
        </div>
		{% endblock %}
    </div>
</div>
<div class="sub-header">
	<h3>{% trans "Order details" %}</h3>
</div>

<div class="basket-title">
    <div class="row-fluid">
		<h4 class="span7">{% trans "Items purchased" %}</h4>
		<h4 class="span3">{% trans "Estimated dispatch date" %}</h4>
		<h4 class="span1">{% trans "Quantity" %}</h4>
		<h4 class="span1">{% trans "Cost" %}</h4>
    </div>
</div>

{% for line in order.lines.all %}
<div class="basket-items">
    <div class="row-fluid">
        <div class="span7">
            <h4><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></h4>
        </div>
        <div class="span3">
            {{ line.est_dispatch_date }}
        </div>
        <div class="span1">
            {{ line.quantity }}
        </div>
        <div class="span1">
            <span class="price">{{ line.line_price_before_discounts_incl_tax|currency }}</span>
        </div>        
    </div>
</div>
{% endfor %}

{% for discount in order.discounts.all %}
<div class="basket-items">
    <div class="row-fluid">
        <h4 class="span11">{{ discount.offer }}</h4>
        <div class="span1">- {{ discount.amount|currency }}</div>
    </div>
</div>
{% endfor %}

<div class="basket-items">
    <div class="row-fluid">
		<h4 class="span11">{% trans "Basket total" %}</h4>
        <div class="span1">{{ order.basket_total_incl_tax|currency }}</div>
    </div>
</div>
<div class="basket-items">
    <div class="row-fluid">
		<h4 class="span11">{% trans "Shipping charge - {{order.shipping_method}}" %}</h4>
        <div class="span1">{{ order.shipping_incl_tax|currency }}</div><commit_msg>Fix translation of shipping charge summary on order thank-you page<commit_after>{% extends "checkout/layout.html" %}
{% load currency_filters %}
{% load i18n %}

{% block title %}
{% trans "Confirmation of order" %} {{ order.number }} | {{ block.super }}
{% endblock title %}

{% block checkout-nav %}{% endblock %}


{% block content %}
<div class="sub-header">
	<h1>{% blocktrans with order_num=order.number %}
		Confirmation for order #{{ order_num }}
		{% endblocktrans %}</h1>
</div>
<p>{% trans "Your order has been placed and a confirmation email has ben sent - your order number is" %}
<span class="label label-success">{{ order.number }}</span></p>
<p>{% trans "Please make a note of this reference or print this page and quote it in any communication with us regarding your order." %}</p>

<div class="row-fluid">
    <div class="span6">
		{% block shipping_info %}
        <div class="well well-info">
			<h3>{% trans "Shipping" %}</h3>
			<p>{% trans "Your order will be delivered to:" %}</p>
            {% for line in order.shipping_address.active_address_fields %}
            {{ line }}<br/>
            {% endfor %}
        </div>
		{% endblock %}
    </div>
    <div class="span6">
		{% block payment_info %}
        <div class="well well-success">
			<h3>{% trans "Payment" %}</h3>
            {% for source in order.sources.all %}
            {{ source }}
            {% endfor %}
        </div>
		{% endblock %}
    </div>
</div>
<div class="sub-header">
	<h3>{% trans "Order details" %}</h3>
</div>

<div class="basket-title">
    <div class="row-fluid">
		<h4 class="span7">{% trans "Items purchased" %}</h4>
		<h4 class="span3">{% trans "Estimated dispatch date" %}</h4>
		<h4 class="span1">{% trans "Quantity" %}</h4>
		<h4 class="span1">{% trans "Cost" %}</h4>
    </div>
</div>

{% for line in order.lines.all %}
<div class="basket-items">
    <div class="row-fluid">
        <div class="span7">
            <h4><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></h4>
        </div>
        <div class="span3">
            {{ line.est_dispatch_date }}
        </div>
        <div class="span1">
            {{ line.quantity }}
        </div>
        <div class="span1">
            <span class="price">{{ line.line_price_before_discounts_incl_tax|currency }}</span>
        </div>        
    </div>
</div>
{% endfor %}

{% for discount in order.discounts.all %}
<div class="basket-items">
    <div class="row-fluid">
        <h4 class="span11">{{ discount.offer }}</h4>
        <div class="span1">- {{ discount.amount|currency }}</div>
    </div>
</div>
{% endfor %}

<div class="basket-items">
    <div class="row-fluid">
		<h4 class="span11">{% trans "Basket total" %}</h4>
        <div class="span1">{{ order.basket_total_incl_tax|currency }}</div>
    </div>
</div>
<div class="basket-items">
    <div class="row-fluid">
		<h4 class="span11">
            {% blocktrans with order.shipping_method as shipping_method %}
            Shipping charge - {{ shipping_method }}
            {% endblocktrans %}
        </h4>
        <div class="span1">{{ order.shipping_incl_tax|currency }}</div>
{'fraction_non_alphanumeric': 0.19597907813010787, 'fraction_numerical': 0.014710689767898006, 'mean_word_length': 2.8776932826362485, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 169, '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': '5202942', 'n_tokens_mistral': 2186, 'n_tokens_neox': 2026, 'n_words': 527}