{% extends "hosting/base_short.html" %} {% load static bootstrap3 i18n humanize %} {% block css_extra %} {% endblock css_extra %} {% block content %}

{%trans "Your Order" %}

{%trans "Cores" %}
{%trans "Memory" %}
{%trans "Disk space" %}
{%trans "Configuration" %}
{{request.session.specs.cpu|floatformat}}
{{request.session.specs.memory|floatformat}} GB
{{request.session.specs.disk_size|floatformat|intcomma}} GB
{{request.session.template.name}}
{%trans "Total" %}  {% if vm_pricing.vat_inclusive %}{%trans "including VAT" %}{% else %}{%trans "excluding VAT" %}{% endif %}
{{request.session.specs.price|intcomma}} CHF/{% trans "Month" %}
{% if vm_pricing.discount_amount %}
{%trans "Discount" as discount_name %} {{ vm_pricing.discount_name|default:discount_name }}  
({% trans "Will be applied at checkout" %})
- {{ vm_pricing.discount_amount }} CHF/{% trans "Month" %}
{% endif %}

{%trans "Billing Address"%}


{% csrf_token %} {% for field in form %} {% bootstrap_field field show_label=False type='fields'%} {% endfor %}
{% with card_list_len=cards_list|length %}

{%trans "Credit Card"%}


{% if card_list_len > 0 %} {% blocktrans %}Please select one of the cards that you used before or fill in your credit card information below. We are using Stripe for payment and do not store your information in our database.{% endblocktrans %} {% else %} {% blocktrans %}Please fill in your credit card information below. We are using Stripe for payment and do not store your information in our database.{% endblocktrans %} {% endif %}

{% for card in cards_list %}
{% trans "Credit Card" %}
{% trans "Last" %} 4: ***** {{card.last4}}
{% trans "Type" %}: {{card.brand}}
{% trans "Expiry" %}: {{card.exp_month}}/{{card.exp_year}}
{% endfor %} {% if card_list_len > 0 %}

{% trans "Add a new credit card" %}


{%trans "New Credit Card" %}


{% include "hosting/includes/_card_input.html" %}
{% else%} {% include "hosting/includes/_card_input.html" %} {% endif %}
{% endwith %}
{% if stripe_key %} {% get_current_language as LANGUAGE_CODE %} {%endif%} {% comment "Looks as if no more used. To test..." %} {% if credit_card_data.last4 and credit_card_data.cc_brand %} {%endif%} {% endcomment %} {%endblock%}