source: trunk/grails-app/views/inventoryLocationDetailed/create.gsp @ 175

Last change on this file since 175 was 175, checked in by gav, 14 years ago

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.

File size: 3.1 KB
Line 
1
2
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6        <meta name="layout" content="main" />
7        <title>Create InventoryLocation</title>         
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
12            <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span>
13        </div>
14        <div class="body">
15            <h1>Create InventoryLocation</h1>
16            <g:if test="${flash.message}">
17            <div class="message">${flash.message}</div>
18            </g:if>
19            <g:hasErrors bean="${inventoryLocationInstance}">
20            <div class="errors">
21                <g:renderErrors bean="${inventoryLocationInstance}" as="list" />
22            </div>
23            </g:hasErrors>
24            <g:form action="save" method="post" >
25                <div class="dialog">
26                    <table>
27                        <tbody>
28                       
29                            <tr class="prop">
30                                <td valign="top" class="name">
31                                    <label for="name">Name:</label>
32                                </td>
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')}"/>
35                                </td>
36                            </tr>
37                       
38                            <tr class="prop">
39                                <td valign="top" class="name">
40                                    <label for="inventoryStore">Inventory Store:</label>
41                                </td>
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>
44                                </td>
45                            </tr>
46                       
47                            <tr class="prop">
48                                <td valign="top" class="name">
49                                    <label for="isActive">Is Active:</label>
50                                </td>
51                                <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}">
52                                    <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox>
53                                </td>
54                            </tr>
55                       
56                        </tbody>
57                    </table>
58                </div>
59                <div class="buttons">
60                    <span class="button"><input class="save" type="submit" value="Create" /></span>
61                </div>
62            </g:form>
63        </div>
64    </body>
65</html>
Note: See TracBrowser for help on using the repository browser.