source: trunk/grails-app/views/register/index.gsp

Last change on this file was 1430, checked in by work@…, 9 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        <title><g:message code='spring.security.ui.register.title'/></title>
4
5        <g:javascript src='jquery/jquery.jgrowl.js'/>
6        <g:javascript src='jquery/jquery.checkbox.js'/>
7        <g:javascript src='spring-security-ui.js'/>
8
9<g:javascript library='jquery' plugin='jquery' />
10
11<link rel="stylesheet" media="screen" href="${resource(dir:'css',file:'reset.css')}"/>
12<link rel="stylesheet" media="screen" href="${resource(dir:'css',file:'spring-security-ui.css')}"/>
13<jqui:resources />
14<link rel="stylesheet" media="screen" href="${resource(dir:'css/smoothness',file:'jquery-ui-1.8.2.custom.css',plugin:'spring-security-ui')}"/>
15<link rel="stylesheet" media="screen" href="${resource(dir:'css',file:'jquery.jgrowl.css')}"/>
16<link rel="stylesheet" media="screen" href="${resource(dir:'css',file:'jquery.safari-checkbox.css')}"/>
17<link rel="stylesheet" media="screen" href="${resource(dir:'css',file:'auth.css')}"/>
18
19
20</head>
21
22<body>
23
24<p/>
25
26<s2ui:form width='650' height='300' elementId='loginFormContainer'
27           titleCode='spring.security.ui.register.description' center='true'>
28
29<g:form action='register' name='registerForm'>
30
31        <g:if test='${emailSent}'>
32        <br/>
33        <g:message code='spring.security.ui.register.sent'/>
34        </g:if>
35        <g:else>
36
37        <br/>
38
39        <table>
40        <tbody>
41
42                <s2ui:textFieldRow name='username' labelCode='user.username.label' bean="${command}"
43                         size='40' labelCodeDefault='Username' value="${command.username}"/>
44
45                <s2ui:textFieldRow name='email' bean="${command}" value="${command.email}"
46                                   size='40' labelCode='user.email.label' labelCodeDefault='E-mail'/>
47
48                <s2ui:passwordFieldRow name='password' labelCode='user.password.label' bean="${command}"
49                             size='40' labelCodeDefault='Password' value="${command.password}"/>
50
51                <s2ui:passwordFieldRow name='password2' labelCode='user.password2.label' bean="${command}"
52                             size='40' labelCodeDefault='Password (again)' value="${command.password2}"/>
53
54        </tbody>
55        </table>
56
57        <s2ui:submitButton elementId='create' form='registerForm' messageCode='spring.security.ui.register.submit'/>
58
59        </g:else>
60
61</g:form>
62
63</s2ui:form>
64
65<script>
66$(document).ready(function() {
67        $('#username').focus();
68});
69</script>
70
71<s2ui:showFlash/>
72
73
74</body>
Note: See TracBrowser for help on using the repository browser.