diff options
| author | Simo Sorce <simo@redhat.com> | 2014-04-04 13:07:19 -0400 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2014-04-04 13:07:19 -0400 |
| commit | 8cdf10beebc47e1dfa095d052a2f7ed317e905a0 (patch) | |
| tree | fa79df219df0eaa6d0a6c084bb59241a7cea5d43 /templates/admin/providers/saml2_sp.html | |
| parent | 671c9261307a23daaeafdaf3263accc836ba7b70 (diff) | |
Admin classes to change SP properties
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/admin/providers/saml2_sp.html')
| -rw-r--r-- | templates/admin/providers/saml2_sp.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/admin/providers/saml2_sp.html b/templates/admin/providers/saml2_sp.html new file mode 100644 index 0000000..50d38ed --- /dev/null +++ b/templates/admin/providers/saml2_sp.html @@ -0,0 +1,61 @@ +{% 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 }}"/> + {% 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" 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" 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 }}"/> + </div> + {% endif %} + + <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit"> + Save + </button> + <a href="{{ backurl }}" class="btn btn-default" title="Back">Back</a> + </form> + </div> +{% endblock %} |
