<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  
  <xi:include href="master.html" />
  
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>Login Form</title>
  </head>
  
  <body>
    <div id="loginform" class="span-18 last">
      <form action="/auth/do_login" method="post" class="loginfields">
        <input type="hidden" name="came_from" value="$came_from"/>
        <h2><span>Password Login</span></h2>
        <div class="span-3 clear"><label for="username">Username:</label></div>
        <div class="span-10 last"><input type="text" id="username" name="username" class="title wide"/></div>
        <div class="span-3 clear"><label for="password">Password:</label></div>
        <div class="span-10 last"><input type="password" id="password" name="password" class="title wide"/></div>
        <div class="push-3 span-15 clear last">
          <input type="submit" id="submit" value="Login" class="ui-state-default ui-button ui-button-text"/>
        </div>
      </form>
    </div>
    <div id="loginform_oid" class="span-18 last">
      <form action="/auth/login_verify_oid" method="post" class="loginfields">
        <input type="hidden" name="came_from" value="$came_from"/>
        <h2><span>OpenID Login</span></h2>
        <div class="span-3 clear"><label for="provider">Provider</label></div>
        <div class="span-10 last">
          <select id="provider" name="provider" class="title wide">
            <option py:for="label, url in oid_providers" value="$url">$label</option>
          </select>
        </div>
        <div class="span-3 clear"><label for="username">Username:</label></div>
        <div class="span-10 last"><input type="text" id="username" name="username" class="title wide"/></div>
        <div class="push-3 span-15 clear last">
          <input type="submit" id="submit" value="Login" class="ui-state-default ui-button ui-button-text"/>
        </div>
      </form>
    </div>
  </body>
</html>
