2019-12-16 08:53:29 +00:00
|
|
|
|
{% extends '_base_only_content.html' %}
|
2016-09-01 15:09:58 +00:00
|
|
|
|
{% load static %}
|
2019-12-16 08:53:29 +00:00
|
|
|
|
{% load i18n %}
|
|
|
|
|
{% block html_title %} {{ title }} {% endblock %}
|
|
|
|
|
{% block title %} {{ title }}{% endblock %}
|
2016-09-01 15:09:58 +00:00
|
|
|
|
|
2019-12-16 08:53:29 +00:00
|
|
|
|
{% block content %}
|
2022-07-05 06:43:56 +00:00
|
|
|
|
<style>
|
|
|
|
|
.alert.alert-msg {
|
|
|
|
|
background: #F5F5F7;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2019-12-16 08:53:29 +00:00
|
|
|
|
<div>
|
2021-10-18 03:25:39 +00:00
|
|
|
|
<p>
|
2022-07-05 06:43:56 +00:00
|
|
|
|
<div class="alert alert-msg" id="messages">
|
2021-10-18 03:25:39 +00:00
|
|
|
|
{% if error %}
|
|
|
|
|
{{ error }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ message|safe }}
|
|
|
|
|
{% endif %}
|
2022-07-05 06:43:56 +00:00
|
|
|
|
</div>
|
2021-10-18 03:25:39 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
2016-09-01 15:09:58 +00:00
|
|
|
|
<div class="row">
|
2021-04-29 09:15:46 +00:00
|
|
|
|
{% if has_cancel %}
|
2023-02-24 06:33:37 +00:00
|
|
|
|
<div class="col-sm-3">
|
2021-04-29 09:15:46 +00:00
|
|
|
|
<a href="{{ cancel_url }}" class="btn btn-default block full-width m-b">
|
|
|
|
|
{% trans 'Cancel' %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2021-09-29 07:16:08 +00:00
|
|
|
|
<div class="col-sm-3">
|
2021-04-29 04:21:39 +00:00
|
|
|
|
<a href="{{ redirect_url }}" class="btn btn-primary block full-width m-b">
|
|
|
|
|
{% if confirm_button %}
|
|
|
|
|
{{ confirm_button }}
|
|
|
|
|
{% else %}
|
2021-10-28 06:56:56 +00:00
|
|
|
|
{% trans 'Confirm' %}
|
2021-04-29 04:21:39 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</a>
|
2016-09-01 15:09:58 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-12-16 08:53:29 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block custom_foot_js %}
|
2023-02-24 06:33:37 +00:00
|
|
|
|
<script>
|
2021-10-18 03:25:39 +00:00
|
|
|
|
var message = ''
|
|
|
|
|
var time = '{{ interval }}'
|
|
|
|
|
{% if error %}
|
|
|
|
|
message = '{{ error }}'
|
|
|
|
|
{% else %}
|
|
|
|
|
message = '{{ message|safe }}'
|
|
|
|
|
{% endif %}
|
2019-12-16 08:53:29 +00:00
|
|
|
|
|
2016-09-02 16:39:06 +00:00
|
|
|
|
function redirect_page() {
|
|
|
|
|
if (time >= 0) {
|
2021-10-18 03:25:39 +00:00
|
|
|
|
var msg = message + ', <b>' + time + '</b> ...';
|
|
|
|
|
$('#messages').html(msg);
|
2016-09-02 16:39:06 +00:00
|
|
|
|
time--;
|
|
|
|
|
setTimeout(redirect_page, 1000);
|
2019-12-16 08:53:29 +00:00
|
|
|
|
} else {
|
2016-09-02 16:39:06 +00:00
|
|
|
|
window.location.href = "{{ redirect_url }}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{% if auto_redirect %}
|
2019-12-16 08:53:29 +00:00
|
|
|
|
window.onload = redirect_page;
|
2016-09-02 16:39:06 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</script>
|
2019-12-16 08:53:29 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|