1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>User profile</title> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <div class="body" id="register"> |
---|
9 | <div class="inner"> |
---|
10 | <g:if test="${flash.message}"> <div class='login_message'>${flash.message}</div></g:if> |
---|
11 | |
---|
12 | <div class='fheader'>You can change your user details here. If you don't want to change your password, keep it empty. </div> |
---|
13 | |
---|
14 | <g:hasErrors bean="${command}"> |
---|
15 | <g:renderErrors bean="${command}" as="list" /> |
---|
16 | </g:hasErrors> |
---|
17 | |
---|
18 | <form action='<g:createLink controller="userRegistration" action="updateProfile" />' method='POST' id='loginForm' class='cssform' autocomplete='off'> |
---|
19 | <div class="dialog"> |
---|
20 | <table> |
---|
21 | <tbody> |
---|
22 | |
---|
23 | <tr class="prop"> |
---|
24 | <td valign="top" class="name"> |
---|
25 | <label for="username">Username</label> |
---|
26 | </td> |
---|
27 | <td valign="top" class="value ${hasErrors(bean: command, field: 'username', 'errors')}"> |
---|
28 | <g:textField disabled="disabled" name="title" value="${user?.username}" /> |
---|
29 | </td> |
---|
30 | </tr> |
---|
31 | <tr class="prop"> |
---|
32 | <td valign="top" class="name"> |
---|
33 | <label for="password">Password</label> |
---|
34 | </td> |
---|
35 | <td valign="top" class="value ${hasErrors(bean: command, field: 'password', 'errors')}"> |
---|
36 | <g:passwordField name="password" value="" /> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name"> |
---|
41 | <label for="password2">Repeat password</label> |
---|
42 | </td> |
---|
43 | <td valign="top" class="value ${hasErrors(bean: command, field: 'password2', 'errors')}"> |
---|
44 | <g:passwordField name="password2" value="" /> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | <tr class="prop"> |
---|
48 | <td valign="top" class="name"> |
---|
49 | <label for="email">Email address</label> |
---|
50 | </td> |
---|
51 | <td valign="top" class="value ${hasErrors(bean: command, field: 'email', 'errors')}"> |
---|
52 | <g:textField name="email" value="${user?.email}" /> |
---|
53 | </td> |
---|
54 | </tr> |
---|
55 | </tbody> |
---|
56 | </table> |
---|
57 | </div> |
---|
58 | <div class="buttons"> |
---|
59 | <g:each in="${extraparams}" var="param"> |
---|
60 | <input type="hidden" name="${param.key}" value="${param.value}"> |
---|
61 | </g:each> |
---|
62 | <span class="button"><g:submitButton name="edit" class="save" value="Change profile" /></span> |
---|
63 | <span class="button"><g:link class="cancel" controller="home">Cancel</g:link></span> |
---|
64 | </div> |
---|
65 | </form> |
---|
66 | </div> |
---|
67 | </body> |
---|
68 | </html> |
---|