svn commit: r581007 - in /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya: content/admin/groups/group-admin.js resources/i18n/cmsui_de.xml xslt/admin/groups/profile.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Mon Oct  1 09:27:21 2007
New Revision: 581007

URL: http://svn.apache.org/viewvc?rev=581007&view=rev
Log:
Use table + i18n to display attribute list on group profile page

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/resources/i18n/cmsui_de.xml
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/admin/groups/profile.xsl

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js?rev=581007&r1=581006&r2=581007&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js Mon Oct  1 09:27:21 2007
@@ -36,7 +36,7 @@
 		
 		var messages = new java.util.ArrayList();
 		
-		var translator = cocoon.getComponent("org.apache.shibboleth.util.AttributeTranslator");
+		var translator = cocoon.getComponent("org.apache.lenya.ac.saml.AttributeTranslator");
 		var attributeNames = translator.getSupportedResultNames();
 		
 		// at the moment the loop is executed only once (no form validation)

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/resources/i18n/cmsui_de.xml?rev=581007&r1=581006&r2=581007&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/resources/i18n/cmsui_de.xml (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/resources/i18n/cmsui_de.xml Mon Oct  1 09:27:21 2007
@@ -351,5 +351,9 @@
   <message key="lenya.imageupload.info.noimages">Keine Bilder verfügbar.</message>
   <message key="lenya.imageupload.links.hint">Externe Verweise müssen mit 'http://' und interne Verweise mit '/' beginnen.</message>  
   <message key="lenya.imageupload.no.image.selected">Es wurde kein Bild ausgewählt. Bitte wählen Sie eines aus.</message>
+  
+  <!-- user attributes -->
+  <message key="accesscontrol.attribute.surname">Der Nachname des Nutzers.</message>
+  <message key="accesscontrol.attribute.mail">Die E-Mail-Adresse des Nutzers.</message>
 </catalogue>
 

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/admin/groups/profile.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/admin/groups/profile.xsl?rev=581007&r1=581006&r2=581007&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/admin/groups/profile.xsl (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/admin/groups/profile.xsl Mon Oct  1 09:27:21 2007
@@ -122,11 +122,21 @@
           </code>
           <br/><br/>
           <strong><i18n:text>Available attributes</i18n:text></strong>:
-          <ul style="margin-top: 0px;">
+          <table class="lenya-table" style="margin-top: 1em;">
+            <tr>
+              <th style="border-right: none"><i18n:text>Name</i18n:text></th>
+              <th style="border-left: none"><i18n:text>Description</i18n:text></th>
+            </tr>
             <xsl:for-each select="../attributeNames/attributeName">
-              <li><xsl:value-of select="."/></li>
+              <xsl:sort select="."/>
+              <tr>
+                <td style="border-right: none"><xsl:value-of select="."/></td>
+                <td style="border-left: none">
+                  <i18n:text>accesscontrol.attribute.<xsl:value-of select="."/></i18n:text>
+                </td>
+              </tr>
             </xsl:for-each>
-          </ul>
+          </table>
           
         </form>
       </div>
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.