<%inherit file="base/root.mako"/> <%def name="title()"> ${_('Create an Account')} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif
<%block name="above_register_button" />
${h.form(request.route_path('register'), needs_csrf_token=False)} ${h.text('username', defaults.get('username'))} %if 'username' in errors: ${errors.get('username')}
%endif % if external_auth_provider: ## store internal marker about external identity ${h.hidden('external_identity', external_auth_provider)} ## hide password prompts for social auth
% endif ${h.password('password', defaults.get('password'))} %if 'password' in errors: ${errors.get('password')}
%endif ${h.password('password_confirmation', defaults.get('password_confirmation'))} %if 'password_confirmation' in errors: ${errors.get('password_confirmation')}
%endif % if external_auth_provider: ## hide password prompts for social auth
% endif ${h.text('firstname', defaults.get('firstname'))} %if 'firstname' in errors: ${errors.get('firstname')}
%endif ${h.text('lastname', defaults.get('lastname'))} %if 'lastname' in errors: ${errors.get('lastname')}
%endif ${h.text('email', defaults.get('email'))} %if 'email' in errors: ${errors.get('email')}
%endif %if captcha_active:
${h.hidden('recaptcha_field')}
%if 'recaptcha_field' in errors: ${errors.get('recaptcha_field')}
%endif
%endif %if not auto_active:

${_('Account activation requires admin approval.')}

%endif

${register_message|n}

${h.submit('sign_up',_('Create Account'), class_="btn sign-in", title=_('Create Account in {}').format(c.rhodecode_edition))} ${h.end_form()}
<%block name="below_register_button" />
% if captcha_active: % endif