Ignore:
Timestamp:
Oct 29, 2009, 8:30:58 PM (14 years ago)
Author:
gav
Message:

Substantial refactor of the Inventory domain.
InventoryItems can now be added to tasks, no quantity adjustments done yet.
Removed StoredItem and with it the ability to store an inventoryItem in multiple places, just too complex right now.
Svn move StoreLocation to InventoryLocation.

Location:
trunk/grails-app/views/inventoryLocationDetailed
Files:
1 edited
1 moved

Legend:

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

    r151 r175  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Create StoreLocation</title>         
     7        <title>Create InventoryLocation</title>         
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="list" action="list">StoreLocation List</g:link></span>
     12            <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span>
    1313        </div>
    1414        <div class="body">
    15             <h1>Create StoreLocation</h1>
     15            <h1>Create InventoryLocation</h1>
    1616            <g:if test="${flash.message}">
    1717            <div class="message">${flash.message}</div>
    1818            </g:if>
    19             <g:hasErrors bean="${storeLocationInstance}">
     19            <g:hasErrors bean="${inventoryLocationInstance}">
    2020            <div class="errors">
    21                 <g:renderErrors bean="${storeLocationInstance}" as="list" />
     21                <g:renderErrors bean="${inventoryLocationInstance}" as="list" />
    2222            </div>
    2323            </g:hasErrors>
     
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
    31                                     <label for="bin">Bin:</label>
     31                                    <label for="name">Name:</label>
    3232                                </td>
    33                                 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}">
    34                                     <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>
     33                                <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}">
     34                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/>
    3535                                </td>
    3636                            </tr>
     
    4040                                    <label for="inventoryStore">Inventory Store:</label>
    4141                                </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'inventoryStore','errors')}">
    43                                     <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${storeLocationInstance?.inventoryStore?.id}" ></g:select>
     42                                <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}">
     43                                    <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select>
    4444                                </td>
    4545                            </tr>
     
    4949                                    <label for="isActive">Is Active:</label>
    5050                                </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}">
    52                                     <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox>
     51                                <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}">
     52                                    <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox>
    5353                                </td>
    5454                            </tr>
Note: See TracChangeset for help on using the changeset viewer.