From 8cdf10beebc47e1dfa095d052a2f7ed317e905a0 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 4 Apr 2014 13:07:19 -0400 Subject: Admin classes to change SP properties Signed-off-by: Simo Sorce --- templates/admin/providers/saml2.html | 23 +++++-------- templates/admin/providers/saml2_sp.html | 61 +++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 15 deletions(-) create mode 100644 templates/admin/providers/saml2_sp.html (limited to 'templates') diff --git a/templates/admin/providers/saml2.html b/templates/admin/providers/saml2.html index 0d0a05f..5185a6f 100644 --- a/templates/admin/providers/saml2.html +++ b/templates/admin/providers/saml2.html @@ -1,23 +1,16 @@ {% extends "master-admin.html" %} {% block main %} -{% if user.is_admin %} -

Service Providers

+

Service Providers

+
+{% for p in providers %} -
- {% for p in providers %} -
- -
- {{ p.provider_id }} -
+
+ {{ p.provider_id }}
- {% endfor %} -{% endif %} +
+{% endfor %} {% endblock %} diff --git a/templates/admin/providers/saml2_sp.html b/templates/admin/providers/saml2_sp.html new file mode 100644 index 0000000..50d38ed --- /dev/null +++ b/templates/admin/providers/saml2_sp.html @@ -0,0 +1,61 @@ +{% extends "master-admin.html" %} +{% block main %} +

{{ title }}

+ {% if message %} +
+

{{ message }}

+
+ {% endif %} +
+
+ +
+ + {{ data.provider_id }} +
+ +
+ + {% if user.name == data.owner or user.is_admin %} + + {% else %} + {{ data.name }} + {% endif %} +
+ +
+ + {% if user.is_admin -%} + + {%- endif %} +
+ +
+ + {% if user.is_admin -%} + + {%- endif %} +
+ + {% if user.is_admin %} +
+ + +
+ {% endif %} + + + Back +
+
+{% endblock %} -- cgit