haikal/templates/plans/create_order.html
Marwan Alwali 83138fc3ed update
2025-02-04 22:35:17 +03:00

74 lines
2.8 KiB
HTML

{% extends 'base.html' %}
{% load i18n crispy_forms_filters%}
{% block content %}
<h3>{% trans "Confirm order" %}</h3>
{% if FREE_ORDER %}
{# Free order is when user downgrades a plan and there is no additional payment it is handle by special a view. #}
{% with object as order %}
{% include "plans/order_detail_table.html" %}
{% endwith %}
<div class="alert alert-warning">
{% blocktrans %}If you downgrade your plan please remember that new lower limits are used immediately after
finishing the order.{% endblocktrans %}
</div>
<form method="post" action="{% url "change_plan" pk=plan.pk %}">
{% csrf_token %}
<input type="submit" class="btn btn-phoenix-primary" value="{% trans "Continue" %}">
</form>
{% else %}
<form method="post">
{% with object as order %}
{% include "plans/order_detail_table.html" %}
{% endwith %}
<h2>{% trans "Invoice" %}</h2>
{% url "billing_info" as billing_info_url %}
{% with billing_info_url|add:"?next="|add:request.get_full_path as billing_info_url %}
{% if billing_info %}
<p class="alert alert-phoenix-info">
{% blocktrans %}
Invoice for this order will be issued for:
{% endblocktrans %}
<br><br><b>
{{ billing_info.name }}<br>
{{ billing_info.street }}<br>
{{ billing_info.zipcode }}
{{ billing_info.city }},
{{ billing_info.country }}
<br><br>
{% trans "VAT ID" %} {{ billing_info.tax_number }}
</b>
</p>
<p>
{% blocktrans %}
If this data is not correct please <a href="{{ billing_info_url }}">edit billing data</a> before
making an order.
{% endblocktrans %}
</p>
{% else %}
{% block invoice-alert %}
<p class="alert alert-info">
{% blocktrans %}
Invoice will <b>not</b> be issued. If you need an invoice please provide
<a href="{{ billing_info_url }}">billing data</a> before making an order.
{% endblocktrans %}
</p>
{% endblock %}
{% endif %}
{% endwith %}
<input type="submit" class="btn btn-sm btn-primary" value="{% trans "Continue" %}">
{{ form|crispy }}
{% csrf_token %}
</form>
{% endif %}
{% endblock %}