{% extends "authentic2/base-page.html" %}
{% load i18n %}

{% block title %} {{ title }} {% endblock %}

{% block content %}
<div class="post-redirect">
    <div class="row">
        <div class="columns small-12 text-center">
            {# <h2>{{ title }}</h2> #}
            <h2>{% trans "Vous allez être redirigé vers Les Echos" %}</h2>
        </div>
    </div>
    <form action="{{url}}" method="post" name="saml">
        <div class="row">
            <div class="small-12 text-center">
                <img src="{{ STATIC_URL }}authentic2/images/load.gif" atl="loading">
            </div>
        </div>
        <div class="row">
            <div class="columns small-12 text-center">
                <p>{% trans "Vous devriez être automatiquement redirigé." %}
                <p>{% trans "Si cette page est encore visible au bout de quelques secondes, veuillez cliquer sur le lien suivant." %}</p>
                    <input type="hidden" name="{{ fieldname }}" value="{{ body }}" />
                {% if relay_state %}
                    <input type="hidden" name="RelayState" value="{{ relay_state }}"/>
                {% endif %}
                <div class="buttons-bar">
                    <button type="submit" class="submit radius large inverted-button" name="sendButton" value="{% trans 'Send' %}" />{%  trans "CONTINUER" %}</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script>
  document.forms['saml'].submit()
</script>
{% endblock %}
