register.html
134 lines
| 4.5 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
r1157 | <%inherit file="base/root.html"/> | |||
r547 | ||||
r1157 | <%def name="title()"> | |||
|
r4116 | ${_('Sign Up')} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r1157 | </%def> | |||
|
r4116 | <div id="header"> | ||
<div id="header-inner" class="title"> | ||||
<div id="logo"> | ||||
<div class="header"> | ||||
|
r4140 | <a href="${h.url('home')}"><img src="${h.url('/images/kallithea-logo.png')}" alt="RhodeCode"/></a> | ||
|
r4116 | </div> | ||
%if c.rhodecode_name: | ||||
<div class="branding">- ${c.rhodecode_name}</div> | ||||
%endif | ||||
</div> | ||||
</div> | ||||
</div> | ||||
r1888 | ||||
r1157 | <div id="register"> | |||
|
r4116 | <%include file="/base/flash_msg.html"/> | ||
<div class="title withlogo"> | ||||
%if c.rhodecode_name: | ||||
<h5>${_('Sign Up to %s') % c.rhodecode_name}</h5> | ||||
%else: | ||||
<h5>${_('Sign Up')}</h5> | ||||
%endif | ||||
|
r3197 | </div> | ||
<div class="inner"> | ||||
${h.form(url('register'))} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
<div class="fields"> | ||||
|
r3198 | <div class="field"> | ||
|
r3197 | <div class="label"> | ||
<label for="username">${_('Username')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.text('username',class_="medium")} | ||||
</div> | ||||
|
r3198 | </div> | ||
r1888 | ||||
|
r3198 | <div class="field"> | ||
|
r3197 | <div class="label"> | ||
<label for="password">${_('Password')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.password('password',class_="medium")} | ||||
</div> | ||||
|
r3198 | </div> | ||
r1888 | ||||
|
r3198 | <div class="field"> | ||
<div class="label"> | ||||
<label for="password">${_('Re-enter password')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.password('password_confirmation',class_="medium")} | ||||
</div> | ||||
</div> | ||||
r1888 | ||||
|
r3198 | <div class="field"> | ||
|
r3197 | <div class="label"> | ||
<label for="firstname">${_('First Name')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.text('firstname',class_="medium")} | ||||
</div> | ||||
|
r3198 | </div> | ||
r1888 | ||||
|
r3198 | <div class="field"> | ||
|
r3197 | <div class="label"> | ||
<label for="lastname">${_('Last Name')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.text('lastname',class_="medium")} | ||||
</div> | ||||
|
r3198 | </div> | ||
r1888 | ||||
|
r3198 | <div class="field"> | ||
|
r3197 | <div class="label"> | ||
<label for="email">${_('Email')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.text('email',class_="medium")} | ||||
</div> | ||||
|
r3198 | </div> | ||
r1888 | ||||
|
r4116 | %if c.captcha_active: | ||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="email">${_('Captcha')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.hidden('recaptcha_field')} | ||||
<div id="recaptcha"></div> | ||||
</div> | ||||
</div> | ||||
%endif | ||||
|
r3197 | <div class="buttons"> | ||
<div class="nohighlight"> | ||||
|
r4116 | ${h.submit('sign_up',_('Sign Up'),class_="btn")} | ||
|
r3197 | %if c.auto_active: | ||
<div class="activation_msg">${_('Your account will be activated right after registration')}</div> | ||||
%else: | ||||
<div class="activation_msg">${_('Your account must wait for activation by administrator')}</div> | ||||
%endif | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
${h.end_form()} | ||||
|
r4116 | %if c.captcha_active: | ||
<script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | ||||
%endif | ||||
r1202 | <script type="text/javascript"> | |||
|
r4116 | $(document).ready(function(){ | ||
$('#username').focus(); | ||||
%if c.captcha_active: | ||||
Recaptcha.create("${c.captcha_public_key}", "recaptcha", | ||||
{ | ||||
theme: "white", | ||||
} | ||||
); | ||||
%endif | ||||
}); | ||||
r1888 | </script> | |||
|
r3197 | </div> | ||
r1157 | </div> | |||