Last change
on this file since 99 was
99,
checked in by gav, 15 years ago
|
Tweaking to the Change Password view, control and errors.
Remove /web-app/plugins dir.
|
File size:
1.6 KB
|
Rev | Line | |
---|
[73] | 1 | <head> |
---|
| 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Change Password</title> |
---|
| 4 | </head> |
---|
| 5 | |
---|
| 6 | <body onload="document.changePasswordForm.pass.focus();"> |
---|
| 7 | <div class="nav"> |
---|
| 8 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
| 9 | </div> |
---|
| 10 | |
---|
| 11 | <div class="body"> |
---|
| 12 | <h1>Change Password</h1> |
---|
| 13 | <g:if test="${flash.message}"> |
---|
| 14 | <div class="message">${flash.message}</div> |
---|
| 15 | </g:if> |
---|
| 16 | <g:hasErrors bean="${personInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${personInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | |
---|
| 22 | <div class="prop"> |
---|
[79] | 23 | <span class="name">ID: ${personInstance.id}</span> |
---|
[73] | 24 | </div> |
---|
| 25 | |
---|
| 26 | <g:form name="changePasswordForm" id="changePasswordForm"> |
---|
| 27 | <input type="hidden" name="id" value="${personInstance?.id}" /> |
---|
| 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"><label for="pass">Password:</label></td> |
---|
| 34 | <td valign="top" class="value ${hasErrors(bean:personInstance,field:'pass','errors')}"> |
---|
| 35 | <input type="password" id="pass" name="pass" /> |
---|
| 36 | </td> |
---|
| 37 | </tr> |
---|
| 38 | |
---|
[98] | 39 | <tr class="prop"> |
---|
[99] | 40 | <td valign="top" class="name"><label for="confirmPass">Confirm password:</label></td> |
---|
[98] | 41 | <td valign="top" class="value"> |
---|
[99] | 42 | <input type="password" id="confirmPass" name="confirmPass" /> |
---|
[98] | 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
[73] | 46 | </tbody> |
---|
| 47 | </table> |
---|
| 48 | </div> |
---|
| 49 | |
---|
| 50 | <div class="buttons"> |
---|
| 51 | <span class="button"><g:actionSubmit class="save" value="Change Password" action="changePassword"/></span> |
---|
| 52 | </div> |
---|
| 53 | </g:form> |
---|
| 54 | |
---|
| 55 | </div> |
---|
| 56 | |
---|
| 57 | </body> |
---|
Note: See
TracBrowser
for help on using the repository browser.