login.html
89 lines
| 2.8 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
r1157 | <%inherit file="base/root.html"/> | |||
<%def name="title()"> | ||||
|
r4116 | ${_('Log In')} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r1157 | </%def> | |||
r547 | ||||
|
r4116 | |||
<div id="header"> | ||||
<div id="header-inner" class="title"> | ||||
<div id="logo"> | ||||
<div class="header"> | ||||
<a href="${h.url('home')}"><img src="/images/rhodecode-logo-white-216x60.png" alt="RhodeCode"/></a> | ||||
</div> | ||||
%if c.rhodecode_name: | ||||
<div class="branding">- ${c.rhodecode_name}</div> | ||||
%endif | ||||
</div> | ||||
</div> | ||||
</div> | ||||
r1157 | <div id="login"> | |||
|
r4116 | <%include file="/base/flash_msg.html"/> | ||
r1157 | <!-- login --> | |||
|
r4116 | <div class="title withlogo"> | ||
%if c.rhodecode_name: | ||||
<h5>${_('Log In to %s') % c.rhodecode_name}</h5> | ||||
%else: | ||||
<h5>${_('Log In')}</h5> | ||||
%endif | ||||
r1157 | </div> | |||
r1888 | <div class="inner"> | |||
r1157 | ${h.form(h.url.current(came_from=c.came_from))} | |||
<div class="form"> | ||||
<!-- fields --> | ||||
r547 | ||||
r1157 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="username">${_('Username')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r3422 | ${h.text('username',class_='focus large')} | |||
r1157 | </div> | |||
r1888 | ||||
</div> | ||||
r1157 | <div class="field"> | |||
<div class="label"> | ||||
<label for="password">${_('Password')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r3422 | ${h.password('password',class_='focus large')} | |||
r547 | </div> | |||
r1888 | ||||
r1157 | </div> | |||
|
r1802 | <div class="field"> | ||
<div class="checkbox"> | ||||
<input type="checkbox" id="remember" name="remember" /> | ||||
|
r1804 | <label for="remember">${_('Remember me')}</label> | ||
|
r1802 | </div> | ||
</div> | ||||
r1157 | <div class="buttons"> | |||
|
r4116 | ${h.submit('sign_in',_('Sign In'),class_="btn")} | ||
r1157 | </div> | |||
</div> | ||||
<!-- end fields --> | ||||
<!-- links --> | ||||
<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')(): | ||||
r1888 | / | |||
r1157 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} | |||
%endif | ||||
</div> | ||||
r547 | ||||
r1157 | <!-- end links --> | |||
r547 | </div> | |||
r1157 | ${h.end_form()} | |||
r1202 | <script type="text/javascript"> | |||
YUE.onDOMReady(function(){ | ||||
|
r3197 | YUD.get('username').focus(); | ||
r1202 | }) | |||
</script> | ||||
r1157 | </div> | |||
<!-- end login --> | ||||
|
r1472 | </div> | ||