#{extends 'main.html' /}
#{set title:'Home' /}

<div id="login">
    
    (try with demo/demo)

    #{form @login(), id:'formLogin'}
        <p class="field">
            <label>Login Name:</label>
            <input type="text" name="username" size="19" value="${flash.username}" />
        </p>
        <p class="field">
            <label>Password:</label>
            <input type="password" name="password" size="19"/>
        </p>    
        <p class="buttons">
            <input type="submit" value="Account login" />
        </p> 
    #{/form}

    <p>
        <a href="@{register()}">Register New User</a>
    </p>

</div>

<script type="text/javascript" charset="utf-8">
    sessvars.$.clearMem()
</script>
