{% extends "admin/base_site.html" %} {% load i18n static %} {% comment %} The whole version on one form: pages, their sections, their questions, and each question's choices and validators. Everything a person scans by -- key, title, type, order -- is on the row. The rest is behind a disclosure, because a question has sixteen fields and a questionnaire has fourteen questions, and showing all of that at once is the same problem as making them click through five screens. {% endcomment %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% csrf_token %}
{{ version }} {{ version.status }} {% blocktranslate count counter=response_count %}{{ counter }} response{% plural %}{{ counter }} responses{% endblocktranslate %}
{% translate "Version settings" %} {% translate "Responses" %}
{% if editor.errors %} {% endif %} {% if editor.requires_acknowledgement %}

{% blocktranslate count counter=response_count %} This version already has {{ counter }} response. Changing what a question asks changes what that answer means. {% plural %} This version already has {{ counter }} responses. Changing what a question asks changes what those answers mean. {% endblocktranslate %} {% translate "The ordinary way to make a change like this is to fork a new draft; editing in place is allowed, and recorded." %}

{{ editor.acknowledgement.understood.errors }}

{{ editor.acknowledgement.understood }}

{{ editor.acknowledgement.edit_reason }} {{ editor.acknowledgement.edit_reason.help_text }}

{% endif %} {{ editor.pages.management_form }}
{% for page in editor.nodes %}
{% include "admin/vinta_django_questionnaires/_summary.html" with form=page.form label="page" count=page.summary_count %}
{% include "admin/vinta_django_questionnaires/_rest.html" with form=page.form %} {{ page.sections.management_form }}
{% for section in page.nodes %}
{% include "admin/vinta_django_questionnaires/_summary.html" with form=section.form label="section" count=section.summary_count %}
{% include "admin/vinta_django_questionnaires/_rest.html" with form=section.form %} {{ section.questions.management_form }}
{% for question in section.nodes %}
{% include "admin/vinta_django_questionnaires/_summary.html" with form=question.form label="question" count=question.summary_count %}
{% include "admin/vinta_django_questionnaires/_rest.html" with form=question.form %}

{% translate "Choices" %}

{{ question.choices.management_form }} {% for form in question.choices.forms %} {% include "admin/vinta_django_questionnaires/_item.html" with form=form label="choice" %} {% endfor %}

{% translate "Validators" %}

{% translate "They run in this order, and each one sees what the ones before it recorded." %}

{{ question.validators.management_form }} {% for form in question.validators.forms %} {% include "admin/vinta_django_questionnaires/_item.html" with form=form label="validator" %} {% endfor %}
{% endfor %} {% for form in section.questions.forms %} {% if not form.instance.pk %}

{% translate "Add a question" %}

{% include "admin/vinta_django_questionnaires/_rest.html" with form=form new=True %}
{% endif %} {% endfor %}
{% endfor %} {% for form in page.sections.forms %} {% if not form.instance.pk %}

{% translate "Add a section" %}

{% include "admin/vinta_django_questionnaires/_rest.html" with form=form new=True %}
{% endif %} {% endfor %}
{% endfor %} {% for form in editor.pages.forms %} {% if not form.instance.pk %}

{% translate "Add a page" %}

{% include "admin/vinta_django_questionnaires/_rest.html" with form=form new=True %}
{% endif %} {% endfor %}

{% translate "A new page has nothing to hang a section off until it is saved, so adding is one save behind editing." %}

{% endblock %}