| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| {% 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"> </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"> </label> |
| <div class="grid-18"><input type="submit" id="submit_oid" value="Login"/></div> |
| </form> |
| </div> |
| {% endblock %} |