Ignore:
Timestamp:
Dec 8, 2009, 4:03:29 AM (14 years ago)
Author:
gav
Message:

Complete inventory movement implementation as per ticket #24.
Refactor showTab function in both Task and Inventory (which now has tabs).

File:
1 edited

Legend:

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

    r213 r225  
    3030
    3131                <richui:tabLabels>
    32                     <richui:tabLabel selected="${showTaskTab}" title="Task #${taskInstance.id}" />
    33                     <richui:tabLabel selected="${showProcedureTab}" title="Procedure" />
    34                     <richui:tabLabel selected="${showRecurrenceTab}" title="Recurrence" />
    35                     <richui:tabLabel selected="${showInventoryTab}" title="Inventory" />
    36                     <richui:tabLabel selected="${showSubTasksTab}" title="Sub Tasks" />
     32                    <richui:tabLabel selected="${showTab.task}" title="Task #${taskInstance.id}" />
     33                    <richui:tabLabel selected="${showTab.procedure}" title="Procedure" />
     34                    <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" />
     35                    <richui:tabLabel selected="${showTab.inventory}" title="Inventory" />
     36                    <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks" />
    3737                </richui:tabLabels>
    3838
     
    530530                        <g:if test="${inventoryMovementList.isEmpty()}">
    531531                            <br />
    532                             No Inventory Used.
     532                            No Inventory Movements.
    533533                            <br />
    534534                            <br />
     
    567567                        </g:else>
    568568
    569                         <g:form controller="inventoryMovementDetailed" >
    570                             <input type="hidden" name="task.id" value="${taskInstance?.id}" />
     569                        <g:form controller="inventoryItemDetailed" >
     570                            <g:hiddenField name="task.id" value="${taskInstance?.id}" />
    571571                            <div class="buttons">
    572572                                <g:if test="${!inventoryMovementList.isEmpty()}">
     
    575575                                </g:if>
    576576                                <span class="button">
    577                                     <g:actionSubmit value="Add" action="create"  class="add"/>
     577                                    <g:actionSubmit action="findInventoryItemForMovement" class="add" value="Add"/>
    578578                                </span>
    579579                            </div>
Note: See TracChangeset for help on using the changeset viewer.