source: trunk/grails-app/views/user/edit.gsp @ 985

Last change on this file since 985 was 985, checked in by robert@…, 11 years ago

Removed spring-security-ui plugin to decrease dependencies. The functionality (user management and password resets) was copied to gscf itself.

File size: 2.3 KB
Line 
1<head>
2        <meta name='layout' content='main'/>
3        <g:set var="entityName" value="${message(code: 'user.label', default: 'User')}"/>
4        <title><g:message code="default.edit.label" args="[entityName]"/></title>
5
6    <script type="text/javascript">
7      // This method is called on the event body.onLoad
8      $(function() {
9              $("#tabs").tabs();
10      });
11    </script>
12</head>
13
14<body>
15    <script src="${resource(dir: 'js', file: 'jquery-callback-1.2.js')}" type="text/javascript"></script>
16<h3><g:message code="default.edit.label" args="[entityName]"/></h3>
17
18<g:form action="update" name='userEditForm' class="button-style">
19<g:hiddenField name="id" value="${user?.id}"/>
20<g:hiddenField name="version" value="${user?.version}"/>
21
22      <div id="tabs">
23        <ul>
24          <li><a href="#userinfo">User info</a></li>
25          <li><a href="#roles">Roles</a></li>
26        </ul>
27
28        <div id="userinfo">
29
30                  <table>
31                  <tbody>
32                        <tr><td>Username</td><td><g:textField name="username" value="${user?.username}"/></td></tr>
33                        <tr><td>Password</td><td><g:passwordField name="password" value="${user?.password}"/></td></tr>
34                        <tr><td>Email address</td><td><g:textField name="email" value="${user?.email}"/></td></tr>
35                        <tr><td>User confirmed</td><td><g:checkBox name="userConfirmed" value="${user?.userConfirmed}"/></td></tr>
36                        <tr><td>Admin confirmed</td><td><g:checkBox name="adminConfirmed" value="${user?.adminConfirmed}"/></td></tr>
37                        <tr><td>Account expired</td><td><g:checkBox name="accountExpired" value="${user?.accountExpired}"/></td></tr>
38                        <tr><td>Account locked</td><td><g:checkBox name="accountLocked" value="${user?.accountLocked}"/></td></tr>
39                        <tr><td>Password expired</td><td><g:checkBox name="passwordExpired" value="${user?.passwordExpired}"/></td></tr>
40
41                  </tbody>
42                  </table>
43          </div>
44          <div id="roles">
45                <g:each var="entry" in="${roleMap}">
46                <div>
47                        <g:checkBox name="${entry.key.authority}" value="${entry.value}"/>
48                        <g:link controller='role' action='edit' id='${entry.key.id}'>${entry.key.authority.encodeAsHTML()}</g:link>
49                </div>
50                </g:each>
51          </div>
52
53          </div>
54
55<div style='float:left; margin-top: 10px;'>
56  <input type="submit" value="Save" />
57
58  <g:if test='${user}'>
59        DELETE
60  </g:if>
61
62</div>
63
64</g:form>
65
66<g:if test='${user}'>
67  deleteform
68</g:if>
69
70<script>
71$(document).ready(function() {
72        $('#username').focus();
73});
74</script>
75
76</body>
Note: See TracBrowser for help on using the repository browser.