{% extends "orga/cfp/base.html" %} {% load bootstrap4 %} {% load formset_tags %} {% load i18n %} {% load staticfiles %} {% block cfp_content %}
{% csrf_token %} {% if action == "edit" and question.answers.count %}
{% blocktrans 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. {% endblocktrans %}
{% endif %} {% if action != 'create' %} {% if question.active %}
{% trans "This question is currently active, it will be asked during submission." %} {% trans "Hide question" %}
{% else %}
{% trans "This question is currently inactive, and will not be asked during submission." %} {% trans "Activate question" %}
{% endif %} {% endif %} {% bootstrap_field form.target layout='event' %} {% bootstrap_field form.question layout='event' %} {% bootstrap_field form.variant layout='event' %} {% bootstrap_field form.help_text layout='event' %} {% bootstrap_field form.required layout='event' %} {% bootstrap_field form.contains_personal_data layout='event' %}
{% trans "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 %}
{% blocktrans 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. {% endblocktrans %}
{% if action == "create" %} {% elif action == "edit" %} {% elif action == "view" %} {% trans "Edit" %} {% endif %}
{% endblock %}