# HG changeset patch # User Johannes Bornhold # Date 2016-05-25 09:41:43 # Node ID 74a48d81f62c3d702c6a1f520b8ec186cd2061cd # Parent c2bebd315ead54737e551dce51ec42c887667c62 templates: Migrate password reset template to pyramid. diff --git a/rhodecode/templates/password_reset.html b/rhodecode/templates/password_reset.html --- a/rhodecode/templates/password_reset.html +++ b/rhodecode/templates/password_reset.html @@ -33,22 +33,30 @@

${_('Reset your Password')}

-

${h.link_to(_("Go to the login page to sign in."),h.url('login'))}

+

${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}

- ${h.form(url('password_reset'), needs_csrf_token=False)} + ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} - ${h.text('email')} + ${h.text('email', defaults.get('email'))} + %if 'email' in errors: + ${errors.get('email')} +
+ %endif - %if c.captcha_active: + %if captcha_active: %endif - ${h.submit('send',_('Send password reset email'),class_="btn sign-in")} + ${h.submit('send', _('Send password reset email'), class_="btn sign-in")}
${_('Password reset link will be send to matching email address')}
${h.end_form()} @@ -57,14 +65,14 @@
-%if c.captcha_active: +%if captcha_active: %endif \ No newline at end of file +