Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

$if(reset)$<div class="success"><p>The password for your account has been reset.</p></div>$endif$
$if(activated)$<div class="success"><p>Your account has been activated.</p></div>$endif$
$if(error)$<div class="error"><p>$error$</p></div>$endif$
$if(target)$<div class="info"><p>Please sign in to continue.</p></div>$endif$

<div id="signin_area">

<form method="post" action="$formurl$/signin" id="signin">
<h3>Sign in</h3>
$if(target)$<input type="hidden" name="target" value='$target;format="html"$' />$endif$

<label for="signin_username">
<input type="text" name="signin_username" id="signin_username" value='$username;format="html"$' placeholder="$if(ldap_enabled)$Username$else$Email address$endif$"/>
</label>

<label for="signin_password">
<input type="password" name="signin_password" id="signin_password" autocomplete="off" value="" placeholder="Password"/></span>
</label>

<div class="submit">
<input type="submit" value="Sign in"/>
 </div>

<p><a href="$formurl$/password.reset">Can't remember your password?</a></p>

<!-- <div class="release_tag">$version$</div>  -->
<!-- $build$ -->
</form>


</div>

$if(self_signup)$
<div id="register_area">

<form method="post" action="$formurl$/signup" id="register">
<h3>Sign up</h3>

$if(target)$<input type="hidden" name="target" value='$target;format="html"$' />$endif$

<label for="register_firstname">
<input type="text" placeholder="First name" name="register_firstname" id="register_firstname" value='$register_firstname;format="html"$'/>
</label>

<label for="register_lastname">
<input type="text" placeholder="Last name" name="register_lastname" id="register_lastname" value='$register_lastname;format="html"$'/>
</label>

<label for="register_email">
<input type="text" placeholder="Email address" name="register_email" id="register_email" value='$register_email;format="html"$'/>
</label>

<label for="register_password">
<input type="password" placeholder="Password" name="register_password" id="register_password" autocomplete="off" value=""/>
</label>

<label for="register_password2">
<input type="password" placeholder="Re-type password" name="register_password2" id="register_password2" autocomplete="off" value=""/><br/>
<span id="password_feedback"></span>
</label>

$if(terms)$
<label for="i_agree" class="agree">
<input type="checkbox" name="i_agree" id="i_agree"/> I agree to the <a href="$formurl$/terms_and_conditions" target="terms_and_conditions">Terms and conditions</a>.
</label>
$endif$

<div class="submit">
	<input type="submit" value="Sign up"/>
</div>

</form>

</div>
$endif$

<script src="r/password.js" type="text/javascript"></script>
<script type="text/javascript">
	passwordSetup("register_password", "register_password2");

	if(document.getElementById('signin_username').value!="") {
		document.getElementById('signin_password').focus();
	} else {
		document.getElementById('signin_username').focus();
	}
</script>

$footer()$
New to GrepCode? Check out our FAQ X