{% extends "hosting/base_short.html" %} {% load staticfiles bootstrap3 i18n %} {% block css_extra %} {% endblock css_extra %} {% block navbar %} {% include "datacenterlight/includes/_navbar.html" %} {% endblock navbar %} {% block content %}
{% if request.user.is_authenticated %}

{% trans "Welcome back" %} {{request.user.name}}!

{% trans "Review your billing address and card details and proceed to make payment." %}

{% else %}

{%trans "Log in" %}


{% blocktrans %}Already signed up?
By logging in you can retrieve saved billing information.{% endblocktrans %}

{% for field in login_form %} {% csrf_token %} {% bootstrap_field field show_label=False type='fields'%} {% endfor %}

{{login_form.non_field_errors|striptags}}

{% trans "Don't have an account yet?" %}
{% trans "You can sign up by filling in the information below." %}
{% trans "Forgot password?" %}

{% endif %}
{% if not request.user.is_authenticated %}

{%trans "Sign up"%}

{% else %}

{%trans "Billing Address"%}

{% endif %}
{% for message in messages %} {% if 'duplicate_email' in message.tags %}

{{message}}

{% endif %} {% endfor %}
{% csrf_token %} {% for field in billing_address_form %} {% bootstrap_field field show_label=False type='fields'%} {% endfor %}

{%trans "Your Order" %}


{% trans "Cores"%} {{request.session.specs.cpu|floatformat}}


{% trans "Memory"%} {{request.session.specs.memory|floatformat}} GB


{% trans "Disk space"%} {{request.session.specs.disk_size|floatformat}} GB


{% trans "Configuration"%} {{request.session.template.name}}


{%trans "Total" %}  ({%trans "including VAT" %}) {{request.session.specs.price}} CHF/{% trans "Month" %}

{% with card_list_len=cards_list|length %}

{%trans "Credit Card"%}


{% if card_list_len > 0 %} {% blocktrans %}Please select one of the previous 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}}
{% endfor %} {% if card_list_len > 0 %}
Use another card
{% endif %} {% include "hosting/includes/_card_input.html" %}
{% endwith %}
{% if stripe_key %} {% get_current_language as LANGUAGE_CODE %} {%endif%} {%endblock%}