33 lines
766 B
HTML
33 lines
766 B
HTML
{% load i18n %}
|
|
{% if form or federations %}
|
|
<h4>{% trans "SAML2 Federations" %}</h4>
|
|
|
|
<div>
|
|
|
|
{% if federations %}
|
|
<p>
|
|
<h5>{% trans "Delete a federation?" %}</h5>
|
|
{% for f in federations %}
|
|
<form action="{% url 'authsaml2-delete-federation' %}" method="post">
|
|
<label for="id_del_fed">{{ f }}</label>
|
|
<input type="hidden" name="fed" value="{{ f }}" />
|
|
<input type="hidden" name="next" value="/profile" />
|
|
<input type="submit" class="submit-link" value="{% trans "Delete" %}">
|
|
</form>
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if form %}
|
|
<p>
|
|
<h5>{% trans "Add a federation?" %}</h5>
|
|
<form method="post" action="">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<input type="submit" name="{{ submit_name }}" value="{% trans "Log in" %}"/>
|
|
</form>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|