You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2009/01/27 17:39:08 UTC

svn commit: r738139 - /lenya/trunk/src/modules-core/administration/usecases/users.jx

Author: andreas
Date: Tue Jan 27 16:39:08 2009
New Revision: 738139

URL: http://svn.apache.org/viewvc?rev=738139&view=rev
Log:
Removing some validation issues in administration module.

Modified:
    lenya/trunk/src/modules-core/administration/usecases/users.jx

Modified: lenya/trunk/src/modules-core/administration/usecases/users.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/usecases/users.jx?rev=738139&r1=738138&r2=738139&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/usecases/users.jx (original)
+++ lenya/trunk/src/modules-core/administration/usecases/users.jx Tue Jan 27 16:39:08 2009
@@ -22,6 +22,10 @@
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"    
   >
   
+  <page:head>
+    <link rel="stylesheet" type="text/css" href="/modules/gui/css/lenya.css"/>
+  </page:head>
+  
   <page:body>
     <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/>
     <div id="contentblock1" class="lenya-tab">
@@ -36,25 +40,15 @@
         </tr>
       </table>
       
-      <div style="margin-bottom: 10px;">
-        <table class="lenya-table-noborder">
-          <tr>
-            <td style="padding: 0; margin: 0 10px 0 0;">
-              <i18n:text>Add User</i18n:text>:&#160;
-            </td>
-            <jx:forEach var="type" items="${usecase.getParameter('userTypes')}">
-              <td style="padding: 0; margin: 0 10px 0 0;">
-                <form method="get" id="form-add_user" action="${usecase.getSourceURL()}">
-                  <input type="hidden" name="lenya.usecase" value="${type.getCreateUseCase()}"/>
-                  <input type="hidden" name="className" value="${type.getClassName()}"/>
-                  <input type="hidden" name="userType" value="${type.getKey()}"/>
-                  <input i18n:attr="value" type="submit" value="${type.getKey()}" name="input-add_user"/>
-                </form>
-              </td>
-            </jx:forEach>
-          </tr>
-        </table>
-      </div>
+      <p>
+        <i18n:text>Add User</i18n:text>:
+        <jx:forEach var="type" items="${usecase.getParameter('userTypes')}">
+          <a href="${usecase.getSourceURL()}?lenya.usecase=${type.getCreateUseCase()}&amp;className=${type.getClassName()}&amp;userType=${type.getKey()}"
+            class="lenyaButton" style="margin-left: .5em;">
+            <i18n:text>${type.getKey()}</i18n:text>
+          </a>
+        </jx:forEach>
+      </p>
       
       <table cellspacing="0" class="lenya-table-list-noborder">
         <tr>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org