register.html
123 lines
| 4.8 KiB
| text/html
|
HtmlLexer
r1 | ## -*- coding: utf-8 -*- | |||
<%inherit file="base/root.html"/> | ||||
<%def name="title()"> | ||||
${_('Create an Account')} | ||||
%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"> | ||||
<a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> | ||||
</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"> | ||||
<img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/> | ||||
</div> | ||||
r267 | <%block name="above_register_button" /> | |||
r1 | <div id="register" class="right-column"> | |||
<%include file="/base/flash_msg.html"/> | ||||
<!-- login --> | ||||
<div class="sign-in-title"> | ||||
<h1>${_('Create an account')}</h1> | ||||
r31 | <h4>${h.link_to(_("Go to the login page to sign in with an existing account."), request.route_path('login'))}</h4> | |||
r1 | </div> | |||
<div class="inner form"> | ||||
r31 | ${h.form(request.route_path('register'), needs_csrf_token=False)} | |||
r1 | <label for="username">${_('Username')}:</label> | |||
r31 | ${h.text('username', 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', defaults.get('password'))} | |||
%if 'password' in errors: | ||||
<span class="error-message">${errors.get('password')}</span> | ||||
<br /> | ||||
%endif | ||||
<label for="password_confirmation">${_('Re-enter password')}:</label> | ||||
${h.password('password_confirmation', defaults.get('password_confirmation'))} | ||||
%if 'password_confirmation' in errors: | ||||
<span class="error-message">${errors.get('password_confirmation')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | <label for="firstname">${_('First Name')}:</label> | |||
r31 | ${h.text('firstname', defaults.get('firstname'))} | |||
%if 'firstname' in errors: | ||||
<span class="error-message">${errors.get('firstname')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | <label for="lastname">${_('Last Name')}:</label> | |||
r31 | ${h.text('lastname', defaults.get('lastname'))} | |||
%if 'lastname' in errors: | ||||
<span class="error-message">${errors.get('lastname')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | <label for="email">${_('Email')}:</label> | |||
r31 | ${h.text('email', defaults.get('email'))} | |||
%if 'email' in errors: | ||||
<span class="error-message">${errors.get('email')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | ||||
r31 | %if captcha_active: | |||
r1 | <div> | |||
r31 | <label for="recaptcha">${_('Captcha')}:</label> | |||
r1 | ${h.hidden('recaptcha_field')} | |||
<div id="recaptcha"></div> | ||||
r31 | %if 'recaptcha_field' in errors: | |||
<span class="error-message">${errors.get('recaptcha_field')}</span> | ||||
<br /> | ||||
%endif | ||||
r1 | </div> | |||
%endif | ||||
r31 | %if not auto_active: | |||
r1 | <p class="activation_msg"> | |||
${_('Account activation requires admin approval.')} | ||||
</p> | ||||
%endif | ||||
<p class="register_message"> | ||||
r31 | ${register_message|n} | |||
r1 | </p> | |||
${h.submit('sign_up',_('Create Account'),class_="btn sign-in")} | ||||
${h.end_form()} | ||||
</div> | ||||
r31 | <%block name="below_register_button" /> | |||
r1 | </div> | |||
</div> | ||||
</div> | ||||
r31 | %if captcha_active: | |||
r1 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | |||
%endif | ||||
<script type="text/javascript"> | ||||
$(document).ready(function(){ | ||||
$('#username').focus(); | ||||
r31 | %if captcha_active: | |||
Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); | ||||
r1 | %endif | |||
}); | ||||
</script> | ||||