source: trunk/grails-app/views/user/create.gsp @ 1430

Last change on this file since 1430 was 1430, checked in by work@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
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.create.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        <style type="text/css">
13          div.usermanagement { font-size: 0.8em; }
14        </style>
15</head>
16
17<body>
18    <script src="${resource(dir: 'js', file: 'jquery-callback-1.2.js')}" type="text/javascript"></script>
19<h3><g:message code="default.create.label" args="[entityName]"/></h3>
20
21<g:form action="save" name='userCreateForm' class="button-style">
22
23      <div id="tabs" class="usermanagement">
24        <ul>
25          <li><a href="#userinfo">User info</a></li>
26          <li><a href="#roles">Roles</a></li>
27        </ul>
28
29        <div id="userinfo">
30
31                  <table>
32                  <tbody>
33                        <tr><td>Username</td><td><g:textField name="username" value="${user?.username}"/></td></tr>
34                        <tr><td>Password</td><td><g:passwordField name="password" value="${user?.password}"/></td></tr>
35                        <tr><td>Email address</td><td><g:textField name="email" value="${user?.email}"/></td></tr>
36                        <tr><td>User confirmed</td><td><g:checkBox name="userConfirmed" value="${user?.userConfirmed}"/></td></tr>
37                        <tr><td>Admin confirmed</td><td><g:checkBox name="adminConfirmed" value="${user?.adminConfirmed}"/></td></tr>
38                        <tr><td>Account expired</td><td><g:checkBox name="accountExpired" value="${user?.accountExpired}"/></td></tr>
39                        <tr><td>Account locked</td><td><g:checkBox name="accountLocked" value="${user?.accountLocked}"/></td></tr>
40                        <tr><td>Password expired</td><td><g:checkBox name="passwordExpired" value="${user?.passwordExpired}"/></td></tr>
41
42                  </tbody>
43                  </table>
44          </div>
45          <div id="roles">
46                <g:each var="entry" in="${roleMap}">
47                <div>
48                        <g:checkBox name="${entry.key.authority}" value="${entry.value}"/>
49                        <g:link controller='role' action='edit' id='${entry.key.id}'>${entry.key.authority.encodeAsHTML()}</g:link>
50                </div>
51                </g:each>
52          </div>
53
54          </div>
55
56<div style='float:left; margin-top: 10px;'>
57  <input type="submit" value="Save" />
58
59</div>
60
61</g:form>
62
63<script>
64$(document).ready(function() {
65        $('#username').focus();
66});
67</script>
68
69</body>
Note: See TracBrowser for help on using the repository browser.