Changeset 2077 for trunk/grails-app/views/common/_login_panel.gsp
- Timestamp:
- Oct 31, 2011, 3:46:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/common/_login_panel.gsp
r1886 r2077 1 1 <!-- LOGIN PANEL --> 2 2 <div id="toppanel" class="toppanel"> 3 3 <div id="panel"> 4 4 <div class="content clearfix"> 5 5 <div class="left"> 6 6 <h1>Welcome to the ${grailsApplication.config.application.title}</h1> 7 7 8 <h2>Version <b>${meta(name: 'app.version')}, build #<g:meta name="app.build.svn.revision"/></b></h2> 9 8 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> 9 11 <g:if test="${flash.message}"><p class="red">${flash.message}</p></g:if> 10 12 </div> 13 11 14 <div class="left"> 12 15 <g:form controller="." action="j_spring_security_check" method='POST' class="clearfix"> 13 16 <h1>Member Login</h1> 14 17 <label class="grey" for="username">Username:</label> 15 <input class="field" type="text" name="j_username" id="j_username" value="${username}" size="23" 18 <input class="field" type="text" name="j_username" id="j_username" value="${username}" size="23"/> 16 19 <label class="grey" for="password">Password:</label> 17 <input class="field" type="password" name="j_password" id="password" size="23" 20 <input class="field" type="password" name="j_password" id="password" size="23"/> 18 21 <label><input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me' 19 <g:if test='${hasCookie}'>checked='checked'</g:if> /> Remember me</label> 20 <div class="clear"></div> 21 <input type="submit" name="submit" value="Login" class="bt_login" /> 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"/> 22 26 23 27 <g:if test="${redirectUrl}"> 24 <g:hiddenField name="spring-security-redirect" value="${redirectUrl}"/>28 <g:hiddenField name="spring-security-redirect" value="${redirectUrl}"/> 25 29 </g:if> 26 30 27 <a class="lost-pwd" href="<g:createLink url="[action:'forgotPassword',controller:'register']" class="lost-pwd" />">Lost your password?</a> 31 <a class="lost-pwd" href="<g:createLink url="[action:'forgotPassword',controller:'register']" 32 class="lost-pwd"/>">Lost your password?</a> 28 33 </g:form> 29 34 </div> 35 30 36 <div class="left right"> 31 <g:form url="[action:'add',controller:'userRegistration']" class="clearfix registration"> 32 <input type="hidden" name="targetUri" value="${targetUri}" /> 37 <g:form url="[action:'add',controller:'userRegistration']" class="clearfix registration"> 38 <input type="hidden" name="targetUri" value="${targetUri}"/> 39 33 40 <h1>Not a member yet? Sign Up!</h1> 34 <g:hasErrors bean="${command}"> 35 <g:renderErrors bean="${command}" as="list" /> 36 <g:if test="${addSendUserLink}"> 37 <a class="resend_confirmation" href="<g:createLink url="[action:'sendUserConfirmation',controller:'userRegistration', params: [username: username]]" />">Resend confirmation message</a><br /> 38 </g:if> 39 </g:hasErrors> 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> 40 48 41 49 <label class="grey" for="signup">Username:</label> 42 <input class="field" type="text" name="username" id="username" value="${username}" size="23" 50 <input class="field" type="text" name="username" id="username" value="${username}" size="23"/> 43 51 <label class="grey" for="email">Email:</label> 44 <input class="field" type="text" name="email" id="email" value="${email}" size="23" 45 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> 46 54 47 <input type="submit" name="submit" value="Register" class="bt_register" 48 55 <input type="submit" name="submit" value="Register" class="bt_register"/> 56 </g:form> 49 57 </div> 50 58 </div> 51 59 </div> 60 52 61 <div class="tab"> 53 62 <ul class="login"> 54 63 <li class="left"> </li> 55 64 <li>Hello <sec:ifLoggedIn><sec:username/></sec:ifLoggedIn> 56 65 <sec:ifNotLoggedIn>Guest</sec:ifNotLoggedIn>!</li> 57 66 <sec:ifLoggedIn> 58 <li class="sep">|</li>59 <li id="toggle">60 61 </li>67 <li class="sep">|</li> 68 <li id="toggle"> 69 <g:link controller="userRegistration" action="profile">profile</g:link> 70 </li> 62 71 </sec:ifLoggedIn> 63 72 <li class="sep">|</li> 64 73 <li id="toggle"> 65 <sec:ifLoggedIn><g:link controller="logout" action="index">sign out</g:link></sec:ifLoggedIn> 66 <sec:ifNotLoggedIn> 67 <a id="open" class="open" href="#">Log In | Register</a> 68 <a id="close" style="display: none;" class="close" href="#">Close Panel</a> 69 </sec:ifNotLoggedIn> 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 == 'UseShibboleth' }}"> 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> 70 84 </li> 71 85 <li class="right"> </li> 72 86 </ul> 73 87 </div> 74 88 </div> 75 89 <!-- /LOGIN PANEL -->
Note: See TracChangeset
for help on using the changeset viewer.