{% extends "orga/cfp/base.html" %} {% load bootstrap4 %} {% load compress %} {% load formset_tags %} {% load i18n %} {% load static %} {% block cfp_content %} {% compress js %} {% endcompress %}

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

{% csrf_token %} {% bootstrap_form_errors form %} {% 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 %} {% bootstrap_field form.target layout='event' %} {% bootstrap_field form.variant layout='event' %} {% bootstrap_field form.question layout='event' %} {% bootstrap_field form.help_text layout='event' %}
{% 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 %}
{% bootstrap_field form.required layout='event' %} {% bootstrap_field form.is_public layout='event' %} {% bootstrap_field form.is_visible_to_reviewers layout='event' %} {% if form.tracks %} {% bootstrap_field form.tracks layout='event' %} {% endif %} {% if form.submission_types %} {% bootstrap_field form.submission_types layout='event' %} {% endif %} {% bootstrap_field form.min_length layout='event' %} {% bootstrap_field form.max_length layout='event' %} {% bootstrap_field form.contains_personal_data layout='event' %}
{% translate "Answer options" %}
{{ formset.management_form }} {% bootstrap_formset_errors formset %}
{% for form in formset %}
{{ form.id }} {% bootstrap_field form.DELETE form_group_class="" layout="inline" %}
{% bootstrap_form_errors form %} {% bootstrap_field form.answer layout='inline' form_group_class="" %}
{% if action != 'view' %}
{% endif %}
{% endfor %}
{% if action != 'view' %}

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