{% extends "orga/base.html" %} {% load compress %} {% load formset_tags %} {% load i18n %} {% load static %} {% block extra_title %}{% if form.instance.question %}{{ form.instance.question }}{% else %}{% translate "New question" %}{% endif %} :: {% endblock extra_title %} {% block stylesheets %} {% compress css %} {% endcompress %} {% endblock stylesheets %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock scripts %} {% block content %}

{% if form.instance.question %} {% translate "Question" %}: {{ form.instance.question }} {% else %} {% translate "New question" %} {% endif %}

{% csrf_token %} {% include "common/forms/errors.html" %} {% if action == "edit" and question.answers.count %}
{% blocktranslate trimmed %} This question has already been answered by some speakers – please consider carefully if modifying it would render those answers obsolete. You could also deactivate this question and start a new one instead. {% endblocktranslate %}
{% endif %} {% if action != "create" %} {% if question.active %}
{% translate "This question is currently active, it will be asked during submission." %} {% translate "Hide question" %}
{% else %}
{% translate "This question is currently inactive, and will not be asked during submission." %} {% translate "Activate question" %}
{% endif %} {% endif %} {{ form.target.as_field_group }} {{ form.variant.as_field_group }} {{ form.question.as_field_group }} {{ form.help_text.as_field_group }}
{% blocktranslate trimmed %} If you mark a Yes/No question as required, it means that the user has to select Yes and No is not accepted. If you want to allow both options, do not make this field required. {% endblocktranslate %}
{{ form.is_public.as_field_group }} {{ form.contains_personal_data.as_field_group }} {{ form.is_visible_to_reviewers.as_field_group }}
{% translate "Limit to specific proposals" %} {% if form.tracks %} {{ form.tracks.as_field_group }} {% endif %} {% if form.submission_types %} {{ form.submission_types.as_field_group }} {% endif %}
{% translate "Input validation" %} {{ form.question_required.as_field_group }} {{ form.deadline.as_field_group }} {{ form.freeze_after.as_field_group }} {{ form.min_length.as_field_group }} {{ form.max_length.as_field_group }} {{ form.min_number.as_field_group }} {{ form.max_number.as_field_group }} {{ form.min_date.as_field_group }} {{ form.max_date.as_field_group }} {{ form.min_datetime.as_field_group }} {{ form.max_datetime.as_field_group }}
{% translate "Answer options" %}
{% translate "Upload answer options" %}
{{ form.options.as_field_group }} {{ form.options_replace.as_field_group }}
{{ formset.management_form }} {{ formset.non_form_errors }}
{% for form in formset %}
{{ form.id }} {{ form.DELETE }}
{% include "common/forms/errors.html" %} {{ form.answer.as_field_group }}
{% if action != "view" %}
{% endif %}
{% endfor %}
{% if action != "view" %}

{% endif %}
{% include "orga/includes/submit_row.html" %}
{% endblock content %}