<!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_one_col.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="content">
      <div class="row">
        <div class="column grid_12">
          <form action="/auth/do_login" method="post" class="loginfields">
            <input type="hidden" name="return_to" value="$return_to"/>
            <h2><span>Password Login</span></h2>
            <ol>
              <li>
                <label for="username">Username:</label>
                <input type="text" id="username" name="username"/>
              </li>
              <li>
                <label for="password">Password:</label>
                <input type="password" id="password" name="password"/>
              </li>
              <li>
                <label>&nbsp;</label>
                <input type="submit" id="submit" value="Login"/>
              </li>
            </ol>
          </form>
        </div>
        <div id="loginform_oid" class="span-18 last">
          <form action="/auth/login_verify_oid" method="post" class="loginfields">
            <input type="hidden" name="return_to" value="$return_to"/>
            <h2><span>OpenID Login</span></h2>
            <ol>
              <li>
                <label for="provider">Provider</label>
                <select id="provider" name="provider">
                  <option py:for="label, url in oid_providers" value="$url">$label</option>
                </select>
              </li>
              <li>
                <label for="username">Username:</label>
                <input type="text" id="username" name="username"/>
              </li>
              <li>
                <label>&nbsp;</label>
                <input type="submit" id="submit" value="Login"/>
              </li>
            </ol>
          </form>
        </div>
      </div>
    </div>
  </body>
</html>
