summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-04-05 22:13:44 +0200
committerLeif Johansson <leifj@sunet.se>2012-04-05 22:13:44 +0200
commit241905ce73223ed97b6ac9c62d8250b9659f6e3a (patch)
tree20fa396389487630269b916f54c749b4739ad229
parent1fde03f7116ab81a18088c46c348d881f15c41e4 (diff)
local wayf
-rw-r--r--templates/djangosaml2/wayf.html29
1 files changed, 14 insertions, 15 deletions
diff --git a/templates/djangosaml2/wayf.html b/templates/djangosaml2/wayf.html
index 072fdd5..d2b29ca 100644
--- a/templates/djangosaml2/wayf.html
+++ b/templates/djangosaml2/wayf.html
@@ -1,16 +1,15 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- </head>
- <body>
- <h1>Login!</h1>
+{% extends "base.html" %}
+{% block headline %}Login{% endblock %}
+{% block title %}COIP{% endblock %}
+{% block main %}
+<h1>Login!</h1>
<p>Please select your <strong>Identity Provider</strong> from the following list:</p>
- <ul>
- {% for url, idp in available_idps %}
- <li><a href="{% url djangosaml2.views.login %}?idp={{ url }}{% if came_from %}&next={{ came_from }}{% endif %}">{{ idp.0 }}</a></li>
- {% endfor %}
- </ul>
- </body>
-</html>
+ <form action="{% url djangosaml2.views.login %}" method="GET">
+ <select id="idp" name="idp">
+ {% for url, idp in available_idps %}
+ <option value="{{url}}">{{idp.0}}</option>
+ {% endfor %}
+ </select>
+ <input type="submit" value="Select"/>
+ </form>
+{% endblock %} \ No newline at end of file