Changeset 150 for trunk/grails-app/views/authority/edit.gsp
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/authority/edit.gsp
r59 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Edit Authority</title> 4 4 </head> 5 5 6 6 <body> 7 7 8 9 10 11 12 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span> 11 <span class="menuButton"><g:link class="create" action="create">New Authority</g:link></span> 12 </div> 13 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 14 <div class="body"> 15 <h1>Edit 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> 24 <div class="prop"> 25 <span class="name">ID:</span> 26 <span class="value">${authority.id}</span> 27 </div> 28 <g:form> 29 <input type="hidden" name="id" value="${authority.id}" /> 30 <input type="hidden" name="version" value="${authority.version}" /> 31 <div class="dialog"> 32 <table> 33 <tbody> 34 <tr class="prop"> 35 <td valign="top" class="name"><label for="authority">Authority Name:</label></td> 36 <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}"> 37 <input type="text" id="authority" name="authority" value="${authority.authority?.encodeAsHTML()}"/> 38 </td> 39 </tr> 40 40 41 42 43 44 45 46 41 <tr class="prop"> 42 <td valign="top" class="name"><label for="description">Description:</label></td> 43 <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}"> 44 <input type="text" id="description" name="description" value="${authority.description?.encodeAsHTML()}"/> 45 </td> 46 </tr> 47 47 48 49 50 51 52 53 54 55 56 57 58 59 60 48 <tr class="prop"> 49 <td valign="top" class="name"><label for="persons">Persons:</label></td> 50 <td valign="top" class="value ${hasErrors(bean:authority,field:'persons','errors')}"> 51 <ul> 52 <g:each var="p" in="${authority.persons?}"> 53 <li>${p}</li> 54 </g:each> 55 </ul> 56 </td> 57 </tr> 58 </tbody> 59 </table> 60 </div> 61 61 62 63 64 65 62 <div class="buttons"> 63 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 64 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 65 </div> 66 66 67 68 67 </g:form> 68 </div> 69 69 </body>
Note: See TracChangeset
for help on using the changeset viewer.