Changeset 575 for trunk


Ignore:
Timestamp:
Jun 7, 2010, 12:48:01 PM (15 years ago)
Author:
gav
Message:

Add indication to inventory item tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryItemDetailed/show.gsp

    r570 r575  
    4242                    <richui:tabLabel selected="${showTab.inventory}" title="Inventory Item" />
    4343                    <richui:tabLabel selected="${showTab.detail}" title="Detail" />
    44                     <richui:tabLabel selected="${showTab.movement}" title="Movement" />
    45                     <richui:tabLabel selected="${showTab.purchasing}" title="Purchasing" />
     44                    <g:if test="${!inventoryMovementList.isEmpty()}">
     45                        <richui:tabLabel selected="${showTab.movement}" title="Movement (${inventoryMovementList.size()})" />
     46                    </g:if>
     47                    <g:else>
     48                        <richui:tabLabel selected="${showTab.movement}" title="Movement" />
     49                    </g:else>
     50                    <g:if test="${!inventoryItemPurchases.isEmpty()}">
     51                        <richui:tabLabel selected="${showTab.purchasing}" title="Purchasing (${inventoryItemPurchases.size()})" />
     52                    </g:if>
     53                    <g:else>
     54                        <richui:tabLabel selected="${showTab.purchasing}" title="Purchasing" />
     55                    </g:else>
    4656                </richui:tabLabels>
    4757
Note: See TracChangeset for help on using the changeset viewer.