Changeset 453 for trunk/grails-app/views/inventoryItemDetailed
- Timestamp:
- Mar 25, 2010, 3:37:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r441 r453 53 53 <g:if test="${inventoryMovementInstance}" > 54 54 55 <g:form controller="inventoryItemDetailed" method="post" > 56 <div class="dialog"> 57 <table> 58 <tbody> 59 <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}"/> 60 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}"/> 61 <tr class="prop"> 62 <td valign="top" class="name">Use on task:</td> 63 <td valign="top" class="value"> 64 <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > 65 ${Task.get(inventoryMovementInstance.task.id).encodeAsHTML()} 66 </g:link> 67 </td> 68 </tr> 69 70 <tr class="prop"> 71 <td valign="top" class="name"> 72 <label for="quantity">Quantity:</label> 73 </td> 74 <td valign="top"> 75 <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}" 76 type="text" id="quantity" name="quantity" 77 value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/> 78 ${inventoryItemInstance.unitOfMeasure?.encodeAsHTML()} 79 80 <span class="buttons"> 81 <g:actionSubmit action="useInventoryItem" class="save" value="${InventoryMovementType.get(1)}" /> 82 </span> 83 84 </td> 85 </tr> 86 87 </tbody> 88 </table> 55 <div id="useInventoryItemDiv" style="display:inline"> <!-- inline required for IE --> 56 <div class="pane_close" > 57 <g:remoteLink action="clearUseInventoryItem" update="useInventoryItemDiv"> 58 <img src="${resource(dir:'images/skin',file:'cross.png')}" alt="Clear" title="Clear"/> 59 </g:remoteLink> 89 60 </div> 90 </g:form> 91 92 <br /> 61 <g:form controller="inventoryItemDetailed" method="post" > 62 <div class="dialog"> 63 <table> 64 <tbody> 65 <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}"/> 66 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}"/> 67 <tr class="prop"> 68 <td valign="top" class="name">Use on task:</td> 69 <td valign="top" class="value"> 70 <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > 71 ${Task.get(inventoryMovementInstance.task.id).encodeAsHTML()} 72 </g:link> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="quantity">Quantity:</label> 79 </td> 80 <td valign="top"> 81 <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}" 82 type="text" id="quantity" name="quantity" 83 value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/> 84 ${inventoryItemInstance.unitOfMeasure?.encodeAsHTML()} 85 86 <span class="buttons"> 87 <g:actionSubmit action="useInventoryItem" class="save" value="${InventoryMovementType.read(1)}" /> 88 </span> 89 90 </td> 91 </tr> 92 93 </tbody> 94 </table> 95 </div> 96 </g:form> 97 98 <br /> 99 </div> 93 100 94 101 </g:if>
Note: See TracChangeset
for help on using the changeset viewer.