{% extends "user_groups/base.html" %}
{% load base_tags %}
{% load base_filters %}
{% load i18n %}

{% block title %}Import Subscribers{% endblock %}

{% block extra_head %}
{{ block.super }}
{% endblock %}

{% block body %}

<div id="import-wrap" class="finished">
    {% if task.status == "FAILED" or task.status == "REVOKED" %}
	<h1>{% trans "Subscriber Import Failed!" %}</h1>
	<p class="msg">Please try again. If the problem continues to persist please contact us <a href="">here</a>.</p>
    {% else %}
    <h1>{% trans "Processing Subscriber Import!" %}</h1>    
	<p class="msg">We're not done yet! Come back and check on us again later. Thanks!</p>
    {% endif %}
    
	<p class="link"><a href="{% url group.detail group.slug %}">{% trans "Back to" %} {{ group.name }}</a></p>
</div>
{% endblock %}

{% block extra_body %}
{{ block.super }}
<script type="text/javascript">
    //reload every 30 seconds
    setInterval(function(){
            window.location.reload();
        }, 30000);
</script>
{% endblock %}
