{% extends "orga/cfp/base.html" %} {% load bootstrap4 %} {% load formset_tags %} {% load i18n %} {% load staticfiles %} {% block cfp_content %}
{% csrf_token %} {% trans "Event settings" %} {% bootstrap_field form.target layout='horizontal' %} {% bootstrap_field form.question layout='horizontal' %} {% bootstrap_field form.variant layout='horizontal' %} {% bootstrap_field form.help_text layout='horizontal' %} {% bootstrap_field form.required layout='horizontal' %} {% if action != 'create' %} {% bootstrap_field form.active layout='horizontal' %} {% endif %}
{% 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 %}