summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-04 13:07:19 -0400
committerSimo Sorce <simo@redhat.com>2014-04-04 13:07:19 -0400
commit8cdf10beebc47e1dfa095d052a2f7ed317e905a0 (patch)
treefa79df219df0eaa6d0a6c084bb59241a7cea5d43 /templates
parent671c9261307a23daaeafdaf3263accc836ba7b70 (diff)
downloadipsilon.git-8cdf10beebc47e1dfa095d052a2f7ed317e905a0.tar.gz
ipsilon.git-8cdf10beebc47e1dfa095d052a2f7ed317e905a0.tar.xz
ipsilon.git-8cdf10beebc47e1dfa095d052a2f7ed317e905a0.zip
Admin classes to change SP properties
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/providers/saml2.html23
-rw-r--r--templates/admin/providers/saml2_sp.html61
2 files changed, 69 insertions, 15 deletions
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 %}
- <h2>Service Providers</h2>
+<h2>Service Providers</h2>
+<hr/>
+{% for p in providers %}
<div class="row">
<div class="col-md-3 col-sm-3 col-xs-6">
- <a href="{{ baseurl }}/new">Add New</a>
+ <a href="{{ baseurl }}/sp/{{ p.name }}">{{ p.name }}</a>
</div>
- </div>
- <hr/>
- {% for p in providers %}
- <div class="row">
- <div class="col-md-3 col-sm-3 col-xs-6">
- <a href="{{ baseurl }}/{{ p.name }}">{{ p.name }}</a>
- </div>
- <div class="col-md-3 col-sm-3 col-xs-6">
- {{ p.provider_id }}
- </div>
+ <div class="col-md-3 col-sm-3 col-xs-6">
+ {{ p.provider_id }}
</div>
- {% endfor %}
-{% endif %}
+ </div>
+{% 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 %}
+ <h2>{{ title }}</h2>
+ {% if message %}
+ <div class="alert alert-{{message_type}}">
+ <p>{{ message }}</p>
+ </div>
+ {% endif %}
+ <div id="options">
+ <form role="form" id="{{ name }}" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
+
+ <div class="form-group">
+ <label for="provider_id">Provider ID:</label>
+ {{ data.provider_id }}
+ </div>
+
+ <div class="form-group">
+ <label for="name">Name:</label>
+ {% if user.name == data.owner or user.is_admin %}
+ <input type="text" class="form-control" name="name" value="{{ data.name }}"/>
+ {% else %}
+ {{ data.name }}
+ {% endif %}
+ </div>
+
+ <div class="form-group">
+ <label for="default_nameid">Default NameID:</label>
+ {% if user.is_admin -%}
+ <input type="text" class="form-control" name="default_nameid" value="
+ {%- endif -%}
+ {{ data.default_nameid }}
+ {%- if user.is_admin -%}
+ "/>
+ {%- endif %}
+ </div>
+
+ <div class="form-group">
+ <label for="allowed_nameids">Allowed NameIDs:</label>
+ {% if user.is_admin -%}
+ <input type="text" class="form-control" name="allowed_nameids" value="
+ {%- endif -%}
+ {{ data.allowed_nameids|join(', ') }}
+ {%- if user.is_admin -%}
+ "/>
+ {%- endif %}
+ </div>
+
+ {% if user.is_admin %}
+ <div class="form-group">
+ <label for="owner">User Owner:</label>
+ <input type="text" class="form-control" name="owner" value="{{ data.owner }}"/>
+ </div>
+ {% endif %}
+
+ <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
+ Save
+ </button>
+ <a href="{{ backurl }}" class="btn btn-default" title="Back">Back</a>
+ </form>
+ </div>
+{% endblock %}