2016-07-21 23:19:50 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h3>{% trans %}Eboutic{% endtrans %}</h3>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<p>{% trans %}Basket: {% endtrans %}</p>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Article</td>
|
|
|
|
<td>Quantity</td>
|
|
|
|
<td>Unit price</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in basket.items.all() %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ item.product_name }}</td>
|
|
|
|
<td>{{ item.quantity }}</td>
|
|
|
|
<td>{{ item.product_unit_price }} €</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
<tbody>
|
|
|
|
</table>
|
2016-07-26 17:39:19 +00:00
|
|
|
<p><strong>Total: </strong>{{ basket.get_total() }} €</p>
|
2016-07-24 16:26:03 +00:00
|
|
|
<form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}">
|
|
|
|
{% for (field_name,field_value) in et_request.items() -%}
|
|
|
|
<input type="hidden" name="{{ field_name }}" value="{{ field_value }}">
|
|
|
|
{% endfor %}
|
2016-07-21 23:19:50 +00:00
|
|
|
<input type="submit" value="{% trans %}Pay with credit card{% endtrans %}" />
|
|
|
|
</form>
|
2016-07-26 17:39:19 +00:00
|
|
|
{% if basket.items.filter(type="REFILLING").exists() %}
|
|
|
|
<p>{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}</p>
|
|
|
|
{% else %}
|
2016-07-21 23:19:50 +00:00
|
|
|
<form method="post" action="{{ url('eboutic:pay_with_sith') }}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="action" value="pay_with_sith_account">
|
|
|
|
<input type="submit" value="{% trans %}Pay with Sith account{% endtrans %}" />
|
|
|
|
</form>
|
2016-07-26 17:39:19 +00:00
|
|
|
{% endif %}
|
2016-07-21 23:19:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|