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/edit.gsp

    r392 r405  
    1414        </div>
    1515        <div class="body">
    16             <g:if test="${flash.message}">
    17             <div class="message">${flash.message}</div>
    18             </g:if>
     16            <g:render template="/shared/messages" />
    1917            <g:hasErrors bean="${inventoryItemInstance}">
    2018            <div class="errors">
     
    152150                                                        noSelection="['null':'--None--']">
    153151                                    </g:select>
     152                                </td>
     153                            </tr>
     154                       
     155                            <tr class="prop">
     156                                <td valign="top" class="name">
     157                                    <label for="averageDeliveryTime">Estimated Unit Price:</label>
     158                                </td>
     159                                <td valign="top">
     160                                    <input  class="medium ${hasErrors(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount','errors')}"
     161                                                    type="text" id="estimatedUnitPriceAmount" name="estimatedUnitPriceAmount"
     162                                                    value="${inventoryItemInstance.estimatedUnitPriceAmount}" />
     163                                    <g:currencySelect name="estimatedUnitPriceCurrency"
     164                                                                        value="${inventoryItemInstance.estimatedUnitPriceCurrency}" />
    154165                                </td>
    155166                            </tr>
Note: See TracChangeset for help on using the changeset viewer.