<?php head(array('bodyclass'=>'login'), 'login-header'); ?>

<h1>Log In</h1>
<p id="login-links">
<span id="backtosite"><?php echo link_to_home_page('View Public Site'); ?></span>  |  <span id="forgotpassword"><a href="<?php echo uri('users/forgot-password'); ?>">Lost your password?</a></spans>
</p>
	<?php
	if (isset($errorMessage)):
		?><div class="error">Error: <span>
			
		<?php echo html_escape($errorMessage); ?>
		</span></div>
	<?php endif; ?>
	
<form id="login-form" action="<?php echo uri('users/login');?>" method="post" accept-charset="utf-8">
	<fieldset>
		<div class="field">
	<label for="username">Username</label> 
	<input type="text" name="username" class="textinput" id="username" />
	</div>
	<div class="field">
	<label for="password">Password</label> 
	<input type="password" name="password" class="textinput" id="password" />
	</div>
	
	<div class="field">
    	<label for="remember">Remember Me?</label> 
        <?php echo $this->formCheckbox('remember', null, array('class' => 'checkbox')); ?>
	</div>
	</fieldset>
	<input type="submit" class="submit-small submit" value="Log In" />
</form>

<?php foot(array(),'login-footer'); ?>