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

{% translate "Pick a repository from a connected GitHub account. The component creation form will be pre-filled with the clone URL, default branch, and GitHub VCS driver." %} {% if github_app_install_url %} {% translate "Add or configure account" %} {% endif %}

{% if github_app_install_url %} {% include "vcs/github_install_help.html" %} {% endif %} {% if github_app_repositories %} {% for repo in github_app_repositories %} {% endfor %}
{% translate "Repository" %} {% translate "Workspace" %} {% translate "Account" %} {% translate "Branch" %} {% translate "Visibility" %} {% translate "Actions" %}
{{ repo.full_name }} {% if repo.description %}
{{ repo.description }} {% endif %}
{{ repo.workspace_name }} {{ repo.account_name }} {{ repo.default_branch }} {% if repo.private %} {% translate "Private" %} {% else %} {% translate "Public" %} {% endif %} {% translate "Import" %}
{% else %}

{% if github_app_install_url %} {% translate "No repositories available yet. Install the Weblate GitHub app on a GitHub organization or user account to make repositories available here." %} {% elif selected_project %} {% translate "No repositories are available from connected GitHub accounts for this project workspace." %} {% else %} {% translate "Select a project with a workspace to connect a GitHub account or import repositories from an existing connection." %} {% endif %}

{% endif %}
{% endif %}
{% endif %} {% endblock content %}