Last change
on this file since 954 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.3 KB
|
Rev | Line | |
---|
[118] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[178] | 7 | <title>Create Period</title> |
---|
[118] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[122] | 11 | <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span> |
---|
[118] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[122] | 14 | <h1>Create Period</h1> |
---|
[118] | 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
[122] | 18 | <g:hasErrors bean="${periodInstance}"> |
---|
[118] | 19 | <div class="errors"> |
---|
[122] | 20 | <g:renderErrors bean="${periodInstance}" as="list" /> |
---|
[118] | 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"> |
---|
[122] | 30 | <label for="isActive">Is Active:</label> |
---|
[118] | 31 | </td> |
---|
[122] | 32 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}"> |
---|
| 33 | <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox> |
---|
[118] | 34 | </td> |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"> |
---|
[122] | 39 | <label for="period">Period:</label> |
---|
[118] | 40 | </td> |
---|
[122] | 41 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}"> |
---|
| 42 | <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/> |
---|
[118] | 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
| 46 | </tbody> |
---|
| 47 | </table> |
---|
| 48 | </div> |
---|
| 49 | <div class="buttons"> |
---|
| 50 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 51 | </div> |
---|
| 52 | </g:form> |
---|
| 53 | </div> |
---|
| 54 | </body> |
---|
| 55 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.