Add per-SP attribute mapping and allowed attributes
[cascardo/ipsilon.git] / templates / admin / providers / saml2_sp.html
1 {% extends "master-admin.html" %}
2 {% block main %}
3     <h2>{{ title }}</h2>
4     {% if message %}
5     <div class="alert alert-{{message_type}}">
6         <p>{{ message }}</p>
7     </div>
8     {% endif %}
9     <div id="options">
10         <form role="form" id="{{ name }}" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
11
12         <div class="form-group">
13             <label for="provider_id">Provider ID:</label>
14             {{ data.provider_id }}
15         </div>
16
17         <div class="form-group">
18             <label for="name">Name:</label>
19             {% if user.name == data.owner or user.is_admin %}
20                 <input type="text" class="form-control" name="name" value="{{ data.name }}"
21                        title="A nickname used to easily identify the Service Provider. Only alphanumeric characters [A-Z,a-z,0-9] and spaces are accepted"/>
22             {% else %}
23                 {{ data.name }}
24             {% endif %}
25         </div>
26
27         <div class="form-group">
28             <label for="default_nameid">Default NameID:</label>
29             {% if user.is_admin -%}
30                 <input type="text" class="form-control" name="default_nameid"
31                        title="The default nameid type returned to the Service Provider"
32                        value="
33             {%- endif -%}
34                 {{ data.default_nameid }}
35             {%- if user.is_admin -%}
36                 "/>
37             {%- endif %}
38         </div>
39
40         <div class="form-group">
41             <label for="allowed_nameids">Allowed NameIDs:</label>
42             {% if user.is_admin -%}
43                 <input type="text" class="form-control" name="allowed_nameids"
44                        title="The allowed nameid types that can be returned to a Service Provider"
45                        value="
46             {%- endif -%}
47                 {{ data.allowed_nameids|join(', ') }}
48             {%- if user.is_admin -%}
49                 "/>
50             {%- endif %}
51         </div>
52
53         {% if user.is_admin %}
54             <div class="form-group">
55                 <label for="owner">User Owner:</label>
56                 <input type="text" class="form-control" name="owner" value="{{ data.owner }}"
57                        title="The user that owns the Service Provider"/>
58             </div>
59         {% endif %}
60
61         {% if user.name == data.owner or user.is_admin %}
62             <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
63                 Save
64             </button>
65         {% endif %}
66             <a href="{{ backurl }}" class="btn btn-default" title="Back">Back</a>
67         </form>
68     </div>
69 {% endblock %}