mirror of
https://github.com/pretix/pretix.git
synced 2026-05-13 16:33:59 +00:00
Enabled asynchronous cart/order actions
This commit is contained in:
37
src/pretix/presale/templates/pretixpresale/waiting.html
Normal file
37
src/pretix/presale/templates/pretixpresale/waiting.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% load compress %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ settings.PRETIX_INSTANCE_NAME }}</title>
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" type="text/less" href="{% static "pretixpresale/less/waiting.less" %}"/>
|
||||
{% endcompress %}
|
||||
{% compress js %}
|
||||
<script type="text/javascript" src="{% static "jquery/js/jquery-2.1.1.min.js" %}"></script>
|
||||
{% endcompress %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="refresh" content="1">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<i class="fa fa-cog big-rotating-icon"></i>
|
||||
|
||||
<h1>{% trans "We are processing your request…" %}</h1>
|
||||
|
||||
<p>
|
||||
{% trans "If this takes longer than a few minutes, please contact us." %}
|
||||
</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
window.setInterval(function () {
|
||||
$.get(location.href + '&ajax=1', function (data, status) {
|
||||
if (data.ready && data.redirect) {
|
||||
location.href = data.redirect;
|
||||
}
|
||||
}, 'json');
|
||||
}, 2000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user