summaryrefslogtreecommitdiffstats
path: root/templates/admin/providers/saml2_sp.html
blob: 84e46a94a7bf5e7ddcf1e9873fb6aa0b905b4166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{% 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 }}"
                       title="A nickname used to easily identify the Service Provider. Only alphanumeric characters [A-Z,a-z,0-9] and spaces are accepted"/>
            {% 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"
                       title="The default nameid type returned to the Service Provider"
                       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"
                       title="The allowed nameid types that can be returned to a Service Provider"
                       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 }}"
                       title="The user that owns the Service Provider"/>
            </div>
        {% endif %}

        {% if user.name == data.owner or user.is_admin %}
            <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
                Save
            </button>
        {% endif %}
            <a href="{{ backurl }}" class="btn btn-default" title="Back">Back</a>
        </form>
    </div>
{% endblock %}