| 1 | <head> |
|---|
| 2 | <meta name="layout" content="main" /> |
|---|
| 3 | <title>Edit Profile</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 | </div> |
|---|
| 11 | |
|---|
| 12 | <div class="body"> |
|---|
| 13 | <h1>Edit Profile</h1> |
|---|
| 14 | <g:if test="${flash.message}"> |
|---|
| 15 | <div class="message">${flash.message}</div> |
|---|
| 16 | </g:if> |
|---|
| 17 | <g:hasErrors bean="${person}"> |
|---|
| 18 | <div class="errors"> |
|---|
| 19 | <g:renderErrors bean="${person}" as="list" /> |
|---|
| 20 | </div> |
|---|
| 21 | </g:hasErrors> |
|---|
| 22 | |
|---|
| 23 | <g:form> |
|---|
| 24 | <input type="hidden" name="id" value="${person.id}" /> |
|---|
| 25 | <input type="hidden" name="version" value="${person.version}" /> |
|---|
| 26 | <div class="dialog"> |
|---|
| 27 | <table> |
|---|
| 28 | <tbody> |
|---|
| 29 | <tr class='prop'> |
|---|
| 30 | <td valign='top' class='name'><label for='username'>Login Name:</label></td> |
|---|
| 31 | <td valign='top' class='value ${hasErrors(bean:person,field:'username','errors')}'> |
|---|
| 32 | <input type="hidden" name='username' value="${person.username?.encodeAsHTML()}"/> |
|---|
| 33 | <div style="margin:3px">${person.username?.encodeAsHTML()}</div> |
|---|
| 34 | </td> |
|---|
| 35 | </tr> |
|---|
| 36 | |
|---|
| 37 | <tr class='prop'> |
|---|
| 38 | <td valign='top' class='name'><label for='userRealName'>Full Name:</label></td> |
|---|
| 39 | <td valign='top' class='value ${hasErrors(bean:person,field:'userRealName','errors')}'> |
|---|
| 40 | <input type="text" name='userRealName' value="${person.userRealName?.encodeAsHTML()}"/> |
|---|
| 41 | </td> |
|---|
| 42 | </tr> |
|---|
| 43 | |
|---|
| 44 | <tr class='prop'> |
|---|
| 45 | <td valign='top' class='name'><label for='passwd'>Password:</label></td> |
|---|
| 46 | <td valign='top' class='value ${hasErrors(bean:person,field:'passwd','errors')}'> |
|---|
| 47 | <input type="password" name='passwd' value=""/> |
|---|
| 48 | </td> |
|---|
| 49 | </tr> |
|---|
| 50 | |
|---|
| 51 | <tr class='prop'> |
|---|
| 52 | <td valign='top' class='name'><label for='enabled'>Confirm Password:</label></td> |
|---|
| 53 | <td valign='top' class='value ${hasErrors(bean:person,field:'passwd','errors')}'> |
|---|
| 54 | <input type="password" name='repasswd' /> |
|---|
| 55 | </td> |
|---|
| 56 | </tr> |
|---|
| 57 | |
|---|
| 58 | <tr class='prop'> |
|---|
| 59 | <td valign='top' class='name'><label for='email'>Email:</label></td> |
|---|
| 60 | <td valign='top' class='value ${hasErrors(bean:person,field:'email','errors')}'> |
|---|
| 61 | <input type="text" name='email' value="${person.email?.encodeAsHTML()}"/> |
|---|
| 62 | </td> |
|---|
| 63 | </tr> |
|---|
| 64 | |
|---|
| 65 | <tr class='prop'> |
|---|
| 66 | <td valign='top' class='name'><label for='emailShow'>Show Email:</label></td> |
|---|
| 67 | <td valign='top' class='value ${hasErrors(bean:person,field:'emailShow','errors')}'> |
|---|
| 68 | <g:checkBox name='emailShow' value="${person.emailShow}" ></g:checkBox> |
|---|
| 69 | </td> |
|---|
| 70 | </tr> |
|---|
| 71 | |
|---|
| 72 | </tbody> |
|---|
| 73 | </table> |
|---|
| 74 | </div> |
|---|
| 75 | |
|---|
| 76 | <div class="buttons"> |
|---|
| 77 | <span class="button"><g:actionSubmit class='save' value="Update" /></span> |
|---|
| 78 | </div> |
|---|
| 79 | |
|---|
| 80 | </g:form> |
|---|
| 81 | |
|---|
| 82 | </div> |
|---|
| 83 | </body> |
|---|