[59] | 1 | <head> |
---|
[150] | 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Edit Authority</title> |
---|
[59] | 4 | </head> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
[150] | 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> |
---|
[59] | 12 | |
---|
[150] | 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> |
---|
[59] | 39 | |
---|
[150] | 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> |
---|
[59] | 46 | |
---|
[150] | 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> |
---|
[59] | 60 | |
---|
[150] | 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> |
---|
[59] | 65 | |
---|
[150] | 66 | </g:form> |
---|
| 67 | </div> |
---|
[59] | 68 | </body> |
---|