{% 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 %}

{%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 %}

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

{%trans "Your Order" %}


{% trans "Cores"%} {{vm.cores}}1


{% trans "Memory"%} {{vm.memory}}2 GB


{% trans "Disk space"%} {{vm.disk_size}}2 GB


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


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

{%trans "Sign up"%}


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

{%trans "Credit Card"%}


{% 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 %}


{% if credit_card_data.last4 %}
Credit Card
Last 4: *****{{credit_card_data.last4}}
Type: {{credit_card_data.cc_brand}}
{% if not messages and not form.non_field_errors %}

{% trans "You are not making any payment yet. After submitting your card information, you will be taken to the Confirm Order Page." %}

{% endif %}
{% for message in messages %} {% if 'failed_payment' or 'make_charge_error' in message.tags %}
  • {{ message|safe }}

{% endif %} {% endfor %} {% for error in form.non_field_errors %}

{{ error|escape }}

{% endfor %}
{% else %}
{% if not messages and not form.non_field_errors %}

{% trans "You are not making any payment yet. After placing your order, you will be taken to the Submit Payment Page." %}

{% endif %}
{% for message in messages %} {% if 'failed_payment' or 'make_charge_error' in message.tags %}
  • {{ message|safe }}

{% endif %} {% endfor %} {% for error in form.non_field_errors %}

{{ error|escape }}

{% endfor %}

{% endif %}
{% if stripe_key %} {% get_current_language as LANGUAGE_CODE %} {%endif%} {% if credit_card_data.last4 and credit_card_data.cc_brand %} {%endif%} {%endblock%}