/grails-app/views/login/auth.gsp
text | 79 lines | 78 code | 1 blank | 0 comment | 0 complexity | 88993445d932968b9ff7099a913e5773 MD5 | raw file
1<head> 2<meta name='layout' content='main' /> 3<title>Login</title> 4<style type='text/css' media='screen'> 5#login { 6 margin:15px 0px; padding:0px; 7 text-align:center; 8} 9#login .inner { 10 width:260px; 11 margin:0px auto; 12 text-align:left; 13 padding:10px; 14 border-top:1px dashed #499ede; 15 border-bottom:1px dashed #499ede; 16 background-color:#abbf78; 17} 18#login .inner .fheader { 19 padding:4px;margin:3px 0px 3px 0;color:#2e3741;font-size:14px;font-weight:bold; 20} 21#login .inner .cssform p { 22 clear: left; 23 margin: 0; 24 padding: 5px 0 8px 0; 25 padding-left: 105px; 26 border-top: 1px dashed gray; 27 margin-bottom: 10px; 28 height: 1%; 29} 30#login .inner .cssform input[type='text'] { 31 width: 120px; 32} 33#login .inner .cssform label { 34 font-weight: bold; 35 float: left; 36 margin-left: -105px; 37 width: 100px; 38} 39#login .inner .login_message {color:red;} 40#login .inner .text_ {width:120px;} 41#login .inner .chk {height:12px;} 42</style> 43</head> 44 45<body> 46 <div id='login'> 47 <div class='inner'> 48 <g:if test='${flash.message}'> 49 <div class='login_message'>${flash.message}</div> 50 </g:if> 51 <div class='fheader'><g:message code="auth.login.message" /></div> 52 <form action='${postUrl}' method='POST' id='loginForm' class='cssform' autocomplete='off'> 53 <p> 54 <label for='username'><g:message code="usuario.username.label" /></label> 55 <input type='text' class='text_' name='j_username' id='username' /> 56 </p> 57 <p> 58 <label for='password'><g:message code="usuario.password.label" /></label> 59 <input type='password' class='text_' name='j_password' id='password' /> 60 </p> 61 <p> 62 <label for='remember_me'><g:message code="auth.rememberme.label" /></label> 63 <input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' 64 <g:if test='${hasCookie}'>checked='checked'</g:if> /> 65 </p> 66 <p> 67 <input type='submit' value='<g:message code="auth.login.button" />' /> 68 </p> 69 </form> 70 </div> 71 </div> 72<script type='text/javascript'> 73<!-- 74(function(){ 75 document.forms['loginForm'].elements['j_username'].focus(); 76})(); 77// --> 78</script> 79</body>