{% extends "base.html" %} {% load crispy_forms_tags i18n translations %} {% block nav_pills %} {% endblock nav_pills %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block content %} {% if not projects and not form.fields.component.queryset and not branch_form.fields.component.queryset %} {% translate "You do not have permission to create components in any projects." as msg %} {% show_message "warning" msg %} {% if has_billing %} {% include "snippets/billing-failure.html" %} {% endif %} {% else %}
{% if projects %}
{% csrf_token %}

{% translate "Create a new translation component from remote version control system repository." %}

{% crispy full_form %}
{% endif %} {% if form.fields.component.queryset %}
{% csrf_token %}

{% translate "Create a new translation component from a repository already cloned in Weblate." %}

{% crispy existing_form %}
{% endif %} {% if branch_form.fields.component.queryset %}
{% csrf_token %}

{% translate "Create a new translation component for an additional branch of the existing translation component." %}

{% crispy branch_form %}

{% translate "The new component will be created for the selected branch with the exact same configuration as the existing one." %}

{% endif %} {% if zip_form %}
{% csrf_token %}

{% translate "Create a new translation component from an uploaded ZIP file containing strings for translation." %} {% translate "The filenames within the archive need to have locale codes in them." %}

{% crispy zip_form %}
{% endif %} {% if doc_form %}
{% csrf_token %}

{% translate "Create a new translation component from an uploaded document for translation." %}

{% crispy doc_form %}
{% endif %} {% if scratch_form %}
{% csrf_token %}

{% translate "Create a new empty translation component to start from scratch." %} {% blocktranslate with link_start='' link_end='' %}Create a ZIP file containing any existing translation files you have, and {{ link_start }}upload it{{ link_end }}.{% endblocktranslate %}

{% crispy scratch_form %}
{% endif %}
{% endif %} {% endblock content %}