{% extends "base.html" %} {% import "_icons.html" as icons with context %} {% block title %}{{ t('site.new') }} - Leicht·Facile{% endblock %} {% block content %}
{{ t('site.drafts') }}{{ icons.icon('chevron-right', 12) }}

{{ t('site.new') }}

{% if error %} {% endif %} {% if not model_ready and not endpoints %} {% endif %}

{{ t('new.source') }}

{{ t('js.chars', count=t.number(chars), max=t.number(max_chars)) }} {{ t('js.lang_auto') }}
{% if examples %} {# The example letters: those in the interface language first (pages.featured_examples), the others behind "More examples" (app.js; all of them without it). #}
{{ t('index.examples') }} {% for e in examples %}{% endfor %} {% if more_examples %} {% for e in more_examples %}{% endfor %} {% endif %}
{% endif %}

{{ t('index.url.hint') }} {{ t('new.private_note') }}

{{ icons.icon('upload', 28) }} {{ t('new.drop') }} {{ t('new.or') }} {{ t('index.file.label') }}

{{ t('new.settings') }}

{{ t('index.level') }}
{% for level in ('A2', 'B1') %} {% endfor %}
{# The pipelines P1 and P0 next to P2, for an installation that compares them (server.offer_pipelines); without the choice the submission's default P2 runs. #} {% if pipelines %}
{{ t('index.condition') }}
{% for p in pipelines %} {% endfor %}
{% for p in pipelines %}
{% for s in p.stages %}{{ s.title }} {{ s.who }}{% if not loop.last %}{{ icons.icon('chevron-right', 10) }}{% endif %}{% endfor %}
{% endfor %}
{% endif %}
{# The sender and the form of address (docs/architecture.md section 4.3): a school or another organisation instead of an authority, du or ihr instead of Sie. #}
{# Decision mode: the person the letter speaks to and the authority's notice, the first and last paragraph of the export. The script hides them for a standard text; without it they stay in view. #}

{{ t('new.notice.hint') }}

{# The rest is folded: the language is detected, the title is the document's, the preset and the model names are the installation's. Open when the form carries one of them (a refused submission), so nothing is hidden from the user. #} {% set more_open = form.title or (form.lang and form.lang != 'auto') or form.writer_model or form.understand_model or form.judge_model or (endpoints and form.endpoint and form.endpoint != endpoints[0].name) %}
{{ icons.icon('chevron-right', 12) }}{{ t('new.more') }} {{ t('new.more.hint') }}
{% if endpoints %} {# A choice of model endpoints: for this draft alone, the one in use stays. The script lets the model placeholders below follow the choice. #}

{{ t('new.endpoint.hint') }} {{ t('model.documents.public') }}

{% endif %}
{{ t('index.models') }} {{ t('new.models_defaults') }}

{{ t('index.models.hint') }}

{{ t('new.cancel') }}

{{ t('index.endpoint') }} {{ settings.llm.title if model_ready else t('model.none') }}

{% if examples %}{% endif %}
{% endblock %}