Ignore:
Timestamp:
Nov 23, 2010, 1:53:29 PM (13 years ago)
Author:
gav
Message:

Define inventory item properties and help messages.

File:
1 edited

Legend:

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

    r715 r716  
    5050                                                type="text" maxlength="50" id="name" name="name"
    5151                                                value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>
     52                                    <g:helpBalloon class="helpballoon" code="inventory.item.name" />
    5253                                </td>
    5354                            </tr>
     
    5960                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}">
    6061                                    <textarea rows="5" cols="40" name="description">${fieldValue(bean:inventoryItemInstance, field:'description')}</textarea>
     62                                    <g:helpBalloon class="helpballoon" code="inventory.item.description" />
    6163                                </td>
    6264                            </tr>
     
    6870                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'comment','errors')}">
    6971                                    <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemInstance, field:'comment')}</textarea>
     72                                    <g:helpBalloon class="helpballoon" code="inventory.item.comment" />
    7073                                </td>
    7174                            </tr>
     
    7780                                <td valign="top" class="value">
    7881                                    ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
     82                                    <g:helpBalloon class="helpballoon" code="inventory.item.units.in.stock" />
    7983                                </td>
    8084                            </tr>
     
    9195                                                        optionValue="${{it.name+ ' in ' + it.inventoryStore}}">
    9296                                    </g:select>
     97                                    <g:helpBalloon class="helpballoon" code="inventory.item.inventory.location" />
    9398                                </td>
    9499                            </tr>
     
    100105                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}">
    101106                                    <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox>
     107                                    <g:helpBalloon class="helpballoon" code="inventory.item.is.active" />
    102108                                </td>
    103109                            </tr>
     
    111117                                                    type="text" id="reorderPoint" name="reorderPoint"
    112118                                                    value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" />
    113                                      ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
     119                                    ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
     120                                    <g:helpBalloon class="helpballoon" code="inventory.item.reorder.point" />
    114121                                </td>
    115122                            </tr>
     
    124131                                                value="${fieldValue(bean:inventoryItemInstance,field:'reorderQuantity')}" />
    125132                                     ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
     133                                    <g:helpBalloon class="helpballoon" code="inventory.item.reorder.quantity" />
    126134                                </td>
    127135                            </tr>
     
    133141                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}">
    134142                                    <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox>
     143                                    <g:helpBalloon class="helpballoon" code="inventory.item.enable.reorder.listing" />
    135144                                </td>
    136145                            </tr>
     
    142151                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}">
    143152                                    <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox>
     153                                    <g:helpBalloon class="helpballoon" code="inventory.item.is.obsolete" />
    144154                                </td>
    145155                            </tr>
     
    157167                                                        noSelection="['null':'--None--']">
    158168                                    </g:select>
     169                                    <g:helpBalloon class="helpballoon" code="inventory.item.average.delivery.time" />
    159170                                </td>
    160171                            </tr>
     
    172183                                                                        from="${grailsApplication.config.currencyList}">
    173184                                    </g:currencySelect>
     185                                    <g:helpBalloon class="helpballoon" code="inventory.item.estimated.unit.price.amount" />
    174186                                </td>
    175187                            </tr>
     
    181193                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}">
    182194                                    <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/>
     195                                    <g:helpBalloon class="helpballoon" code="inventory.item.suppliers.part.number" />
    183196                                </td>
    184197                            </tr>
     
    190203                                <td valign="top">
    191204                                    <g:select optionKey="id" from="${suppliers}" name="preferredSupplier.id" value="${inventoryItemInstance.preferredSupplier?.id}" noSelection="['null':'--None--']"></g:select>
    192 
     205                                    <g:helpBalloon class="helpballoon" code="inventory.item.preferred.supplier" />
    193206                                    <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p>
    194207                                </td>
     
    204217                                                        size="5" multiple="yes" optionKey="id"
    205218                                                        value="${inventoryItemInstance.alternateSuppliers?.id}" noSelection="['':'--None--']"/>
     219                                    <g:helpBalloon class="helpballoon" code="inventory.item.alternate.suppliers" />
    206220                                </td>
    207221                            </tr>
     
    271285                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}">
    272286                                    <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select>
     287                                    <g:helpBalloon class="helpballoon" code="inventory.item.inventory.group" />
    273288                                </td>
    274289                            </tr>
     
    280295                                <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}">
    281296                                    <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select>
     297                                    <g:helpBalloon class="helpballoon" code="inventory.item.inventory.type" />
    282298                                </td>
    283299                            </tr>
Note: See TracChangeset for help on using the changeset viewer.