Last change
on this file since 172 was
151,
checked in by gav, 15 years ago
|
Replace all deprecated "createLinkTo" links with "resource".
|
File size:
1.7 KB
|
Rev | Line | |
---|
[59] | 1 | <head> |
---|
[150] | 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Create Authority</title> |
---|
[59] | 4 | </head> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
[150] | 8 | <div class="nav"> |
---|
[151] | 9 | <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> |
---|
[150] | 10 | <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span> |
---|
| 11 | </div> |
---|
[59] | 12 | |
---|
[150] | 13 | <div class="body"> |
---|
[59] | 14 | |
---|
[150] | 15 | <h1>Create Authority</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:hasErrors bean="${authority}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="${authority}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
[59] | 24 | |
---|
[150] | 25 | <g:form action="save"> |
---|
| 26 | <div class="dialog"> |
---|
| 27 | <table> |
---|
| 28 | <tbody> |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"><label for="authority">Authority Name:</label></td> |
---|
| 31 | <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}"> |
---|
| 32 | <input type="text" id="authority" name="authority" value="${authority?.authority?.encodeAsHTML()}"/> |
---|
| 33 | </td> |
---|
| 34 | </tr> |
---|
[59] | 35 | |
---|
[150] | 36 | <tr class="prop"> |
---|
| 37 | <td valign="top" class="name"><label for="description">Description:</label></td> |
---|
| 38 | <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}"> |
---|
| 39 | <input type="text" id="description" name="description" value="${authority?.description?.encodeAsHTML()}"/> |
---|
| 40 | </td> |
---|
| 41 | </tr> |
---|
| 42 | </tbody> |
---|
| 43 | </table> |
---|
| 44 | </div> |
---|
[59] | 45 | |
---|
[150] | 46 | <div class="buttons"> |
---|
| 47 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 48 | </div> |
---|
| 49 | </g:form> |
---|
| 50 | </div> |
---|
[59] | 51 | </body> |
---|
Note: See
TracBrowser
for help on using the repository browser.