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}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexFirst}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonFirst}</a></li> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexPrevious}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-previous">${uiLabelMap.CommonPrevious}</a></li> + <li class="nav-first"><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexFirst}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonFirst}</a></li> + <li class="nav-previous"><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexPrevious}&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}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexNext}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonNext}</a></li> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexLast}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonLast}</a></li> + <li class="nav-next"><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexNext}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default("false")}</@ofbizUrl>'>${uiLabelMap.CommonNext}</a></li> + <li class="nav-last"><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexLast}&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"/> |
Free forum by Nabble | Edit this page |