{% extends 'ddm_core/page_with_form.html' %} {% block page_title %}Edit {{ question_type }}{% endblock %} {% block main_heading %}Edit {{ question_type }} "{{ object.name }}"{% endblock %} {% block main_form_header %}Question Configuration{% endblock %} {% block main_form %}
{% csrf_token %} {{ form.media }}

Internal Organisation

{% for field in form %} {% if field.name in "name,variable_name,blueprint" %}

{{ field.label_tag }} {{ field.errors }} {{ field }} {{ field.help_text }}

{% endif %} {% endfor %}

Display Options

{% for field in form %} {% if field.name in "page,index,text" %}

{{ field.label_tag }} {{ field.errors }} {{ field }} {{ field.help_text }}

{% endif %} {% endfor %}
{% if object.question_type != "transition" %}

Validation

{% for field in form %} {% if field.name in "required,input_type,max_input_length,display" %}

{{ field.label_tag }} {{ field.errors }} {{ field }} {{ field.help_text }}

{% endif %} {% endfor %}
{% endif %} {% if object.question_type != "transition" %}

Item Configuration

{% for field in form %} {% if field.name in "randomize_items,show_scale_headings,multi_item_response" %}

{{ field.label_tag }} {{ field.errors }} {{ field }} {{ field.help_text }}

{% endif %} {% endfor %}
{% endif %} {% block cancel %}

Back

{% endblock %}
{% endblock %} {% block main_bottom %} {% if object.question_type != "transition" %} {% if object.question_type == "open" and not object.multi_item_response %} {% else %}
Question Items
{% for item in object.questionitem_set.all %} {% if forloop.first %} {% if object.question_type == "semantic_diff" %} {% else %} {% endif %} {% endif %} {% if object.question_type == "semantic_diff" %} {% else %} {% endif %} {% empty %} {% endfor %}
IndexLabel Label RightLabelValue Randomize Filter Conditions
{{ item.index }}{{ item.label }} {{ item.label_alt }}{{ item.label }}{{ item.value }} {{ item.randomize }} {% if item.get_active_filters %}

Hide item if: {% for c in item.get_active_filters %} {% if not forloop.first %}{{ c.combinator }}{% endif %} {{ c.get_source_name }} {{ c.condition_operator }} {{ c.condition_value }} {% endfor %}
Edit

{% else %}

Add

{% endif %}
No items defined.

Edit Items

Make sure to save any changes of the question configuration before editing the items.

{% endif %} {% if object.question_type == "semantic_diff" or object.question_type == "matrix" %}
Scale Configuration
{% for point in object.scalepoint_set.all %} {% if forloop.first %} {% endif %} {% empty %} {% endfor %}
Index Input Label Heading Label Value
{{ point.index }} {% if point.input_label is not None %}{{ point.input_label }}{% endif %} {% if point.heading_label is not None %}{{ point.heading_label }}{% endif %} {{ point.value }}
No scale points defined.

Edit Scale Points

Make sure to save any changes of the question configuration before editing the scale.

{% endif %} {% endif %}
Filter Configuration
{% if object.get_active_filters %}

Hide question if: {% for c in object.get_active_filters %} {% if not forloop.first %}{{ c.combinator }}{% endif %} {{ c.get_source_name }} {{ c.condition_operator }} {{ c.condition_value }} {% endfor %}

Edit Filter Conditions

{% else %}

No filter conditions defined.

Add Filter Conditions

{% endif %}

Make sure to save any changes of the question configuration before editing the filters.

{% if object.question_type == "open" and not object.multi_item_response %} {% else %}
Back
{% endif %} {% endblock %} {% block breadcrumbs %} Projects / "{{ project.name|truncatechars:15 }}" Project / Questionnaire / Edit Question {% endblock %}