{% extends "orga/base.html" %} {% load i18n %} {% load static %} {% block stylesheets %} {% with pattern=request.event.display_settings.header_pattern %} {% if pattern and pattern != "plain" %} {% endif %} {% endwith %} {% endblock stylesheets %} {% block scripts %} {% endblock scripts %} {% block extra_title %}{% translate "CfP Editor" %} :: {% endblock extra_title %} {% block content %}

{% translate "CfP Editor" %}

{% translate "CfP Settings" %}
{% if request.event.header_image %} {% endif %}

{% if request.event.logo %} {% else %} {{ request.event.name }} {% endif %}

{% for step in steps %}
{{ step.label }}
{% endfor %}
{% translate "Done!" %}
{% partial step-content-inner %}
{% endblock content %} {% partialdef step-content-inner %}
{% if error %}
{{ error }}
{% elif is_static and step_id == "user" %}
{% translate "Click to edit" %}

{{ step_title }}

{{ step_text }}

{% translate "This step shows the login/registration form and cannot be customized." %}

{% translate "I already have an account" %}

{% translate "I need a new account" %}

{% elif is_questions %}
{% translate "Click to edit" %}

{{ step_title }}

{{ step_text }}

{% translate "… about your proposal:" %}

{% for field in submission_questions %} {% with field=field step_id="questions" %} {% partial field-card %} {% endwith %} {% empty %}
{% translate "No session fields configured." %}
{% endfor %}

{% translate "… about yourself:" %}

{% for field in speaker_questions %} {% with field=field step_id="questions" %} {% partial field-card %} {% endwith %} {% empty %}
{% translate "No speaker fields configured." %}
{% endfor %}
{% else %}
{% translate "Click to edit" %}

{{ step_title }}

{{ step_text }}

{% for field in fields %} {% with field=field %} {% partial field-card %} {% endwith %} {% empty %}
{% translate "No fields configured for this step. Add fields from the sidebar." %}
{% endfor %}
{% endif %}
{% endpartialdef step-content-inner %} {% partialdef step-content-full %} {% partial step-content-inner %} {% endpartialdef step-content-full %} {% partialdef step-header-edit %}

{% translate "Edit Step" %}: {{ step.label }}

{% csrf_token %} {{ form.title.as_field_group }} {{ form.text.as_field_group }}
{% endpartialdef step-header-edit %} {% partialdef field-card %} {# Unified field card partial for both regular fields and questions #} {# Required context: field (dict with key, label, etc.), step_id (string) #}
{% if field.auto_hidden_reason %} {% translate "Currently hidden" %} ({{ field.auto_hidden_reason }}) {% endif %} {% translate "Click to edit" %}
{% if field.form_field %} {{ field.form_field.as_field_group }} {% else %}
{% if field.key == "submission_type" %} {% else %} {% endif %}
{% endif %}
{% if field.is_auto_required %} {% else %} {% endif %}
{% endpartialdef field-card %} {% partialdef sidebar %}

{% translate "Available Fields" %}

{% translate "Fields not shown to submitters. Click to add." %}

{% if is_questions %}
{% translate "New custom field" %}
{% if inactive_submission_questions %}

{% translate "Session fields" %}

{% endif %} {% if inactive_speaker_questions %}

{% translate "Speaker fields" %}

{% endif %} {% else %} {% endif %} {% endpartialdef sidebar %} {% partialdef field-modal %}

{% translate "Configure Field" %}: {{ field_label }}

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {{ form.label.as_field_group }} {{ form.help_text.as_field_group }} {{ form.visibility.as_field_group }} {% if form.min_length %}
{{ form.min_length.as_field_group }}
{{ form.max_length.as_field_group }}
{% endif %} {% if form.max %} {{ form.max.as_field_group }} {% endif %} {% if form.min_number %}
{{ form.min_number.as_field_group }}
{{ form.max_number.as_field_group }}
{% endif %}
{% endpartialdef field-modal %} {% partialdef question-modal %}

{% translate "Custom field" %}: {{ question.question }}

{% translate "Type" %}
{{ question.get_variant_display }}
{% translate "Required" %}
{% if question.required %}{% translate "Yes" %}{% else %}{% translate "No" %}{% endif %}
{% translate "Target" %}
{{ question.get_target_display }}
{% if question.help_text %}
{% translate "Help text" %}
{{ question.help_text }}
{% endif %}
{% translate "Edit field" %}
{% endpartialdef question-modal %}