SP Portal administrative interface
[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="name">Description:</label>
21             <input type="text" class="form-control" name="description" value=""
22                    title="A description of the services this Service Provider provides"/>
23         </div>
24
25         <div class="form-group">
26             <label for="name">Visible in IdP Portal: </label>
27             <input type="checkbox" name="portalvisible" checked
28                    title="Show this Service Provider in the IdP Portal"/>
29         </div>
30
31         <div class="form-group">
32             <label for="image">Portal image:</label>
33             <input type="file" name="imagefile" id="image"
34                    title="Image to display for this Service Provider in the IdP Portal. Scale to 100x200 for best results."
35                    accept=".png,.jpg"
36             />
37         </div>
38
39         <div class="form-group">
40             <label for="splink">Link to Service Provider:</label>
41             <input type="text" class="form-control" name="splink" value=""
42                    title="Link to the Service Provider"
43             />
44         </div>
45
46         <div class="form-group">
47             <label for="metafile">Metadata file:</label>
48             <input type="file" name="metafile" id="file"
49                    title="The metadata file generated by the Service Provider"/>
50         </div>
51         - OR -
52         <div class="form-group">
53             <label for="metaurl">Metadata url:</label>
54             <input type="text" name="metaurl" id="url"
55                    title="The metadata url exposed by the Service Provider (ex. http://service.provider/saml/metadata )"/>
56         </div>
57         - OR -
58         <div class="form-group">
59             <label for="metatext">Metadata text:</label>
60             <br>
61             <textarea name="metatext" rows="10" cols="80"
62                       title="The metadata generated by the Service Provider"
63                       form="{{ name }}"></textarea>
64         </div>
65
66         <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
67             Save
68         </button>
69         <a href="{{ back }}" class="btn btn-default" title="Back">Back</a>
70         </form>
71     </div>
72 {% endblock %}