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

    r175 r182  
    4343                                </td>
    4444                            </tr>
    45 
     45                       
    4646                            <tr class="prop">
    4747                                <td valign="top" class="name">
    48                                     <label for="unitsInStock">In Stock:</label>
     48                                    <label for="inventoryLocation">Inventory Location:</label>
    4949                                </td>
    50                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}">
    51                                     <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" />
    52                                     <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>
     50                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}">
     51                                    <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select>
    5352                                </td>
    5453                            </tr>
     
    6059                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}">
    6160                                    <input type="text" id="reorderPoint" name="reorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" />
     61                                    <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>
    6262                                </td>
    6363                            </tr>
     
    7171                                </td>
    7272                            </tr>
    73                        
    74                             <tr class="prop">
    75                                 <td valign="top" class="name">
    76                                     <label for="recommendedReorderPoint">Recommended Reorder Point:</label>
    77                                 </td>
    78                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}">
    79                                     <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />
    80                                 </td>
    81                             </tr>
    82                        
    83                             <tr class="prop">
    84                                 <td valign="top" class="name">
    85                                     <label for="isActive">Active:</label>
    86                                 </td>
    87                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}">
    88                                     <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox>
    89                                 </td>
    90                             </tr>
    91                        
    92                             <tr class="prop">
    93                                 <td valign="top" class="name">
    94                                     <label for="isObsolete">Obsolete:</label>
    95                                 </td>
    96                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}">
    97                                     <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox>
    98                                 </td>
    99                             </tr>
    10073                       
    10174                            <tr class="prop">
     
    171144                            </tr>
    172145                       
    173                             <tr class="prop">
    174                                 <td valign="top" class="name">
    175                                     <label for="inventoryLocation">Inventory Location:</label>
    176                                 </td>
    177                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}">
    178                                     <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select>
    179                                 </td>
    180                             </tr>
    181                        
    182146                        </tbody>
    183147                    </table>
Note: See TracChangeset for help on using the changeset viewer.