1 | <!-- LOGIN PANEL --> |
---|
2 | <div id="toppanel" class="toppanel"> |
---|
3 | <div id="panel"> |
---|
4 | <div class="content clearfix"> |
---|
5 | <div class="left"> |
---|
6 | <h1>Welcome to the ${grailsApplication.config.application.title}</h1> |
---|
7 | |
---|
8 | <h2>Version <b>${meta(name: 'app.version')}, build #<g:meta name="app.build.svn.revision"/></b></h2> |
---|
9 | |
---|
10 | <p class="grey">Please use the forms on the right to either log in if you already have an account, or sign up if you think this data support platform suits your needs.</p> |
---|
11 | <g:if test="${flash.message}"><p class="red">${flash.message}</p></g:if> |
---|
12 | </div> |
---|
13 | |
---|
14 | <div class="left"> |
---|
15 | <g:form controller="." action="j_spring_security_check" method='POST' class="clearfix"> |
---|
16 | <h1>Member Login</h1> |
---|
17 | <label class="grey" for="username">Username:</label> |
---|
18 | <input class="field" type="text" name="j_username" id="j_username" value="${username}" size="23"/> |
---|
19 | <label class="grey" for="password">Password:</label> |
---|
20 | <input class="field" type="password" name="j_password" id="password" size="23"/> |
---|
21 | <label><input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me' |
---|
22 | <g:if test='${hasCookie}'>checked='checked'</g:if>/> Remember me</label> |
---|
23 | |
---|
24 | <div class="clear"></div> |
---|
25 | <input type="submit" name="submit" value="Login" class="bt_login"/> |
---|
26 | |
---|
27 | <g:if test="${redirectUrl}"> |
---|
28 | <g:hiddenField name="spring-security-redirect" value="${redirectUrl}"/> |
---|
29 | </g:if> |
---|
30 | |
---|
31 | <a class="lost-pwd" href="<g:createLink url="[action:'forgotPassword',controller:'register']" |
---|
32 | class="lost-pwd"/>">Lost your password?</a> |
---|
33 | </g:form> |
---|
34 | </div> |
---|
35 | |
---|
36 | <div class="left right"> |
---|
37 | <g:form url="[action:'add',controller:'userRegistration']" class="clearfix registration"> |
---|
38 | <input type="hidden" name="targetUri" value="${targetUri}"/> |
---|
39 | |
---|
40 | <h1>Not a member yet? Sign Up!</h1> |
---|
41 | <g:hasErrors bean="${command}"> |
---|
42 | <g:renderErrors bean="${command}" as="list"/> |
---|
43 | <g:if test="${addSendUserLink}"> |
---|
44 | <a class="resend_confirmation" href="<g:createLink |
---|
45 | url="[action:'sendUserConfirmation',controller:'userRegistration', params: [username: username]]"/>">Resend confirmation message</a><br/> |
---|
46 | </g:if> |
---|
47 | </g:hasErrors> |
---|
48 | |
---|
49 | <label class="grey" for="signup">Username:</label> |
---|
50 | <input class="field" type="text" name="username" id="username" value="${username}" size="23"/> |
---|
51 | <label class="grey" for="email">Email:</label> |
---|
52 | <input class="field" type="text" name="email" id="email" value="${email}" size="23"/> |
---|
53 | <label>A password will be e-mailed to you</label> |
---|
54 | |
---|
55 | <input type="submit" name="submit" value="Register" class="bt_register"/> |
---|
56 | </g:form> |
---|
57 | </div> |
---|
58 | </div> |
---|
59 | </div> |
---|
60 | |
---|
61 | <div class="tab"> |
---|
62 | <ul class="login"> |
---|
63 | <li class="left"> </li> |
---|
64 | <li>Hello <sec:ifLoggedIn><sec:username/></sec:ifLoggedIn> |
---|
65 | <sec:ifNotLoggedIn>Guest</sec:ifNotLoggedIn>!</li> |
---|
66 | <sec:ifLoggedIn> |
---|
67 | <li class="sep">|</li> |
---|
68 | <li id="toggle"> |
---|
69 | <g:link controller="userRegistration" action="profile">profile</g:link> |
---|
70 | </li> |
---|
71 | </sec:ifLoggedIn> |
---|
72 | <li class="sep">|</li> |
---|
73 | <li id="toggle"> |
---|
74 | <sec:ifLoggedIn><g:link controller="logout" action="index">sign out</g:link></sec:ifLoggedIn> |
---|
75 | <sec:ifNotLoggedIn> |
---|
76 | <g:if test="${request.getHeaderNames().find{ it.toLowerCase() == 'UseShibboleth'.toLowerCase() }}"> |
---|
77 | <g:link class="open" controller="login">Log in</g:link> |
---|
78 | </g:if> |
---|
79 | <g:else> |
---|
80 | <a id="open" class="open" href="#">Log In | Register</a> |
---|
81 | <a id="close" style="display: none;" class="close" href="#">Close Panel</a> |
---|
82 | </g:else> |
---|
83 | </sec:ifNotLoggedIn> |
---|
84 | </li> |
---|
85 | <li class="right"> </li> |
---|
86 | </ul> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | <!-- /LOGIN PANEL --> |
---|