Add per-SP attribute mapping and allowed attributes
[cascardo/ipsilon.git] / templates / admin / providers / saml2_sp_new.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="multipart/form-data">
11
12         <div class="form-group">
13             <label for="name">Name:</label>
14             <input type="text" class="form-control" name="name" value=""
15                    title="A nickname used to easily identify the Service Provider.
16                           Only alphanumeric characters and spaces are accepted"/>
17         </div>
18
19         <div class="form-group">
20             <label for="metafile">Metadata file:</label>
21             <input type="file" name="metafile" id="file"
22                    title="The metadata file generated by the Service Provider"/>
23         </div>
24         - OR -
25         <div class="form-group">
26             <label for="metaurl">Metadata url:</label>
27             <input type="text" name="metaurl" id="url"
28                    title="The metadata url exposed by the Service Provider (ex. http://service.provider/saml/metadata )"/>
29         </div>
30         - OR -
31         <div class="form-group">
32             <label for="metatext">Metadata text:</label>
33             <br>
34             <textarea name="metatext" rows="10" cols="80"
35                       title="The metadata generated by the Service Provider"
36                       form="{{ name }}"></textarea>
37         </div>
38
39         <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
40             Save
41         </button>
42         <a href="{{ back }}" class="btn btn-default" title="Back">Back</a>
43         </form>
44     </div>
45 {% endblock %}