##// END OF EJS Templates
Added tag v4.5.2 for changeset 416fec799314
Added tag v4.5.2 for changeset 416fec799314

File last commit:

r1038:1703d7ca default
r1252:91f664e4 stable
Show More
login.html
88 lines | 3.6 KiB | text/html | HtmlLexer
project: added all source files and assets
r1 ## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>
<%def name="title()">
${_('Sign In')}
%if c.rhodecode_name:
&middot; ${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">
dan
assets: convert pylons static files to pyramid static_url, fixes #3504
r454 <a href="${h.url('home')}"><img src="${h.asset('images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a>
project: added all source files and assets
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">
dan
assets: convert pylons static files to pyramid static_url, fixes #3504
r454 <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/>
project: added all source files and assets
r1 </div>
templates: expose above blocks for login and register pages.
r267 <%block name="above_login_button" />
project: added all source files and assets
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')():
templates: Migrate login and register templates to pyramid.
r31 <h4>${h.link_to(_("Go to the registration page to create a new account."), request.route_path('register'))}</h4>
project: added all source files and assets
r1 %endif
</div>
<div class="inner form">
templates: Migrate login and register templates to pyramid.
r31 ${h.form(request.route_path('login', _query={'came_from': came_from}), needs_csrf_token=False)}
project: added all source files and assets
r1 <label for="username">${_('Username')}:</label>
templates: Migrate login and register templates to pyramid.
r31 ${h.text('username', class_='focus', value=defaults.get('username'))}
%if 'username' in errors:
<span class="error-message">${errors.get('username')}</span>
<br />
%endif
project: added all source files and assets
r1 <label for="password">${_('Password')}:</label>
templates: Migrate login and register templates to pyramid.
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'))}
project: added all source files and assets
r1 <label class="checkbox" for="remember">${_('Remember me')}</label>
templates: Migrate login and register templates to pyramid.
r31
tests: fixing permissions tests for new password reset options
r1035 %if h.HasPermissionAny('hg.password_reset.enabled')():
settings: fix #3944 add password reset permission
r1034 <p class="links">
tests: fixing permissions tests for new password reset options
r1035 ${h.link_to(_('Forgot your password?'), h.route_path('reset_password'), class_='pwd_reset')}
settings: fix #3944 add password reset permission
r1034 </p>
%elif h.HasPermissionAny('hg.password_reset.hidden')():
<p class="help-block">
login: add support link to disabled password reset page
r1038 ${_('Password reset is disabled. Please contact ')}
% if c.visual.rhodecode_support_url:
<a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support')}</a>
${_('or')}
% endif
${_('an administrator if you need help.')}
settings: fix #3944 add password reset permission
r1034 </p>
login: add support link to disabled password reset page
r1038 %endif
settings: fix #3944 add password reset permission
r1034
templates: Migrate login and register templates to pyramid.
r31
${h.submit('sign_in', _('Sign In'), class_="btn sign-in")}
project: added all source files and assets
r1 ${h.end_form()}
<script type="text/javascript">
$(document).ready(function(){
$('#username').focus();
})
</script>
</div>
<!-- end login -->
templates: Migrate login and register templates to pyramid.
r31 <%block name="below_login_button" />
project: added all source files and assets
r1 </div>
</div>
</div>