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

{% block page-title %}
  {{ block.super }} - {{ title }}
{% endblock %}

{% block content %}
<div class="post-redirect">
<h2>{{ title }}</h2>
<form action="{{url}}" method="post" name="saml">
   <p>{% trans "You should be automatically redirected." %}</p>
   <p>{% trans "If this page is still visible after a few seconds, press the Send button below." %}</p>
   <input type="hidden" name="{{ fieldname }}" value="{{ body }}" />
   {% if relay_state %}
   <input type="hidden" name="RelayState" value="{{ relay_state }}"/>
   {% endif %}
   <noscript>
     <div class="buttons-bar">
      <button name="sendButton">{% trans 'Send' %}</button>
     </div>
  </noscript>
  </form>
</div>
<script>
  document.forms['saml'].submit()
</script>
{% endblock %}
