{% extends "base.html" %} {% comment %}This view is used to display a list of ``mtp.apps.surveys.Question`` instances of a pool. Context ------- pool : instance of ``mtp.apps.surveys.models.Pool`` The pool for which we display the questions. question_list : queryset of ``mtp.apps.surveys.models.Question`` It contains all the questions to display. {% endcomment %} {% load i18n %} {% block body_class %}{{ block.super }} page-cms-surveys page-cms-surveys-questions{% endblock %} {% block subtitle %} {% blocktrans with pool_name=pool.name %}Questions for the pool of question "{{ pool_name }}"{% endblocktrans %} {% endblock %} {% block actions %} {% trans 'Back to the pool' %} {% if question_list|length > 1 %} {% trans "Sort questions" %} {% endif %} {% trans "Add a question" %} {% endblock %} {% block main %} {% for question in question_list %} {% endfor %}
{% trans 'Title'%} {% trans 'Type'%} {% trans 'Value type'%} {% trans 'Edit' %} {% trans 'Delete' %}
{{ question.title }} {{ question.get_question_type_display }} {{ question.get_value_type_display }}
{% endblock %}