source: trunk/grails-app/views/assetExtendedAttributeType/edit.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: 4.5 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>Edit AssetExtendedAttributeType</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttributeType List</g:link></span>
12            <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>
13        </div>
14        <div class="body">
15            <h1>Edit AssetExtendedAttributeType</h1>
16            <g:if test="${flash.message}">
17            <div class="message">${flash.message}</div>
18            </g:if>
19            <g:hasErrors bean="${assetExtendedAttributeTypeInstance}">
20            <div class="errors">
21                <g:renderErrors bean="${assetExtendedAttributeTypeInstance}" as="list" />
22            </div>
23            </g:hasErrors>
24            <g:form method="post" >
25                <input type="hidden" name="id" value="${assetExtendedAttributeTypeInstance?.id}" />
26                <input type="hidden" name="version" value="${assetExtendedAttributeTypeInstance?.version}" />
27                <div class="dialog">
28                    <table>
29                        <tbody>
30                       
31                            <tr class="prop">
32                                <td valign="top" class="name">
33                                    <label for="assetExtendedAttributes">Asset Extended Attributes:</label>
34                                </td>
35                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'assetExtendedAttributes','errors')}">
36                                   
37<ul>
38<g:each var="a" in="${assetExtendedAttributeTypeInstance?.assetExtendedAttributes?}">
39    <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
40</g:each>
41</ul>
42<g:link controller="assetExtendedAttribute" params="['assetExtendedAttributeType.id':assetExtendedAttributeTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link>
43
44                                </td>
45                            </tr>
46                       
47                            <tr class="prop">
48                                <td valign="top" class="name">
49                                    <label for="description">Description:</label>
50                                </td>
51                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'description','errors')}">
52                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>
53                                </td>
54                            </tr>
55                       
56                            <tr class="prop">
57                                <td valign="top" class="name">
58                                    <label for="isActive">Is Active:</label>
59                                </td>
60                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}">
61                                    <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox>
62                                </td>
63                            </tr>
64                       
65                            <tr class="prop">
66                                <td valign="top" class="name">
67                                    <label for="name">Name:</label>
68                                </td>
69                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}">
70                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/>
71                                </td>
72                            </tr>
73                       
74                        </tbody>
75                    </table>
76                </div>
77                <div class="buttons">
78                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
79                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
80                </div>
81            </g:form>
82        </div>
83    </body>
84</html>
Note: See TracBrowser for help on using the repository browser.