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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.