Add tooltips to SAML forms
authorSimo Sorce <simo@redhat.com>
Tue, 27 May 2014 21:01:38 +0000 (17:01 -0400)
committerSimo Sorce <simo@redhat.com>
Thu, 29 May 2014 13:49:14 +0000 (09:49 -0400)
This should make clearer what is expected in each field.

Signed-off-by: Simo Sorce <simo@redhat.com>
templates/admin/providers/saml2_sp.html
templates/admin/providers/saml2_sp_new.html
templates/master-admin.html

index 0b7385b..84e46a9 100644 (file)
@@ -17,7 +17,8 @@
         <div class="form-group">
             <label for="name">Name:</label>
             {% if user.name == data.owner or user.is_admin %}
         <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 %}
             {% else %}
                 {{ data.name }}
             {% endif %}
@@ -26,7 +27,9 @@
         <div class="form-group">
             <label for="default_nameid">Default NameID:</label>
             {% if user.is_admin -%}
         <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 -%}
             {%- 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 -%}
         <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 -%}
             {%- 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>
         {% 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 %}
 
             </div>
         {% endif %}
 
index bf83fb2..46e4906 100644 (file)
 
         <div class="form-group">
             <label for="name">Name:</label>
 
         <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>
         </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">
         </div>
 
         <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
index ff5a9dd..c058360 100644 (file)
@@ -16,6 +16,7 @@
                 history.replaceState({} , document.title, "{{ newurl }}");
             }
         );
                 history.replaceState({} , document.title, "{{ newurl }}");
             }
         );
+        $( document ).tooltip();
     </script>
     {% endif %}
   </head>
     </script>
     {% endif %}
   </head>