{% extends "pretixcontrol/items/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load formset_tags %} {% load escapejson %} {% block title %} {% if question %} {% blocktrans with name=question.question %}Question: {{ name }}{% endblocktrans %} {% else %} {% trans "Question" %} {% endif %} {% endblock %} {% block inside %} {% if question %}

{% blocktrans with name=question.question %}Question: {{ name }}{% endblocktrans %}

{% else %}

{% trans "Question" %}

{% endif %}
{% csrf_token %} {% bootstrap_form_errors form %}
{% trans "General" %} {% bootstrap_field form.question layout="control" %} {% bootstrap_field form.type layout="control" %} {% bootstrap_field form.items layout="control" %} {% bootstrap_field form.required layout="control" %}
{% 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 %}
{% bootstrap_field form.valid_number_min layout="control" %} {% bootstrap_field form.valid_number_max layout="control" %}
{% bootstrap_field form.valid_date_min layout="control" %} {% bootstrap_field form.valid_date_max layout="control" %}
{% bootstrap_field form.valid_datetime_min layout="control" %} {% bootstrap_field form.valid_datetime_max layout="control" %}
{% bootstrap_field form.valid_string_length_max layout="control" %}
{% bootstrap_field form.valid_file_portrait layout="control" %}

{% 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_field form.ORDER form_group_class="" layout="inline" %}
{% blocktrans trimmed with id=form.instance.identifier %} Answer option {{ id }} {% endblocktrans %} {% bootstrap_form_errors form %} {% bootstrap_field form.answer layout='inline' form_group_class="" %}
 
{% endfor %}

{% trans "Advanced" %} {% bootstrap_field form.help_text layout="control" %} {% bootstrap_field form.identifier layout="control" %} {% bootstrap_field form.ask_during_checkin layout="control" %} {% bootstrap_field form.show_during_checkin layout="control" %} {% bootstrap_field form.hidden layout="control" %} {% bootstrap_field form.print_on_invoice layout="control" %}
{% bootstrap_field form.dependency_question layout="inline" form_group_class="inner" %}
{% bootstrap_field form.dependency_values layout="inline" form_group_class="inner" %}
{% endblock %}