##// END OF EJS Templates
ui: owner icon is consistent width for better user experience
ui: owner icon is consistent width for better user experience

File last commit:

r4546:6e1aa266 default
r5011:8902033d default
Show More
register.mako
150 lines | 5.7 KiB | application/x-mako | MakoHtmlLexer
registration: fix template typo
r1535 ## -*- coding: utf-8 -*-
templating: use .mako as extensions for template files.
r1282 <%inherit file="base/root.mako"/>
<%def name="title()">
${_('Create an Account')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<style>body{background-color:#eeeeee;}</style>
<div class="loginbox">
login/register: fixed header width problem.
r4544 <div class="header-account">
templating: use .mako as extensions for template files.
r1282 <div id="header-inner" class="title">
<div id="logo">
<div class="logo-wrapper">
ui: reduce logo size
r3541 <a href="${h.route_path('home')}"><img src="${h.asset('images/rhodecode-logo-white-60x60.png')}" alt="RhodeCode"/></a>
templating: use .mako as extensions for template files.
r1282 </div>
dan
ui: fixed branding look&feel as per discussions.
r3543 % if c.rhodecode_name:
<div class="branding">
<a href="${h.route_path('home')}">${h.branding(c.rhodecode_name)}</a>
</div>
% endif
templating: use .mako as extensions for template files.
r1282 </div>
</div>
</div>
<div class="loginwrapper">
rhodecode-toasts: added flash toast into pages that don't inherit from base.
r1485 <rhodecode-toast id="notifications"></rhodecode-toast>
login: optimized UI for login/register/password reset windows.
r4546
<div class="auth-image-wrapper">
templating: use .mako as extensions for template files.
r1282 <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/>
</div>
login: optimized UI for login/register/password reset windows.
r4546
<div id="register">
<%block name="above_register_button" />
templating: use .mako as extensions for template files.
r1282 <!-- login -->
<div class="sign-in-title">
auth: UI changes...
r3257 % if external_auth_provider:
<h1>${_('Create an account linked with {}').format(external_auth_provider)}</h1>
social-auth: add more explicit message about binding accounts on registation page.
r2905 % else:
<h1>${_('Create an account')}</h1>
% endif
templating: use .mako as extensions for template files.
r1282 <h4>${h.link_to(_("Go to the login page to sign in with an existing account."), request.route_path('login'))}</h4>
</div>
<div class="inner form">
${h.form(request.route_path('register'), needs_csrf_token=False)}
<label for="username">${_('Username')}:</label>
${h.text('username', defaults.get('username'))}
%if 'username' in errors:
<span class="error-message">${errors.get('username')}</span>
<br />
%endif
auth: UI changes...
r3257 % if external_auth_provider:
## store internal marker about external identity
${h.hidden('external_identity', external_auth_provider)}
social-auth: add more explicit message about binding accounts on registation page.
r2905 ## hide password prompts for social auth
<div style="display: none">
% endif
templating: use .mako as extensions for template files.
r1282 <label for="password">${_('Password')}:</label>
${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
auth: UI changes...
r3257 % if external_auth_provider:
social-auth: add more explicit message about binding accounts on registation page.
r2905 ## hide password prompts for social auth
</div>
% endif
templating: use .mako as extensions for template files.
r1282 <label for="firstname">${_('First Name')}:</label>
${h.text('firstname', defaults.get('firstname'))}
%if 'firstname' in errors:
<span class="error-message">${errors.get('firstname')}</span>
<br />
%endif
<label for="lastname">${_('Last Name')}:</label>
${h.text('lastname', defaults.get('lastname'))}
%if 'lastname' in errors:
<span class="error-message">${errors.get('lastname')}</span>
<br />
%endif
<label for="email">${_('Email')}:</label>
${h.text('email', defaults.get('email'))}
%if 'email' in errors:
<span class="error-message">${errors.get('email')}</span>
<br />
%endif
%if captcha_active:
<div>
<label for="recaptcha">${_('Captcha')}:</label>
${h.hidden('recaptcha_field')}
<div id="recaptcha"></div>
%if 'recaptcha_field' in errors:
<span class="error-message">${errors.get('recaptcha_field')}</span>
<br />
%endif
</div>
%endif
%if not auto_active:
<p class="activation_msg">
${_('Account activation requires admin approval.')}
</p>
%endif
<p class="register_message">
${register_message|n}
</p>
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 ${h.submit('sign_up',_('Create Account'), class_="btn sign-in", title=_('Create Account in {}').format(c.rhodecode_edition))}
templating: use .mako as extensions for template files.
r1282 ${h.end_form()}
</div>
<%block name="below_register_button" />
</div>
</div>
</div>
re-captcha: adjust for v2 that is the only left one supported since 1st of May.
r2731
templating: use .mako as extensions for template files.
r1282 <script type="text/javascript">
re-captcha: adjust for v2 that is the only left one supported since 1st of May.
r2731 $(document).ready(function(){
templating: use .mako as extensions for template files.
r1282 $('#username').focus();
re-captcha: adjust for v2 that is the only left one supported since 1st of May.
r2731 });
templating: use .mako as extensions for template files.
r1282 </script>
re-captcha: adjust for v2 that is the only left one supported since 1st of May.
r2731
% if captcha_active:
<script type="text/javascript">
var onloadCallback = function() {
grecaptcha.render('recaptcha', {
'sitekey' : "${captcha_public_key}"
});
};
</script>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
% endif