{% set hide_left_bar = True %}
{% extends g.theme.master %}

{% block title %}Login Form{% endblock %}

{% block header %}Login{% endblock %}

{% block content %}
<div id="loginform">
  <h2><span>Password Login</span></h2>
  {{ c.form.display(action='./do_login', value=dict(return_to=return_to)) }}
</div>

        <div class="clear">&nbsp;</div>
        
        <div id="loginform_oid">
          <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>
            <label for="provider" class="grid-4">Provider</label>
            <div class="grid-18">
              <select id="provider" name="provider">
                {%- for label, url in oid_providers %}
                  <option value="{{url}}">{{label}}</option>
                {%- endfor %}
              </select>
            </div>
            <label for="username_oid" class="grid-4">Username:</label>
            <div class="grid-18"><input type="text" id="username_oid" name="username"/></div>
            <label class="grid-4">&nbsp;</label>
            <div class="grid-18"><input type="submit" id="submit_oid" value="Login"/></div>
          </form>
        </div>
{% endblock %}
