You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/03/27 23:41:28 UTC

svn commit: r523094 - /ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl

Author: jacopoc
Date: Tue Mar 27 14:41:28 2007
New Revision: 523094

URL: http://svn.apache.org/viewvc?view=rev&rev=523094
Log:
Applied patch from Ray Barlow and Adrian Crum (OFBIZ-831) with improvements to the ui of the entitymaintenance screen.

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl?view=diff&rev=523094&r1=523093&r2=523094
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl Tue Mar 27 14:41:28 2007
@@ -25,34 +25,54 @@
 <p>${uiLabelMap.WebtoolsFind} :- ${uiLabelMap.WebtoolsFindRecord}</p>
 <p>${uiLabelMap.WebtoolsAll} :- ${uiLabelMap.WebtoolsFindAllRecords}</p>
 <br />
-<#assign firstChar = "*">
+<#assign firstChar = "x">
+<#assign anchor="">
 <#assign alt_row = false>
 <#assign right_col = false>
+
+<#list entitiesList as entity>
+    <#if entity.entityName?substring(0, 1) != firstChar>
+        <#assign firstChar = entity.entityName?substring(0, 1)>
+        <a href="#Entity_${firstChar}">${firstChar}</a>&nbsp;
+    </#if>
+</#list>
+<br/><br/>
+
+<#assign firstChar = "*">
 <table class="basic-table light-grid hover-bar" cellspacing='0'>
   <tr class="header-row">
     <td>${uiLabelMap.WebtoolsEntityName}</td>
     <td>&nbsp;</td>
-      <td>${uiLabelMap.WebtoolsEntityName}</td>
-      <td>&nbsp;</td>
+    <td>${uiLabelMap.WebtoolsEntityName}</td>
+    <td>&nbsp;</td>
   </tr>
-  <tr>
   <#list entitiesList as entity>
     <#if entity.entityName?substring(0, 1) != firstChar>
       <#if right_col>
         <td>&nbsp;</td><td>&nbsp;</td></tr>
         <#assign right_col = false>
+        <#if alt_row>
+          <#assign alt_row = false>
+        <#else>
+          <#assign alt_row = true>
+        </#if>
       </#if>
-      <#if firstChar != "*">
-        <tr class="header-row"><td colspan="4">&nbsp;</td></tr>
-        <tr<#if alt_row> class="alternate-row"</#if>>
-      </#if>
+      <#if firstChar != "*"><tr class="header-row"><td colspan="4">&nbsp;</td></tr></#if>
       <#assign firstChar = entity.entityName?substring(0, 1)>
+      <#assign anchor="id=\"Entity_${firstChar}\"">
+    </#if>
+    <#if !right_col>
+      <tr<#if alt_row> class="alternate-row"</#if>>
     </#if>
-    <td>${entity.entityName}<#if entity.viewEntity == 'Y'>&nbsp;(${uiLabelMap.WebtoolsEntityView})</#if></td>
+
+    <td<#if anchor?has_content> ${anchor}</#if>>${entity.entityName}<#if entity.viewEntity == 'Y'>&nbsp;(${uiLabelMap.WebtoolsEntityView})</#if></td>
+    <#assign anchor="">
     <td class="button-col">
       <#if entity.viewEntity == 'Y'>
         <#if entity.entityPermissionView == 'Y'>
-          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
+          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
+          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
+          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
         </#if>
       <#else>
         <#if entity.entityPermissionCreate == 'Y'>
@@ -61,13 +81,12 @@
         <#if entity.entityPermissionView == 'Y'>
           <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
           <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
-          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
+          <a href='<@o...@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
         </#if>
       </#if>
     </td>
     <#if right_col>
       </tr>
-      <tr<#if alt_row> class="alternate-row"</#if>>
       <#if alt_row>
         <#assign alt_row = false>
       <#else>
@@ -78,5 +97,7 @@
       <#assign right_col = true>
     </#if>
   </#list>
-  <#if !right_col></tr></#if>
+  <#if right_col>
+    <td>&nbsp;</td><td>&nbsp;</td></tr>
+  </#if>
 </table>