svn commit: r833652 - /ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r833652 - /ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl

buscob
Author: buscob
Date: Sat Nov  7 08:32:28 2009
New Revision: 833652

URL: http://svn.apache.org/viewvc?rev=833652&view=rev
Log:
Changed nav-pager using the styles as defined in the widget renderNextPrev macro.

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

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl?rev=833652&r1=833651&r2=833652&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl Sat Nov  7 08:32:28 2009
@@ -20,15 +20,21 @@
             <div class="nav-pager">
                 <ul>
                     <#if (viewIndex > 0)>
-                        <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexFirst}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonFirst}</a></li>
-                        <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexPrevious}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-previous">${uiLabelMap.CommonPrevious}</a></li>
+                        <li class="nav-first"><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexFirst}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonFirst}</a></li>
+                        <li class="nav-previous"><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexPrevious}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonPrevious}</a></li>
+                    <#else>
+                        <li class="nav-first-disabled"><span>${uiLabelMap.CommonFirst}<span></li>
+                        <li class="nav-previous-disabled"><span>${uiLabelMap.CommonPrevious}<span></li>
                     </#if>
                     <#if (arraySize > 0)>
                         <li>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${arraySize}</li>
                     </#if>
                     <#if (arraySize > highIndex)>
-                        <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexNext}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonNext}</a></li>
-                        <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexLast}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonLast}</a></li>
+                        <li class="nav-next"><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexNext}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonNext}</a></li>
+                        <li class="nav-last"><a href='<@ofbizUrl>FindGeneric?${curFindString}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndexLast}&amp;searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonLast}</a></li>
+                    <#else>
+                        <li class="nav-next-disabled"><span>${uiLabelMap.CommonNext}<span></li>
+                        <li class="nav-last-disabled"><span>${uiLabelMap.CommonLast}<span></li>
                     </#if>
                 </ul>
                 <br class="clear"/>