{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load crispy_forms_tags %}

{% block breadcrumbs %}
<li><a href="{% url 'hosting' %}">{% trans "Hosting" %}</a></li>
{% endblock %}

{% block content %}

{% trans "Please check in advance whether your project is eligible for project hosting on this site." as msg %}
{% show_message 'info' msg %}

<div class="panel panel-primary">
  <div class="panel-heading"><h4 class="panel-title">{% trans "Conditions for gratis hosting" %}</h4></div>
  <div class="panel-body">
<p>{% trans "Please fill in this form if your project meets the conditions for free of charge hosting:" %}</p>


<ul>
<li>{% trans "Translated content has to be released under a license approved by OSI or recognized as libre by FSF." %}</li>
<li>{% trans "Source code has to be publicly available in a supported version control system." %}</li>
<li>{% trans "There is no guarantee for service availability, nor quality." %}</li>
<li>{% trans "Hosting requests are usually processed once a month, please have patience after submitting one." %}</li>
</ul>

  </div>
  <div class="panel-footer">
    <p>{% blocktrans with price=19 %}Looking for commercial hosting? Our prices start at {{ price }} EUR per month.{% endblocktrans %}</p>
{% if payment_enabled %}
  <a href="{% url 'create-billing' %}?upgrade=1" class="btn btn-primary">{% trans "Purchase new hosting plan" %}</a>
{% else %}
  <a class="btn btn-primary" href="{% url 'contact' %}?t=hosting">{% trans "Contact us for commercial hosting" %}</a>
{% endif %}
  </div>
</div>

<form method="post" action="{% url 'hosting' %}">
{% csrf_token %}
<div class="panel panel-primary">
  <div class="panel-heading"><h4 class="panel-title">{% trans "Ask for project hosting" %}</h4></div>
  <div class="panel-body">
{{ form|crispy }}
</div>
<div class="panel-footer">
<input type="submit" value="{% trans "Send" %}" class="btn btn-primary" />
</div>
</div>
</form>

{% endblock %}
