Files @ 1f02a239c23c
Branch filter:

Location: kallithea/kallithea/templates/login.html

Mads Kiilerich
style: use panel, panel-heading, panel-title, panel-body and settings

This imply lots of tweaking of header handling and panel spacing.

Not converted yet: codeblock code-header code-body.

Based on work by Dominik Ruf.
## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>

<%block name="title">
    ${_('Log In')}
</%block>

<%include file="/base/flash_msg.html"/>
<div id="login" class="panel panel-primary">
    <div class="panel-heading">
        %if c.site_name:
            <h5>${_('Log In to %s') % c.site_name}</h5>
        %else:
            <h5>${_('Log In')}</h5>
        %endif
    </div>
    <div class="panel-body">
        ${h.form(url('login_home', came_from=c.came_from))}
        <div class="form">
            <i class="icon-lock"></i>

            <div class="form-horizontal">
                <div class="form-group">
                    <label class="control-label col-sm-5" for="username">${_('Username')}:</label>
                    <div class="col-sm-7">
                        ${h.text('username',class_='form-control')}
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-5" for="password">${_('Password')}:</label>
                    <div class="col-sm-7">
                        ${h.password('password',class_='form-control')}
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-5 col-sm-7">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="remember" name="remember"/>
                                ${_('Stay logged in after browser restart')}
                            </label>
                        </div>
                    </div>
                </div>
            </div>

            <div class="links">
                ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))}
                %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
                  /
                 ${h.link_to(_("Don't have an account ?"),h.url('register'))}
                %endif
                <span class="buttons">
                    ${h.submit('sign_in',_('Sign In'),class_="btn btn-default")}
                </span>
            </div>
        </div>
        ${h.end_form()}
        <script type="text/javascript">
        $(document).ready(function(){
            $('#username').focus();
        });
        </script>
    </div>
</div>