X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9bc86f5a6542c5893ac94284da33162a7c7be2d6..ce097db0af8c96297501b569ec49477b76c1ceec:/src/wolnelektury/templates/forms/form_sent.html?ds=inline

diff --git a/src/wolnelektury/templates/forms/form_sent.html b/src/wolnelektury/templates/forms/form_sent.html
index 515a643ea..2212da6e3 100644
--- a/src/wolnelektury/templates/forms/form_sent.html
+++ b/src/wolnelektury/templates/forms/form_sent.html
@@ -9,7 +9,7 @@
 
 {% 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 %}
@@ -17,5 +17,18 @@
 
 {% 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 %}