{% load i18n %}

{% trans "Submission" %}

{% if not testdef.user_uuid %} {% trans "No submission user." %} {% else %} {% trans "Submission user:" %} {{ user }}. {% endif %} {% trans "Change user" %}

{% blocktrans trimmed with mode=testdef.is_in_backoffice|yesno:_("backoffice,frontoffice") %} Current submission mode is {{ mode }}. {% endblocktrans %} {% blocktrans trimmed with mode=testdef.is_in_backoffice|yesno:_("frontoffice,backoffice") %} Switch to {{ mode }} mode. {% endblocktrans %}

{% trans "Query parameters" %}

{% if testdef.query_parameters %} {% trans "Query parameters:" %}

{% endif %} {% trans "Edit parameters" %}

{% trans "Mark test as failing" %}

{% if testdef.expected_error %}

{% blocktrans trimmed with error=testdef.expected_error %} This test is expected to fail on error "{{ error }}". Submitting the form will mark it as passing again. {% endblocktrans %}

{% elif mark_as_failing_form %}

{% blocktrans trimmed with error=mark_as_failing_form.test_error %} If test should fail on error "{{ error }}", click button below. {% endblocktrans %}

{{ mark_as_failing_form.render|safe }} {% else %}

{% trans "In order to mark test as failing, form must display exactly one error." %} {% trans 'Note that some errors cannot be used, such as "required field" or "invalid value selected".' %}

{% endif %}