{% extends 'layout/base.html' %}

{% block title %}
    {%- trans %}Surveys{% endtrans -%}
{% endblock %}

{% block content %}
    <table class="i-table-widget">
        <thead>
            <tr>
                <th>{% trans %}Survey title{% endtrans %}</th>
                <th>{% trans %}Opening day{% endtrans %}</th>
                <th>{% trans %}Deadline{% endtrans %}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {% for survey in surveys %}
                <tr>
                    <td>{{ survey.title }}</td>
                    <td>{{ survey.start_dt | format_datetime(locale='en_GB') if survey.start_dt else 'Not started' }}</td>
                    <td>
                        {{ survey.end_dt | format_datetime(locale='en_GB') if survey.end_dt else 'No deadline' }}
                    </td>
                    <td>
                        {{ render_available_buttons(survey) }}
                    </td>
                </tr>
            {% else %}
                <tr>
                    <td colspan="4">{% trans %}No surveys defined{% endtrans %}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% macro render_available_buttons(survey) %}
    {% if not was_survey_submitted(survey) and survey.can_submit(session.user) %}
        <a href="{{ url_for('.display_survey_form', survey) }}" class="i-button highlight">
            {%trans %}Fill in{% endtrans %}
        </a>
    {% endif %}
{% endmacro %}

{% extends 'layout/base.html' %}

{% block title %}
    {%- trans %}Surveys{% endtrans -%}
{% endblock %}

{% block content %}
    <table class="i-table-widget">
        <thead>
            <tr>
                <th>{% trans %}Survey title{% endtrans %}</th>
                <th>{% trans %}Opening day{% endtrans %}</th>
                <th>{% trans %}Deadline{% endtrans %}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {% for survey in surveys %}
                <tr>
                    <td>{{ survey.title }}</td>
                    <td>{{ survey.start_dt | format_datetime if survey.start_dt else _('Not started') }}</td>
                    <td>{{ survey.end_dt | format_datetime if survey.end_dt else _('No deadline') }}</td>
                    <td>{{ render_available_buttons(survey) }}</td>
                </tr>
            {% else %}
                <tr>
                    <td colspan="4">{% trans %}No surveys defined{% endtrans %}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% macro render_available_buttons(survey) %}
    {% if not was_survey_submitted(survey) and survey.can_submit(session.user) %}
        <a href="{{ url_for('.display_survey_form', survey) }}" class="i-button highlight">
            {% trans %}Fill in{% endtrans %}
        </a>
    {% endif %}
{% endmacro %}

Fix i18n issues in survey list
Fix i18n issues in survey list
