{% extends "base.html" %} {% block title %}{{ _(qtype.label) }} · {{ appearance.name }}{% endblock %} {% block scripts %}{% endblock %} {% macro check(name, label) %} {% endmacro %} {% block content %}

← {{ form.title }}

{{ _(qtype.label) }}

{% if error %}{% endif %} {% if target_group %}

{{ _('The question is added to the group “%(title)s”.', title=target_group.label) }}

{% endif %} {% if answers %}

{{ ngettext('This question already has %(num)d answer. Changes apply to it as well.', 'This question already has %(num)d answers. Changes apply to them as well.', answers) }}

{% endif %}
{{ csrf_field(request) }} {% if qtype.key == 'info' %} {% elif qtype.key == 'heading' %} {% elif qtype.key == 'question_group' %} {% elif qtype.key == 'page_break' %} {% else %} {% if required_by_group %}

{{ _('This question is in a participation group: the group decides how many entries must be chosen (“Choose at least”). A single entry cannot be required here.') }}

{% elif qtype.key == 'participant_name' %}

{{ _('First and last name are always required. Logged-in participants find them filled in from their account.') }}

{% else %} {{ check('required', _('Answer required')) }} {% endif %} {{ check('personal', _('Contains personal data (e.g. name, contact details)')) }} {% endif %} {% if qtype.key == 'participant_name' %} {% set email_mode = values.get('email') or values.get('email_mode') or 'optional' %}

{{ _('If the email address of guests is taken from the answers (form settings), guests receive their confirmation at this address.') }}

{% elif qtype.key in ('short_text', 'long_text') %} {% elif qtype.key == 'number' %} {% elif qtype.key == 'date' %} {% elif qtype.key == 'yes_no' %} {% elif qtype.key == 'file_upload' %}
{{ _('Allowed file types') }} {% for key, label in file_groups.items() %} {% endfor %}

{{ _('The administrator allows at most %(n)s MB per file.', n=media_cfg.upload_max_mb) }} {{ _('Uploaded images are re-encoded without metadata such as location.') }}

{% elif qtype.key == 'question_group' %}

{{ _('For participation: how many entries a person must and may sign up for in this group; this replaces “Answer required” on the single entries. For yes/no: how many “Yes” are needed and allowed; “Answer required” on a row then means that the row must be answered with yes or no.') }}

{{ _('All questions of this type directly below the group belong to it; another kind of question, a heading or a page break ends the group. Participants see the group as a compact table with one row per question. A condition on the group applies to all its questions.') }}

{% elif qtype.key == 'slots' and slot_mode == 'single' %} {{ check('waitlist', _('Waiting list when all places are taken')) }} {{ check('hide_full', _('Hide when booked up')) }}

{{ _('Participants tick a box to sign up. For several shifts or dates, add a question group and one question per entry; the group can limit how many entries a person may choose. A limit per person across all participation fields is in the form settings.') }}

{% elif qtype.key == 'slots' %} {{ check('multiple', _('A person may book several options')) }} {{ check('waitlist', _('Waiting list when an option is full')) }} {{ check('hide_full', _('Hide full options (instead of showing them as booked up)')) }}

{{ _('Enter the number of places next to each option; empty means unlimited. A limit per person across all participation fields is in the form settings.') }}

{% elif qtype.key == 'poll' %} {{ check('allow_proposals', _('Participants may propose further options')) }}

{{ _('A proposal counts as a “yes” from the person who made it. Everyone who has already taken part gets an email about it so they can add to their answer, provided participants may change their answer.') }}

{{ _('Dates') }}

{{ _('Only used when the options are dates. Time and duration are optional; without a time the date counts as a whole day.') }}

{% set date_rows = (options if values.get('mode') == 'dates' else []) %} {% for o in date_rows + [{}, {}, {}] %}
{% endfor %}
{% elif qtype.key == 'rating' %} {% endif %} {% if qtype.key == 'single_choice' %} {% elif qtype.key == 'multiple_choice' %} {% endif %} {% if qtype.has_options and not (qtype.key == 'slots' and slot_mode == 'single') %}
{{ _('Options') }}

{{ _('One option per line. Empty lines are ignored; to remove an option, delete its text. Renaming keeps existing answers.') }}

{% set with_images = qtype.key in ('single_choice', 'multiple_choice') %} {% if with_images %}

{{ _('Images per option are shown with the display “Image tiles”.') }}

{% endif %} {% for o in options %}
{% if qtype.key == 'slots' %}{% endif %} {% if o.proposed %}{{ _('proposed') }}{% endif %} {% if with_images %} {% if o.image %} {% endif %} {% endif %}
{% endfor %} {% set offset = options | length %} {% for _i in range(3 if options else 4) %}
{% if qtype.key == 'slots' %}{% endif %} {% if with_images %} {% endif %}
{% endfor %}
{% if qtype.key in ('single_choice', 'multiple_choice') %} {{ check('allow_other', _('Offer “Other” with a text field')) }} {% endif %} {% endif %}
{{ _('Condition (optional)') }} {% if not cond_candidates %}

{{ _('A condition refers to earlier questions with an answer. There are none before this one yet.') }}

{% else %}

{% if qtype.key == 'page_break' %}{{ _('Applies to the whole page.') }} {% elif qtype.key == 'heading' %}{{ _('Applies to the whole section up to the next heading or page.') }} {% elif qtype.key == 'question_group' %}{{ _('Applies to all questions of the group.') }} {% endif %} {{ _('Hidden questions are not required; their answers are discarded when submitting.') }}

{% for row in cond_rows + [{}, {}] %}
{% endfor %}

{{ _('For choice and yes/no questions pick the option, otherwise enter the value. Dates as 2026-07-01, times as 18:30. Rows without a question are ignored.') }}

{% endif %}
{% if question and question.id and not is_new and qtype.key != 'page_break' %} {% set m = question.config.get('media') or {} %} {% set base = '/forms/' ~ form.public_id ~ '/questions/' ~ question.id ~ '/media' %}

{{ _('Images and video') }}

{{ _('Shown above the question: one or more images or one video. Adding a video replaces the images and vice versa.') }}

{% if media_error %}{% endif %} {% if m.kind == 'images' %} {% elif m.kind == 'video' %} {% for part, label in (('poster', _('Remove preview image')), ('captions', _('Remove subtitles'))) %} {% if m.get(part) %}
{{ csrf_field(request) }}
{% endif %} {% endfor %} {% elif m.kind == 'embed' %}

{{ _('External video') }}: {{ embed_watch_url(m) }}

{% endif %} {% if m.kind in (None, 'images') and (m.get('items') or []) | length < 12 %}
{{ csrf_field(request) }}

{{ _('Add image') }}

{{ _('JPEG, PNG or WebP, at most %(n)s MB. Surveybox removes metadata such as location and shrinks large images.', n=media_cfg.image_max_mb) }}

{% endif %}
{{ csrf_field(request) }}

{% if m.kind == 'video' %}{{ _('Change video') }}{% else %}{{ _('Upload video') }}{% endif %}

{% if media_cfg.policy.any %}
{{ csrf_field(request) }}

{{ _('External video') }}

{{ _('Participants load the video only after a click and a notice that data is sent to the provider.') }}

{% endif %} {% if m.kind %}
{{ csrf_field(request) }}
{% endif %}
{% endif %} {% if question and question.id and not is_new %}

{{ _('Delete question') }}

{% if delete_error %}{% endif %}
{{ csrf_field(request) }} {% if answers %} {% endif %}
{% endif %} {% endblock %}