31 lines
867 B
HTML
31 lines
867 B
HTML
{% load i18n %}
|
|
{% if form or federations %}
|
|
<h4>{% trans "SAML2 Federations" %}</h4>
|
|
|
|
<div>
|
|
|
|
{% if linked_providers %}
|
|
<p>
|
|
<h5>{% trans "Delete a federation?" %}</h5>
|
|
{% for provider_id, name in linked_providers %}
|
|
<form action="{% url 'a2-auth-saml2-delete-federation' %}/{{ provider_id }}/" method="post">
|
|
<label for="id_del_fed">{{ name }}</label>
|
|
<input type="submit" class="submit-link" value="{% trans "Delete" %}">
|
|
</form>
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if form %}
|
|
<p>
|
|
<h5>{% trans "Add a federation?" %}</h5>
|
|
<form method="get" action="{% url "a2-auth-saml2-sso" %}">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<input type="submit" name="submit-authsaml2" value="{% trans "Log in" %}"/>
|
|
</form>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|