continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r442787 - in /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main: resources/localization/Continuum.properties webapp/projectGroupPermissions.jsp
Date Wed, 13 Sep 2006 01:25:32 GMT
Author: carlos
Date: Tue Sep 12 18:25:32 2006
New Revision: 442787

URL: http://svn.apache.org/viewvc?view=rev&rev=442787
Log:
Improve interface for permission editing

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/localization/Continuum.properties
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupPermissions.jsp

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/localization/Continuum.properties?view=diff&rev=442787&r1=442786&r2=442787
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/localization/Continuum.properties
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/localization/Continuum.properties
Tue Sep 12 18:25:32 2006
@@ -202,6 +202,7 @@
 projectView.role.edit = Edit
 projectView.role.delete = Delete
 projectView.role.build = Build
+projectView.role.administer = Administer
 
 # ----------------------------------------------------------------------
 # Page: ProjectEdit

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupPermissions.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupPermissions.jsp?view=diff&rev=442787&r1=442786&r2=442787
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupPermissions.jsp
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupPermissions.jsp
Tue Sep 12 18:25:32 2006
@@ -16,58 +16,87 @@
         </jsp:include>
 
         <h3>Users</h3>
-        <form action="projectGroupPermissions!save.action">
-
-          username - view - edit - delete - build - admin<br/>
-
-          <ww:iterator value="userPermissions" id="permission">
-
-            <ww:property value='user.username'/>
-            <ww:hidden name="projectGroupId" value="%{projectGroupId}"/>
-            <ww:hidden name="userNames" value="%{user.username}"/>
-
-            <ww:set name="read" value="<ww:property value='read'/>"/>
-            <ww:set name="write" value="<ww:property value='write'/>"/>
-            <ww:set name="delete" value="<ww:property value='delete'/>"/>
-            <ww:set name="execute" value="<ww:property value='execute'/>"/>
-            <ww:set name="administer" value="<ww:property value='administer'/>"/>
-
-            <ww:if test="read == true">
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.read']"
checked="true">
-            </ww:if>
-            <ww:else>
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.read']">
-            </ww:else>
-            <ww:if test="write == true">
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.write']"
checked="true">
-            </ww:if>
-            <ww:else>
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.write']">
-            </ww:else>
-            <ww:if test="delete == true">
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.delete']"
checked="true">
-            </ww:if>
-            <ww:else>
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.delete']">
-            </ww:else>
-            <ww:if test="execute == true">
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.execute']"
checked="true">
-            </ww:if>
-            <ww:else>
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.execute']">
-            </ww:else>
-            <ww:if test="administer == true">
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.administer']"
checked="true">
-            </ww:if>
-            <ww:else>
-              <input type="checkbox" name="map['<ww:property value="user.username"/>.administer']">
-            </ww:else>
-
-            <br/>
-          </ww:iterator>
-
-          <input type="submit" value="Save"/>
-        </form>
+        <div class="eXtremeTable">
+          <form action="projectGroupPermissions!save.action">
+            <table id="ec_table" border="1" cellspacing="2" cellpadding="3" class="tableRegion"
width="100%">
+              <thead>
+                <tr>
+                  <td class="tableHeader"><ww:text name="projectView.username"/></td>
+                  <td class="tableHeader"><center><ww:text name="projectView.role.view"/></center></td>
+                  <td class="tableHeader"><center><ww:text name="projectView.role.edit"/></center></td>
+                  <td class="tableHeader"><center><ww:text name="projectView.role.delete"/></center></td>
+                  <td class="tableHeader"><center><ww:text name="projectView.role.build"/></center></td>
+                  <td class="tableHeader"><center><ww:text name="projectView.role.administer"/></center></td>
+                </tr>
+              </thead>
+              <tbody class="tableBody">
+              <ww:iterator value="users" id="user" status="rowCounter">
+
+                <ww:set name="view" value="<ww:property value='view'/>"/>
+                <ww:set name="edit" value="<ww:property value='edit'/>"/>
+                <ww:set name="delete" value="<ww:property value='delete'/>"/>
+                <ww:set name="build" value="<ww:property value='build'/>"/>
+                <ww:set name="administer" value="<ww:property value='administer'/>"/>
+
+                <tr class="<ww:if test="#rowCounter.odd == true">odd</ww:if><ww:else>even</ww:else>">
+                <td><ww:property value="user.username"/></td>
+                <td width=100>
+                  <center>
+                    <ww:if test="read == true">
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.read']"
checked="true">
+                    </ww:if>
+                    <ww:else>
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.read']">
+                    </ww:else>
+                  </center>
+                </td>
+                <td width=100>
+                  <center>
+                    <ww:if test="write == true">
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.write']"
checked="true">
+                    </ww:if>
+                    <ww:else>
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.write']">
+                    </ww:else>
+                  </center>
+                </td>
+                <td width=100>
+                  <center>
+                    <ww:if test="delete == true">
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.delete']"
checked="true">
+                    </ww:if>
+                    <ww:else>
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.delete']">
+                    </ww:else>
+                  </center>
+                </td>
+                <td width=100>
+                  <center>
+                    <ww:if test="execute == true">
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.execute']"
checked="true">
+                    </ww:if>
+                    <ww:else>
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.execute']">
+                    </ww:else>
+                  </center>
+                </td>
+                <td width=100>
+                  <center>
+                    <ww:if test="administer == true">
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.administer']"
checked="true">
+                    </ww:if>
+                    <ww:else>
+                      <input type="checkbox" name="map['<ww:property value="user.username"/>.administer']">
+                    </ww:else>
+                  </center>
+                </td>
+                </tr>
+              </ww:iterator>
+              </tbody>
+            </table>
+            <input type="submit" value="Save"/>
+          </form>
+        </div>
       </div>
     </body> 
   </ww:i18n>



Mime
View raw message