haikal/templates/plans/order_detail_table.html
Marwan Alwali aaf12c950b update
2025-01-26 13:33:57 +03:00

41 lines
1.4 KiB
HTML

{% load i18n %}
{% block table %}
<div class="table-responsive px-1 scrollbar">
<table class="table fs-9 mb-0 border-top border-translucent">
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Net price" %}</th>
<th>{% trans "VAT" %}</th>
<th>{% trans "VAT total" %}</th>
<th>{% trans "Total" %}</th>
<th>{% trans "Order completed" %}</th>
{% if order.user %}
<th>{% trans "Plan valid from" %}</th>
<th>{% trans "Plan valid until" %}</th>
{% endif %}
</tr>
</thead>
<tbody>
<tr>
<td>{{ order.name }}</td>
<td>{{ order.amount }} {{ order.currency }}</td>
<td>{% if order.tax == None %}n/a{% else %}{{ order.tax }} %{% endif %}</td>
<td>{% if order.tax_total == None %}n/a{% else %}{{ order.tax_total }} {{ order.currency }}{% endif %}</td>
<td class="number total">{{ order.total }} {{ order.currency }}</td>
<td class="date">{{ order.completed|date|default:"-" }}</td>
<td class="date">{{ order.get_plan_extended_from|date|default:"-" }}</td>
<td class="date">{{ order.get_plan_extended_until|date|default:"-" }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}
{% if order.tax == None %}
<h2>{% trans "EU VAT" %}</h2>
<div class="alert alert-phoenix-info">
{% blocktrans %} VAT is not applied to order. {% endblocktrans %}
</div>
{% endif %}