[58] | 1 | <head> |
---|
| 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>User Registration</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>User Registration</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 action="save"> |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class='prop'> |
---|
| 29 | <td valign='top' class='name'><label for='username'>Login Name:</label></td> |
---|
| 30 | <td valign='top' class='value ${hasErrors(bean:person,field:'username','errors')}'> |
---|
| 31 | <input type="text" name='username' value="${person?.username?.encodeAsHTML()}"/> |
---|
| 32 | </td> |
---|
| 33 | </tr> |
---|
| 34 | |
---|
| 35 | <tr class='prop'> |
---|
| 36 | <td valign='top' class='name'><label for='userRealName'>Full Name:</label></td> |
---|
| 37 | <td valign='top' class='value ${hasErrors(bean:person,field:'userRealName','errors')}'> |
---|
| 38 | <input type="text" name='userRealName' value="${person?.userRealName?.encodeAsHTML()}"/> |
---|
| 39 | </td> |
---|
| 40 | </tr> |
---|
| 41 | |
---|
| 42 | <tr class='prop'> |
---|
| 43 | <td valign='top' class='name'><label for='passwd'>Password:</label></td> |
---|
| 44 | <td valign='top' class='value ${hasErrors(bean:person,field:'passwd','errors')}'> |
---|
| 45 | <input type="password" name='passwd' value="${person?.passwd?.encodeAsHTML()}"/> |
---|
| 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class='prop'> |
---|
| 50 | <td valign='top' class='name'><label for='enabled'>Confirm Password:</label></td> |
---|
| 51 | <td valign='top' class='value ${hasErrors(bean:person,field:'passwd','errors')}'> |
---|
| 52 | <input type="password" name='repasswd' value="${person?.passwd?.encodeAsHTML()}"/> |
---|
| 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class='prop'> |
---|
| 57 | <td valign='top' class='name'><label for='email'>Email:</label></td> |
---|
| 58 | <td valign='top' class='value ${hasErrors(bean:person,field:'email','errors')}'> |
---|
| 59 | <input type="text" name='email' value="${person?.email?.encodeAsHTML()}"/> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | |
---|
| 63 | <tr class='prop'> |
---|
| 64 | <td valign='bottom' class='name'><label for='code'>Enter Code: </label></td> |
---|
| 65 | <td valign='top' class='name'> |
---|
| 66 | <input type="text" name="captcha" size="8"/> |
---|
| 67 | <img src="${createLink(controller:'captcha', action:'index')}" align="absmiddle"/> |
---|
| 68 | </td> |
---|
| 69 | </tr> |
---|
| 70 | |
---|
| 71 | </tbody> |
---|
| 72 | </table> |
---|
| 73 | </div> |
---|
| 74 | |
---|
| 75 | <div class="buttons"> |
---|
| 76 | <span class="formButton"> |
---|
| 77 | <input class='save' type="submit" value="Create"></input> |
---|
| 78 | </span> |
---|
| 79 | </div> |
---|
| 80 | |
---|
| 81 | </g:form> |
---|
| 82 | </div> |
---|
| 83 | </body> |
---|