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 | |
---|
8 | <body> |
---|
9 | <div class="body" id="register"> |
---|
10 | <g:if test="${user.shibbolethUser}"> |
---|
11 | <table> |
---|
12 | <tr> |
---|
13 | <td>Username</td> |
---|
14 | <td>${user.uid}</td> |
---|
15 | </tr> |
---|
16 | <tr> |
---|
17 | <td>Email</td> |
---|
18 | <td>${user.email}</td> |
---|
19 | </tr> |
---|
20 | <tr> |
---|
21 | <td>Organization</td> |
---|
22 | <td>${user.organization}</td> |
---|
23 | </tr> |
---|
24 | </table> |
---|
25 | </g:if> |
---|
26 | <g:else> |
---|
27 | <div class="inner"> |
---|
28 | <g:if test="${flash.message}"><div class='login_message'>${flash.message}</div></g:if> |
---|
29 | |
---|
30 | <div class='fheader'>You can change your user details here. If you don't want to change your password, keep it empty.</div> |
---|
31 | |
---|
32 | <g:hasErrors bean="${command}"> |
---|
33 | <g:renderErrors bean="${command}" as="list"/> |
---|
34 | </g:hasErrors> |
---|
35 | |
---|
36 | <form action='<g:createLink controller="userRegistration" action="updateProfile"/>' method='POST' id='loginForm' |
---|
37 | class='cssform' autocomplete='off'> |
---|
38 | <div class="dialog"> |
---|
39 | <table> |
---|
40 | <tbody> |
---|
41 | |
---|
42 | <tr class="prop"> |
---|
43 | <td valign="top" class="name"> |
---|
44 | <label for="username">Username</label> |
---|
45 | </td> |
---|
46 | <td valign="top" class="value ${hasErrors(bean: command, field: 'username', 'errors')}"> |
---|
47 | <g:textField disabled="disabled" name="title" value="${user?.username}"/> |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="name"> |
---|
52 | <label for="password">Password</label> |
---|
53 | </td> |
---|
54 | <td valign="top" class="value ${hasErrors(bean: command, field: 'password', 'errors')}"> |
---|
55 | <g:passwordField name="password" value=""/> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name"> |
---|
60 | <label for="password2">Repeat password</label> |
---|
61 | </td> |
---|
62 | <td valign="top" class="value ${hasErrors(bean: command, field: 'password2', 'errors')}"> |
---|
63 | <g:passwordField name="password2" value=""/> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | <tr class="prop"> |
---|
67 | <td valign="top" class="name"> |
---|
68 | <label for="email">Email address</label> |
---|
69 | </td> |
---|
70 | <td valign="top" class="value ${hasErrors(bean: command, field: 'email', 'errors')}"> |
---|
71 | <g:textField name="email" value="${user?.email}"/> |
---|
72 | </td> |
---|
73 | </tr> |
---|
74 | </tbody> |
---|
75 | </table> |
---|
76 | </div> |
---|
77 | |
---|
78 | <div class="buttons"> |
---|
79 | <g:each in="${extraparams}" var="param"> |
---|
80 | <input type="hidden" name="${param.key}" value="${param.value}"> |
---|
81 | </g:each> |
---|
82 | <span class="button"><g:submitButton name="edit" class="save" value="Change profile"/></span> |
---|
83 | <span class="button"><g:link class="cancel" controller="home">Cancel</g:link></span> |
---|
84 | </div> |
---|
85 | </form> |
---|
86 | </g:else> |
---|
87 | |
---|
88 | </div> |
---|
89 | </body> |
---|
90 | </html> |
---|