0b7385bd0afb550e22738ed41e766409070c252b
[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             {% else %}
22                 {{ data.name }}
23             {% endif %}
24         </div>
25
26         <div class="form-group">
27             <label for="default_nameid">Default NameID:</label>
28             {% if user.is_admin -%}
29                 <input type="text" class="form-control" name="default_nameid" value="
30             {%- endif -%}
31                 {{ data.default_nameid }}
32             {%- if user.is_admin -%}
33                 "/>
34             {%- endif %}
35         </div>
36
37         <div class="form-group">
38             <label for="allowed_nameids">Allowed NameIDs:</label>
39             {% if user.is_admin -%}
40                 <input type="text" class="form-control" name="allowed_nameids" value="
41             {%- endif -%}
42                 {{ data.allowed_nameids|join(', ') }}
43             {%- if user.is_admin -%}
44                 "/>
45             {%- endif %}
46         </div>
47
48         {% if user.is_admin %}
49             <div class="form-group">
50                 <label for="owner">User Owner:</label>
51                 <input type="text" class="form-control" name="owner" value="{{ data.owner }}"/>
52             </div>
53         {% endif %}
54
55         {% if user.name == data.owner or user.is_admin %}
56             <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
57                 Save
58             </button>
59         {% endif %}
60             <a href="{{ backurl }}" class="btn btn-default" title="Back">Back</a>
61         </form>
62     </div>
63 {% endblock %}