[58] | 1 | <head> |
---|
| 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Edit ${personClassName}</title> |
---|
| 4 | </head> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 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">${personClassName} List</g:link></span> |
---|
| 11 | <span class="menuButton"><g:link class="create" action="create">New ${personClassName}</g:link></span> |
---|
| 12 | </div> |
---|
| 13 | |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Edit ${personClassName}</h1> |
---|
| 16 | <g:if test="\${flash.message}"> |
---|
| 17 | <div class="message">\${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:hasErrors bean="\${person}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="\${person}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | |
---|
| 25 | <div class="prop"> |
---|
| 26 | <span class="name">ID:</span> |
---|
| 27 | <span class="value">\${person.id}</span> |
---|
| 28 | </div> |
---|
| 29 | |
---|
| 30 | <g:form> |
---|
| 31 | <input type="hidden" name="id" value="\${person.id}" /> |
---|
| 32 | <input type="hidden" name="version" value="\${person.version}" /> |
---|
| 33 | <div class="dialog"> |
---|
| 34 | <table> |
---|
| 35 | <tbody> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"><label for="username">Login Name:</label></td> |
---|
| 39 | <td valign="top" class="value \${hasErrors(bean:person,field:'username','errors')}"> |
---|
| 40 | <input type="text" id="username" name="username" value="\${person.username?.encodeAsHTML()}"/> |
---|
| 41 | </td> |
---|
| 42 | </tr> |
---|
| 43 | |
---|
| 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name"><label for="userRealName">Full Name:</label></td> |
---|
| 46 | <td valign="top" class="value \${hasErrors(bean:person,field:'userRealName','errors')}"> |
---|
| 47 | <input type="text" id="userRealName" name="userRealName" value="\${person.userRealName?.encodeAsHTML()}"/> |
---|
| 48 | </td> |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name"><label for="passwd">Password:</label></td> |
---|
| 53 | <td valign="top" class="value \${hasErrors(bean:person,field:'passwd','errors')}"> |
---|
| 54 | <input type="password" id="passwd" name="passwd" value="\${person.passwd?.encodeAsHTML()}"/> |
---|
| 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"><label for="enabled">Enabled:</label></td> |
---|
| 60 | <td valign="top" class="value \${hasErrors(bean:person,field:'enabled','errors')}"> |
---|
| 61 | <g:checkBox name="enabled" value="\${person.enabled}"/> |
---|
| 62 | </td> |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name"><label for="description">Description:</label></td> |
---|
| 67 | <td valign="top" class="value \${hasErrors(bean:person,field:'description','errors')}"> |
---|
| 68 | <input type="text" id="description" name="description" value="\${person.description?.encodeAsHTML()}"/> |
---|
| 69 | </td> |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
| 73 | <td valign="top" class="name"><label for="email">Email:</label></td> |
---|
| 74 | <td valign="top" class="value \${hasErrors(bean:person,field:'email','errors')}"> |
---|
| 75 | <input type="text" id="email" name="email" value="\${person?.email?.encodeAsHTML()}"/> |
---|
| 76 | </td> |
---|
| 77 | </tr> |
---|
| 78 | |
---|
| 79 | <tr class="prop"> |
---|
| 80 | <td valign="top" class="name"><label for="emailShow">Show Email:</label></td> |
---|
| 81 | <td valign="top" class="value \${hasErrors(bean:person,field:'emailShow','errors')}"> |
---|
| 82 | <g:checkBox name="emailShow" value="\${person.emailShow}"/> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | |
---|
| 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name"><label for="authorities">Roles:</label></td> |
---|
| 88 | <td valign="top" class="value \${hasErrors(bean:person,field:'authorities','errors')}"> |
---|
| 89 | <ul> |
---|
| 90 | <g:each var="entry" in="\${roleMap}"> |
---|
| 91 | <li>\${entry.key.authority.encodeAsHTML()} |
---|
| 92 | <g:checkBox name="\${entry.key.authority}" value="\${entry.value}"/> |
---|
| 93 | </li> |
---|
| 94 | </g:each> |
---|
| 95 | </ul> |
---|
| 96 | </td> |
---|
| 97 | </tr> |
---|
| 98 | |
---|
| 99 | </tbody> |
---|
| 100 | </table> |
---|
| 101 | </div> |
---|
| 102 | |
---|
| 103 | <div class="buttons"> |
---|
| 104 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 105 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 106 | </div> |
---|
| 107 | |
---|
| 108 | </g:form> |
---|
| 109 | |
---|
| 110 | </div> |
---|
| 111 | </body> |
---|