login.html
84 lines
| 3.3 KiB
| text/html
|
HtmlLexer
r1 | ## -*- coding: utf-8 -*- | |||
<%inherit file="base/root.html"/> | ||||
<%def name="title()"> | ||||
${_('Sign In')} | ||||
%if c.rhodecode_name: | ||||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
<style>body{background-color:#eeeeee;}</style> | ||||
<div class="loginbox"> | ||||
<div class="header"> | ||||
<div id="header-inner" class="title"> | ||||
<div id="logo"> | ||||
<div class="logo-wrapper"> | ||||
r454 | <a href="${h.url('home')}"><img src="${h.asset('images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> | |||
r1 | </div> | |||
%if c.rhodecode_name: | ||||
<div class="branding"> ${h.branding(c.rhodecode_name)}</div> | ||||
%endif | ||||
</div> | ||||
</div> | ||||
</div> | ||||
<div class="loginwrapper"> | ||||
<div class="left-column"> | ||||
r454 | <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/> | |||
r1 | </div> | |||
r267 | <%block name="above_login_button" /> | |||
r1 | <div id="login" class="right-column"> | |||
<!-- login --> | ||||
<div class="sign-in-title"> | ||||
<h1>${_('Sign In')}</h1> | ||||
%if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | ||||
r31 | <h4>${h.link_to(_("Go to the registration page to create a new account."), request.route_path('register'))}</h4> | |||
r1 | %endif | |||
</div> | ||||
<div class="inner form"> | ||||
r31 | ${h.form(request.route_path('login', _query={'came_from': came_from}), needs_csrf_token=False)} | |||
r1 | <label for="username">${_('Username')}:</label> | |||
r31 | ${h.text('username', class_='focus', value=defaults.get('username'))} | |||
%if 'username' in errors: | ||||
<span class="error-message">${errors.get('username')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | <label for="password">${_('Password')}:</label> | |||
r31 | ${h.password('password', class_='focus')} | |||
%if 'password' in errors: | ||||
<span class="error-message">${errors.get('password')}</span> | ||||
<br /> | ||||
%endif | ||||
${h.checkbox('remember', value=True, checked=defaults.get('remember'))} | ||||
r1 | <label class="checkbox" for="remember">${_('Remember me')}</label> | |||
r31 | ||||
r1034 | ||||
%if h.HasPermissionAny('hg.password_reset.enable')(): | ||||
<p class="links"> | ||||
${h.link_to(_('Forgot your password?'), h.route_path('reset_password'))} | ||||
</p> | ||||
%elif h.HasPermissionAny('hg.password_reset.hidden')(): | ||||
<p class="help-block"> | ||||
${_('Contact an administrator if you have forgotten your password.')} | ||||
</p> | ||||
%endif | ||||
r31 | ||||
${h.submit('sign_in', _('Sign In'), class_="btn sign-in")} | ||||
r1 | ${h.end_form()} | |||
<script type="text/javascript"> | ||||
$(document).ready(function(){ | ||||
$('#username').focus(); | ||||
}) | ||||
</script> | ||||
</div> | ||||
<!-- end login --> | ||||
r31 | <%block name="below_login_button" /> | |||
r1 | </div> | |||
</div> | ||||
</div> | ||||