Ignore:
Timestamp:
Feb 23, 2010, 10:14:19 PM (14 years ago)
Author:
gav
Message:

Add estimatedUnitPrice to InventoryItem.
Change InventoryItem to use serviced controller and shared messages.

File:
1 edited

Legend:

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

    r392 r405  
    1313        </div>
    1414        <div class="body">
    15             <g:if test="${flash.message}">
    16             <div class="message">${flash.message}</div>
    17             </g:if>
     15            <g:render template="/shared/messages" />
    1816            <g:hasErrors bean="${inventoryItemInstance}">
    1917            <div class="errors">
     
    118116                            <tr class="prop">
    119117                                <td valign="top" class="name">
     118                                    <label for="averageDeliveryTime">Estimated Unit Price:</label>
     119                                </td>
     120                                <td valign="top">
     121                                    <input  class="medium ${hasErrors(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount','errors')}"
     122                                                    type="text" id="estimatedUnitPriceAmount" name="estimatedUnitPriceAmount"
     123                                                    value="${fieldValue(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount')}" />
     124                                    <g:currencySelect name="estimatedUnitPriceCurrency"
     125                                                                        value="${inventoryItemInstance.estimatedUnitPriceCurrency}" />
     126                                </td>
     127                            </tr>
     128                       
     129                            <tr class="prop">
     130                                <td valign="top" class="name">
    120131                                    <label for="suppliersPartNumber">Suppliers Part Number:</label>
    121132                                </td>
Note: See TracChangeset for help on using the changeset viewer.