<html xmlns:py="http://genshi.edgewall.org/"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  py:strip="">

  <py:def function="optional_head">
    <!-- Simple OpenID Selector -->
    <link rel="stylesheet" href="${g.site_url}/css/openid.css" />
    <link rel="stylesheet" href="${g.site_url}/css/forms.css" type="text/css" media="screen, print" />
    <script type="text/javascript" src="${g.site_url}/scripts/openid-selector/js/openid-jquery.js"></script>
    <script type="text/javascript">
      $(document).ready(function() {
          openid.init('openid_identifier');
      });
    </script>
  </py:def>
  
  <py:match path="primarysidebar">
    <li class="widget-container widget_text">
      <h2>Not a member?</h2>
      <p>
      Join CKAN to contribute packages under your own name.
      </p>
      <ul>
        <li>${h.link_to(_('Register'), h.url_for(action='register'))}</li>
        <li>${h.link_to(_('Reset your password'), h.url_for(action='request_reset'))}</li>
        <li>${h.link_to(_('Privacy Policy'), 'http://www.okfn.org/privacy-policy/')}</li>
      </ul>
    </li>
  </py:match>
  
  <py:def function="page_title">Login - User</py:def>

  <div py:match="content">
    <h2>Login</h2>
    
    <form action="/login_generic" method="post" class="simple-form" id="login">  
      <fieldset>
        <!--legend i18n:msg="site_title">Login</legend-->

        <label for="login">Login:</label>
        <input name="login" value="" />
        <br/>
        <label for="password">Password:</label>
        <input type="password" name="password" value="" />
        <br/>
      </fieldset>
      ${h.submit('s', _('Login'))} &mdash; 
      <a href="${h.url_for('reset')}">Forgot your password?</a>
    </form>

    <!-- Simple OpenID Selector -->
    <form py:if="g.openid_enabled" action="/login_openid" method="post" id="openid_form">
      <input type="hidden" name="action" value="verify" />
      <fieldset>
        <legend i18n:msg="site_title">Login using Open ID</legend>
        <div id="openid_choice">
          <p>Please click your account provider:</p>
          <div id="openid_btns"></div>
        </div>
        <div id="openid_input_area">
          <input id="openid_identifier" name="openid_identifier" size="30" type="text" value="http://" />
          <input id="openid_submit" type="submit" value="Log in &raquo;"/>
        </div>
        <noscript>
          <p i18n:msg="">OpenID is service that allows you to log-on to many different websites using a single identity.
    Find out <a href="http://openid.net/what/">more about OpenID</a> and <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
        </noscript>
      </fieldset>
    </form>
    
    <div py:if="g.openid_enabled">
      <h3>Don't have an OpenID?</h3>
      <p i18n:msg="">
        OpenID is service that allows you to log-on to many different websites
        using a single identity. Find out <a href="http://openid.net/what/">more
        about OpenID</a> and <a href="http://openid.net/get/">how to get an
        OpenID enabled account</a>. Probably the simplest way is sign up with a
        free OpenID provider such as <a 
        href="https://www.myopenid.com/">https://www.myopenid.com/</a>.
      </p>
    </div>
  </div>
  <xi:include href="layout.html" />
</html>
