-{% extends form.base_template|default:request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+{% extends form.base_template|default:"base_simple.html" %}
{% load forms_builder_tags %}
{% load title %}
{% load i18n %}
{% block breadcrumbs %}
<a href="{{ form.get_absolute_url }}"><span>{{ form.title }}</span></a>
- <span>{% trans "Thank you" %}</span>
+ <span>{% trans "Dziękujemy" %}</span>
{% endblock %}
{% block title %}{{ form.title }}{% endblock %}
{% block body %}
<h1>{{ form.title }}</h1>
- <p>{{ form.response }}</p>
+ <p id="form-response">{{ form.response|safe }}</p>
+{% endblock %}
+
+{% block extrabody %}
+ <script type="text/javascript">
+ (function() {
+ let $a = $("#form-response a");
+ if ($a.length) {
+ setTimeout(() => {
+ window.location.href = $a.attr('href');
+ }, 5000);
+ }
+ })();
+ </script>
{% endblock %}