Ignore:
Timestamp:
Nov 10, 2009, 1:26:53 PM (14 years ago)
Author:
gav
Message:

Add support for inventory item Pictures and Images.
Add new PersonService, refactor CreateDataService and TaskService to suite.

File:
1 edited

Legend:

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

    r175 r182  
    77        <title>Edit InventoryItem</title>
    88        <nav:resources override="true"/>
     9        <g:render template="/shared/pictureHead" />
    910    </head>
    1011    <body>
     
    2728                    <table>
    2829                        <tbody>
     30                   
     31                            <tr class="prop">
     32                                <td valign="top" class="name">Picture:</td>
     33                                <td valign="top" class="value">
     34                                    <g:if test="${inventoryItemInstance.picture}" >
     35                                        <span class='gallery'>
     36                                            <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" target="_blank" title="Show Original" />
     37                                        </span>
     38                                        <br />
     39                                        <g:link controller="pictureDetailed" action="edit" id="${inventoryItemInstance.picture.id}" >
     40                                            Edit Picture
     41                                        </g:link>
     42                                    </g:if>
     43                                </td>
     44                            </tr>
    2945                       
    3046                            <tr class="prop">
     
    5066                                    <label for="unitsInStock">Units In Stock:</label>
    5167                                </td>
    52                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}">
    53                                     <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" />
    54                                     <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>
     68                                <td valign="top" class="value">
     69                                    ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure}
    5570                                </td>
    5671                            </tr>
Note: See TracChangeset for help on using the changeset viewer.