source: trunk/grails-app/views/authority/edit.gsp @ 910

Last change on this file since 910 was 178, checked in by gav, 15 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.7 KB
Line 
1<head>
2    <meta name="layout" content="main" />
3    <title>Edit Authority</title>
4</head>
5
6<body>
7
8    <div class="nav">
9        <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span>
10        <span class="menuButton"><g:link class="create" action="create">New Authority</g:link></span>
11    </div>
12
13    <div class="body">
14        <h1>Edit Authority</h1>
15        <g:if test="${flash.message}">
16        <div class="message">${flash.message}</div>
17        </g:if>
18        <g:hasErrors bean="${authority}">
19        <div class="errors">
20            <g:renderErrors bean="${authority}" as="list" />
21        </div>
22        </g:hasErrors>
23        <div class="prop">
24            <span class="name">ID:</span>
25            <span class="value">${authority.id}</span>
26        </div>
27        <g:form>
28            <input type="hidden" name="id" value="${authority.id}" />
29            <input type="hidden" name="version" value="${authority.version}" />
30            <div class="dialog">
31            <table>
32            <tbody>
33                <tr class="prop">
34                    <td valign="top" class="name"><label for="authority">Authority Name:</label></td>
35                    <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}">
36                        <input type="text" id="authority" name="authority" value="${authority.authority?.encodeAsHTML()}"/>
37                    </td>
38                </tr>
39
40                <tr class="prop">
41                    <td valign="top" class="name"><label for="description">Description:</label></td>
42                    <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}">
43                        <input type="text" id="description" name="description" value="${authority.description?.encodeAsHTML()}"/>
44                    </td>
45                </tr>
46
47                <tr class="prop">
48                    <td valign="top" class="name"><label for="persons">Persons:</label></td>
49                    <td valign="top" class="value ${hasErrors(bean:authority,field:'persons','errors')}">
50                        <ul>
51                        <g:each var="p" in="${authority.persons?}">
52                            <li>${p}</li>
53                        </g:each>
54                        </ul>
55                    </td>
56                </tr>
57            </tbody>
58            </table>
59            </div>
60
61            <div class="buttons">
62                <span class="button"><g:actionSubmit class="save" value="Update" /></span>
63                <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
64            </div>
65
66        </g:form>
67    </div>
68</body>
Note: See TracBrowser for help on using the repository browser.