source: trunk/grails-app/views/inventoryType/create.gsp @ 178

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

Resolve ticket #12 again.
Turn query cache on again since this did not resolve the problem.
Implement fix as per http://jira.codehaus.org/browse/GRAILS-5111, add flush:true to save.
Adjust templates to include above and remove home url.
Re-generate all non detailed views and controllers.
Manually add flush:true and remove home url to detailed views and controllers.

File size: 2.9 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 InventoryType</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><g:link class="list" action="list">InventoryType List</g:link></span>
12        </div>
13        <div class="body">
14            <h1>Create InventoryType</h1>
15            <g:if test="${flash.message}">
16            <div class="message">${flash.message}</div>
17            </g:if>
18            <g:hasErrors bean="${inventoryTypeInstance}">
19            <div class="errors">
20                <g:renderErrors bean="${inventoryTypeInstance}" as="list" />
21            </div>
22            </g:hasErrors>
23            <g:form action="save" method="post" >
24                <div class="dialog">
25                    <table>
26                        <tbody>
27                       
28                            <tr class="prop">
29                                <td valign="top" class="name">
30                                    <label for="description">Description:</label>
31                                </td>
32                                <td valign="top" class="value ${hasErrors(bean:inventoryTypeInstance,field:'description','errors')}">
33                                    <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryTypeInstance,field:'description')}"/>
34                                </td>
35                            </tr>
36                       
37                            <tr class="prop">
38                                <td valign="top" class="name">
39                                    <label for="isActive">Is Active:</label>
40                                </td>
41                                <td valign="top" class="value ${hasErrors(bean:inventoryTypeInstance,field:'isActive','errors')}">
42                                    <g:checkBox name="isActive" value="${inventoryTypeInstance?.isActive}" ></g:checkBox>
43                                </td>
44                            </tr>
45                       
46                            <tr class="prop">
47                                <td valign="top" class="name">
48                                    <label for="name">Name:</label>
49                                </td>
50                                <td valign="top" class="value ${hasErrors(bean:inventoryTypeInstance,field:'name','errors')}">
51                                    <input type="text" id="name" name="name" value="${fieldValue(bean:inventoryTypeInstance,field:'name')}"/>
52                                </td>
53                            </tr>
54                       
55                        </tbody>
56                    </table>
57                </div>
58                <div class="buttons">
59                    <span class="button"><input class="save" type="submit" value="Create" /></span>
60                </div>
61            </g:form>
62        </div>
63    </body>
64</html>
Note: See TracBrowser for help on using the repository browser.