[Openvas-commits] r11657 - in trunk/gsa: . src/html

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 22 13:27:08 CEST 2011


Author: mattm
Date: 2011-09-22 13:27:08 +0200 (Thu, 22 Sep 2011)
New Revision: 11657

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/oap.xsl
Log:
	* src/html/oap.xsl (html-create-user-form, user [edit]): Add observer
	role.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2011-09-22 11:25:12 UTC (rev 11656)
+++ trunk/gsa/ChangeLog	2011-09-22 11:27:08 UTC (rev 11657)
@@ -1,3 +1,8 @@
+2011-09-22  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/html/oap.xsl (html-create-user-form, user [edit]): Add observer
+	role.
+
 2011-09-21  Matthew Mundell <matthew.mundell at greenbone.net>
 
 	Add task observers.

Modified: trunk/gsa/src/html/oap.xsl
===================================================================
--- trunk/gsa/src/html/oap.xsl	2011-09-22 11:25:12 UTC (rev 11656)
+++ trunk/gsa/src/html/oap.xsl	2011-09-22 11:27:08 UTC (rev 11657)
@@ -74,6 +74,7 @@
               <select name="role">
                 <option value="Admin">Admin</option>
                 <option value="User" selected="1">User</option>
+                <option value="Observer">Observer</option>
               </select>
             </td>
           </tr>
@@ -373,10 +374,17 @@
                   <xsl:when test="role='User'">
                     <option value="Admin">Admin</option>
                     <option value="User" selected="1">User</option>
+                    <option value="Observer">Observer</option>
                   </xsl:when>
+                  <xsl:when test="role='Observer'">
+                    <option value="Admin">Admin</option>
+                    <option value="User">User</option>
+                    <option value="Observer" selected="1">Observer</option>
+                  </xsl:when>
                   <xsl:otherwise>
                     <option value="Admin" selected="1">Admin</option>
                     <option value="User">User</option>
+                    <option value="Observer">Observer</option>
                   </xsl:otherwise>
                 </xsl:choose>
               </select>



More information about the Openvas-commits mailing list