{% load i18n %} {% load date_format %} {% comment %} Render the questiongroup as table. The labels of the keys are used as table headers, each questiongroup takes up one row of the table. Important: The questiongroup must have the view_option "with_keys": true set. Also, the questions should be rendered with view_option "template": "value_only". {% endcomment %} {% if config.label and config.layout == 'label' %}
{{ keys.0 }} | {% trans "From" %} | {% trans "To" %} | {{ keys.5 }} | {% for questiongroup in questiongroups %}
{{ questiongroup.0|striptags }} | {{ questiongroup.2|month_name:'F' }} {{ questiongroup.1 }} | {{ questiongroup.4|month_name:'F' }} {{ questiongroup.3 }} | {{ questiongroup.5 }} |