diff options
author | Simo Sorce <simo@redhat.com> | 2014-05-27 17:01:38 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-05-29 09:49:14 -0400 |
commit | 57152208ec0aabab7923a414a118fe0ce1cdb4ce (patch) | |
tree | cb6e0876df9755b21e3820d37017f452e7580315 | |
parent | 4d45b3dbc7d7549e8f87fe4ab8b11c76d6d4b72e (diff) | |
download | ipsilon.git-57152208ec0aabab7923a414a118fe0ce1cdb4ce.tar.gz ipsilon.git-57152208ec0aabab7923a414a118fe0ce1cdb4ce.tar.xz ipsilon.git-57152208ec0aabab7923a414a118fe0ce1cdb4ce.zip |
Add tooltips to SAML forms
This should make clearer what is expected in each field.
Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r-- | templates/admin/providers/saml2_sp.html | 14 | ||||
-rw-r--r-- | templates/admin/providers/saml2_sp_new.html | 7 | ||||
-rw-r--r-- | templates/master-admin.html | 1 |
3 files changed, 16 insertions, 6 deletions
diff --git a/templates/admin/providers/saml2_sp.html b/templates/admin/providers/saml2_sp.html index 0b7385b..84e46a9 100644 --- a/templates/admin/providers/saml2_sp.html +++ b/templates/admin/providers/saml2_sp.html @@ -17,7 +17,8 @@ <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 }}"/> + <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 %} @@ -26,7 +27,9 @@ <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=" + <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 -%} @@ -37,7 +40,9 @@ <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=" + <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 -%} @@ -48,7 +53,8 @@ {% 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 }}"/> + <input type="text" class="form-control" name="owner" value="{{ data.owner }}" + title="The user that owns the Service Provider"/> </div> {% endif %} diff --git a/templates/admin/providers/saml2_sp_new.html b/templates/admin/providers/saml2_sp_new.html index bf83fb2..46e4906 100644 --- a/templates/admin/providers/saml2_sp_new.html +++ b/templates/admin/providers/saml2_sp_new.html @@ -11,12 +11,15 @@ <div class="form-group"> <label for="name">Name:</label> - <input type="text" class="form-control" name="name" value=""/> + <input type="text" class="form-control" name="name" value="" + title="A nickname used to easily identify the Service Provider. + Only alphanumeric characters and spaces are accepted"/> </div> <div class="form-group"> <label for="meta">Metadata file:</label> - <input type="file" name="meta" id="file"/> + <input type="file" name="meta" id="file" + title="The metadata file generated by the Service Provider"/> </div> <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit"> diff --git a/templates/master-admin.html b/templates/master-admin.html index ff5a9dd..c058360 100644 --- a/templates/master-admin.html +++ b/templates/master-admin.html @@ -16,6 +16,7 @@ history.replaceState({} , document.title, "{{ newurl }}"); } ); + $( document ).tooltip(); </script> {% endif %} </head> |