login.template.html 453 B

12345678910111213141516171819202122
  1. <h1>
  2. {{title}}
  3. </h1>
  4. <form id="login">
  5. <div>
  6. Username: <input name="username" type="text"/>
  7. </div>
  8. <div>
  9. Password: <input name="password" type="password"/>
  10. </div>
  11. <input type="submit" value="login"/>
  12. <input type="button" value="cancel" class="cancel"/>
  13. </form>
  14. <script>
  15. $('#login').submit(function(){
  16. // TODO - Handle login
  17. return false;
  18. }).children('.cancel').click(function(){
  19. loadState('page-index');
  20. return false;
  21. });
  22. </script>